++ basename /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPPCreflTexas.sh + FUNC=processNPPCreflTexas.sh ++ dirname /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPPCreflTexas.sh + scriptDir=/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts ++ fullpath /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts + scriptDir=/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts + defDir=/mnt/r6/Software/IDL_WORKDIR/Default/scripts + dataDir=/mnt/r6/Data/NPP + irodsDir=/corralZ/projects/CSR/Public/NPP ++ grep processNPPCreflTexas.sh /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppBounds.list + boundLine=-107:25:-93:37:Day=processNPPCreflTexas.sh ++ echo -107:25:-93:37:Day=processNPPCreflTexas.sh ++ cut -d= -f1 + bounds=-107:25:-93:37:Day ++ echo -107:25:-93:37:Day ++ cut -d: -f1 + lon1=-107 ++ echo -107:25:-93:37:Day ++ cut -d: -f2 + lat1=25 ++ echo -107:25:-93:37:Day ++ cut -d: -f3 + lon2=-93 ++ echo -107:25:-93:37:Day ++ cut -d: -f4 + lat2=37 + '[' 1 -lt 1 ']' + dateDir=2019_01_15_015_1827 + workDir=/mnt/r6/Data/NPP/2019_01_15_015_1827 + cd /mnt/r6/Data/NPP/2019_01_15_015_1827 + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/genNPPCreflSharp.sh -107 25 -93 37 2019_01_15_015_1827 ++ basename /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/genNPPCreflSharp.sh + FUNC=genNPPCreflSharp.sh ++ dirname /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/genNPPCreflSharp.sh + scriptDir=/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts ++ fullpath /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts + scriptDir=/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts + . /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/setPath.bash ++ myPath=/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts ++ expr /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts:.:/home/eosdis/bin:/usr/lib64/qt-3.3/bin:/usr/local/iRODS/bin:/opt/itt/envi55/bin:/opt/itt/envi55/idl87/bin:/usr/bin:/bin: : '.*/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts:' + dataDir=/mnt/r6/Data/NPP + '[' 5 -lt 5 ']' + lon1=-107 + lon2=-93 + lat1=25 + lat2=37 + dateDir=2019_01_15_015_1827 + workDir=/mnt/r6/Data/NPP/2019_01_15_015_1827 + cd /mnt/r6/Data/NPP/2019_01_15_015_1827 + rm -f 'CVIIRSM*CorrRefl*.bin' + rm -f 'CVIIRSI*CorrRefl*.bin' ++ head -1 ++ ls 'CVIIRSM*hdf' ls: cannot access CVIIRSM*hdf: No such file or directory + CVIIRSMHdf= + test -z '' + runNPPCrefl.sh /mnt/r6/Data/NPP/2019_01_15_015_1827 ++ basename /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/runNPPCrefl.sh + FUNC=runNPPCrefl.sh ++ dirname /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/runNPPCrefl.sh + FuncDir=/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts + remHost=magic2850b_p + remUser=ipopp + '[' 1 -ne 1 ']' + dirPath=/mnt/r6/Data/NPP/2019_01_15_015_1827 ++ hostname + hostName=magicCProc1 ++ date + echo Wed Jan 16 12:34:15 CST '2019: Starting runNPPCrefl.sh' Wed Jan 16 12:34:15 CST 2019: Starting runNPPCrefl.sh + ssh -n -l ipopp magic2850b_p bin/run-cviirs.sh /mnt/r6/Data/NPP/2019_01_15_015_1827 ssh: connect to host magic2850b_p port 22: No route to host + status=255 + '[' 255 '!=' 0 ']' + echo 'magic2850b_p run was unseccessful, attempting local run' magic2850b_p run was unseccessful, attempting local run + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/run-cviirs.sh /mnt/r6/Data/NPP/2019_01_15_015_1827 ++ basename /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/run-cviirs.sh + FUNC=run-cviirs.sh ++ dirname /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/run-cviirs.sh + FUNCDIR=/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts + DRLDIR=/mnt/r6/Software/NPP/IPOPPHOME/drl + CVIIRSDIR=/mnt/r6/Software/NPP/IPOPPHOME/drl/SPA/CVIIRS + WRAPPERCREFL=/mnt/r6/Software/NPP/IPOPPHOME/drl/SPA/CVIIRS/wrapper/CVIIRS + NPPDATADIR=/mnt/r6/Data/NPP + '[' 1 -lt 1 ']' + dateDir=/mnt/r6/Data/NPP/2019_01_15_015_1827 ++ expr /mnt/r6/Data/NPP/2019_01_15_015_1827 : / + dateDirTest=1 + '[' 1 -eq 1 ']' + INPUTHOME=/mnt/r6/Data/NPP/2019_01_15_015_1827 + OUTPUTHOME=/mnt/r6/Data/NPP/2019_01_15_015_1827 + cd /mnt/r6/Data/NPP/2019_01_15_015_1827 ++ ls '/mnt/r6/Data/NPP/2019_01_15_015_1827/SVM03_npp*h5' ls: cannot access /mnt/r6/Data/NPP/2019_01_15_015_1827/SVM03_npp*h5: No such file or directory + sdr03list= ++ date + echo Wed Jan 16 12:34:18 CST '2019: Finished runNPPCrefl.sh' Wed Jan 16 12:34:18 CST 2019: Finished runNPPCrefl.sh ++ head -1 ++ ls 'CVIIRSM*hdf' ls: cannot access CVIIRSM*hdf: No such file or directory + CVIIRSMHdf= + test -z '' + echo 'No CVIIRSM*hdf file' No CVIIRSM*hdf file + exit -1 ++ tail -1 ++ ls 'CVIIRSM010403*_sharp.bsq' ls: cannot access CVIIRSM010403*_sharp.bsq: No such file or directory + sharpBsq= + test -z sharpBsq ++ echo ++ sed s,_sharp,_texas, + texasBsq= + mv mv: missing file operand Try `mv --help' for more information. + mv .hdr .hdr mv: cannot stat `.hdr': No such file or directory + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/scaleNPPCrefl.sh ++ basename /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/scaleNPPCrefl.sh + FUNC=scaleNPPCrefl.sh + irodsDir=/corralZ/projects/CSR/Public/NPP/ ++ dirname /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/scaleNPPCrefl.sh + scriptDir=/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts ++ fullpath /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts + scriptDir=/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts + scaleFile=/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppCrefl010403_enhance.txt + defDir=/mnt/r6/Software/IDL_WORKDIR/Default/scripts + dataDir=/mnt/r6/Data/NPP + '[' 0 -lt 1 ']' + echo 'Usage:scaleNPPCrefl.sh NPP_file.bsq' Usage:scaleNPPCrefl.sh NPP_file.bsq + exit 1 ++ basename .bsq + baseName=.bsq ++ basename .bsq _sharp + baseName=.bsq ++ dirname dirname: missing operand Try `dirname --help' for more information. + dirName= ++ ls /.bsq_8bit.bsq ls: cannot access /.bsq_8bit.bsq: No such file or directory + eightBsq= ++ ls /.bsq_8bit.tif ls: cannot access /.bsq_8bit.tif: No such file or directory + eightTif= ++ ls /.bsq_8bit.png ls: cannot access /.bsq_8bit.png: No such file or directory + eightPng= + test -n '' + echo ' PNG not generated' PNG not generated + exit -1