++ basename /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPP_Texas151216.sh + FUNC=processNPP_Texas151216.sh ++ dirname /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPP_Texas151216.sh + scriptDir=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts ++ fullpath /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts + scriptDir=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts + defDir=/mnt/r4/Software/IDL_WORKDIR/Default/scripts + dataDir=/mnt/r5/Data/NPP + iRodsDir=/corralZ/projects/CSR/Public/NPP ++ grep processNPP_Texas151216.sh /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/nppBounds.list + boundLine=-107:25:-93:37:Both=processNPP_Texas151216.sh ++ cut -d= -f1 ++ echo -107:25:-93:37:Both=processNPP_Texas151216.sh + bounds=-107:25:-93:37:Both ++ cut -d: -f1 ++ echo -107:25:-93:37:Both + lon1=-107 ++ echo -107:25:-93:37:Both + lat1=25 ++ echo -107:25:-93:37:Both ++ cut -d: -f3 + lon2=-93 ++ echo -107:25:-93:37:Both ++ cut -d: -f4 + lat2=37 ++ date + echo Sun Nov 17 02:13:50 CST '2013: Starting processNPP_Texas151216.sh' Sun Nov 17 02:13:50 CST 2013: Starting processNPP_Texas151216.sh + '[' 1 -lt 1 ']' + dateDir=2013_11_11_315_0801 + workDir=/mnt/r5/Data/NPP/2013_11_11_315_0801 + cd /mnt/r5/Data/NPP/2013_11_11_315_0801 + /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh -107 25 -93 37 15,12,16 2013_11_11_315_0801 ++ basename /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh + FUNC=extractProjectNPPmod.sh ++ dirname /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh + scriptDir=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts ++ fullpath /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts + scriptDir=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts + dataDir=/mnt/r5/Data/NPP + '[' 6 -lt 5 ']' + lon1=-107 + lon2=-93 + lat1=25 + lat2=37 ++ sed 's/,/ /g' ++ echo 15,12,16 + bandNumbers='15 12 16' ++ echo '15 12 16' ++ awk '{print NF}' + bandKnt=3 + dateDir=2013_11_11_315_0801 + workDir=/mnt/r5/Data/NPP/2013_11_11_315_0801 + cd /mnt/r5/Data/NPP/2013_11_11_315_0801 ++ ls GMTCO_npp_d20131111_t0801122_e0802364_b10570_c20131111082000873212_cspp_dev.h5 GMTCO_npp_d20131111_t0802377_e0804018_b10570_c20131111082007092169_cspp_dev.h5 GMTCO_npp_d20131111_t0804031_e0805272_b10570_c20131111082009343849_cspp_dev.h5 GMTCO_npp_d20131111_t0805285_e0806526_b10570_c20131111082013455430_cspp_dev.h5 GMTCO_npp_d20131111_t0806539_e0808180_b10570_c20131111082144034035_cspp_dev.h5 GMTCO_npp_d20131111_t0808193_e0809435_b10570_c20131111082155559511_cspp_dev.h5 GMTCO_npp_d20131111_t0809447_e0811089_b10570_c20131111082156812612_cspp_dev.h5 GMTCO_npp_d20131111_t0811101_e0812343_b10570_c20131111082154139263_cspp_dev.h5 GMTCO_npp_d20131111_t0812355_e0813597_b10570_c20131111082323980098_cspp_dev.h5 GMTCO_npp_d20131111_t0814009_e0815254_b10570_c20131111082333682045_cspp_dev.h5 ++ head -1 + gmtco=GMTCO_npp_d20131111_t0801122_e0802364_b10570_c20131111082000873212_cspp_dev.h5 + for bandNumber in '$bandNumbers' ++ mindigits 2 15 + bn=15 ++ head -1 ++ ls 'SVM15*h5' ls: cannot access SVM15*h5: No such file or directory + svmFirst= + rm -f 'SVM15*adiance.bin' 'SVM15*_reg.bin' + test -z '' + echo ' No SVM15*.h5 file found' No SVM15*.h5 file found + exit -1 ++ tail -1 ++ ls 'SVM151216*_reg.bsq' ls: cannot access SVM151216*_reg.bsq: No such file or directory + modBsq= + test -z '' + echo ' No _reg.bsq file found' No _reg.bsq file found + exit