++ basename /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPP_GoM151216.sh + FUNC=processNPP_GoM151216.sh ++ dirname /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPP_GoM151216.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 processNPP_GoM151216.sh /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppBounds.list + boundLine=-98:17:-80:31:Both=processNPP_GoM151216.sh ++ echo -98:17:-80:31:Both=processNPP_GoM151216.sh ++ cut -d= -f1 + bounds=-98:17:-80:31:Both ++ echo -98:17:-80:31:Both ++ cut -d: -f1 + lon1=-98 ++ echo -98:17:-80:31:Both ++ cut -d: -f2 + lat1=17 ++ echo -98:17:-80:31:Both ++ cut -d: -f3 + lon2=-80 ++ echo -98:17:-80:31:Both ++ cut -d: -f4 + lat2=31 ++ date + echo Sun Jun 18 14:36:43 CDT '2017: Starting processNPP_GoM151216.sh' Sun Jun 18 14:36:43 CDT 2017: Starting processNPP_GoM151216.sh + '[' 1 -lt 1 ']' + dateDir=2017_06_18_169_1826 + workDir=/mnt/r6/Data/NPP/2017_06_18_169_1826 + cd /mnt/r6/Data/NPP/2017_06_18_169_1826 + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh -98 17 -80 31 15,12,16 2017_06_18_169_1826 ++ basename /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh + FUNC=extractProjectNPPmod.sh ++ dirname /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.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 + dataDir=/mnt/r6/Data/NPP + '[' 6 -lt 5 ']' + lon1=-98 + lon2=-80 + lat1=17 + lat2=31 ++ echo 15,12,16 ++ sed 's/,/ /g' + bandNumbers='15 12 16' ++ echo '15 12 16' ++ awk '{print NF}' + bandKnt=3 + dateDir=2017_06_18_169_1826 + workDir=/mnt/r6/Data/NPP/2017_06_18_169_1826 + cd /mnt/r6/Data/NPP/2017_06_18_169_1826 ++ head -1 ++ ls GMTCO_npp_d20170618_t1826211_e1827456_b29232_c20170618184757704272_cspp_dev.h5 GMTCO_npp_d20170618_t1827468_e1829110_b29232_c20170618184740659669_cspp_dev.h5 GMTCO_npp_d20170618_t1829122_e1830364_b29232_c20170618184738368770_cspp_dev.h5 GMTCO_npp_d20170618_t1830376_e1832018_b29232_c20170618184747732045_cspp_dev.h5 GMTCO_npp_d20170618_t1832030_e1833272_b29232_c20170618184936255953_cspp_dev.h5 GMTCO_npp_d20170618_t1833284_e1834526_b29232_c20170618185137756887_cspp_dev.h5 GMTCO_npp_d20170618_t1834538_e1836180_b29232_c20170618185137460673_cspp_dev.h5 GMTCO_npp_d20170618_t1836192_e1837434_b29232_c20170618185138186187_cspp_dev.h5 GMTCO_npp_d20170618_t1837446_e1839088_b29232_c20170618185336238607_cspp_dev.h5 GMTCO_npp_d20170618_t1839100_e1840343_b29232_c20170618185344406153_cspp_dev.h5 + gmtco=GMTCO_npp_d20170618_t1826211_e1827456_b29232_c20170618184757704272_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