++ 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 + iRodsBase=/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 Mon Jan 28 13:54:36 CST '2019: Starting processNPP_GoM151216.sh' Mon Jan 28 13:54:36 CST 2019: Starting processNPP_GoM151216.sh + '[' 1 -lt 1 ']' + dateDir=2019_01_28_028_1924 + year=2019 + iRodsDir=/corralZ/projects/CSR/Public/NPP/2019 + ils /corralZ/projects/CSR/Public/NPP/2019 /corralZ/projects/CSR/Public/NPP/2019: CVIIRSM010403_npp_d20190116_t1949418_gom_8bit.png CVIIRSM010403_npp_d20190116_t1949418_gom_8bit.tif CVIIRSM010403_npp_d20190116_t1951074_texas_8bit.png CVIIRSM010403_npp_d20190116_t1951074_texas_8bit.tif CVIIRSM010403_npp_d20190118_t1911507_gom_8bit.png CVIIRSM010403_npp_d20190118_t1913161_texas_8bit.png CVIIRSM010403_npp_d20190118_t1913161_texas_8bit.tif CVIIRSM010403_npp_d20190120_t2013340_gom_8bit.png CVIIRSM010403_npp_d20190120_t2013340_gom_8bit.tif CVIIRSM010403_npp_d20190120_t2016250_texas_8bit.png CVIIRSM010403_npp_d20190120_t2016250_texas_8bit.tif CVIIRSM010403_npp_d20190122_t1937086_gom_8bit.png CVIIRSM010403_npp_d20190122_t1937086_gom_8bit.tif CVIIRSM010403_npp_d20190122_t1938341_texas_8bit.png CVIIRSM010403_npp_d20190122_t1938341_texas_8bit.tif CVIIRSM010403_npp_d20190123_t1918130_gom_8bit.png CVIIRSM010403_npp_d20190123_t1918130_gom_8bit.tif CVIIRSM010403_npp_d20190123_t1919385_texas_8bit.png CVIIRSM010403_npp_d20190123_t1919385_texas_8bit.tif CVIIRSM010403_npp_d20190124_t1859192_gom_8bit.png CVIIRSM010403_npp_d20190124_t1859192_gom_8bit.tif CVIIRSM010403_npp_d20190124_t1900446_texas_8bit.png CVIIRSM010403_npp_d20190124_t1900446_texas_8bit.tif CVIIRSM010403_npp_d20190125_t1840235_gom_8bit.png CVIIRSM010403_npp_d20190125_t1840235_gom_8bit.tif CVIIRSM010403_npp_d20190125_t1841490_texas_8bit.png CVIIRSM010403_npp_d20190125_t1841490_texas_8bit.tif CVIIRSM010403_npp_d20190125_t2019582_gom_8bit.png CVIIRSM010403_npp_d20190125_t2019582_gom_8bit.tif CVIIRSM010403_npp_d20190125_t2021238_texas_8bit.png CVIIRSM010403_npp_d20190125_t2021238_texas_8bit.tif CVIIRSM010403_npp_d20190126_t1821279_gom_8bit.png CVIIRSM010403_npp_d20190126_t1821279_gom_8bit.tif CVIIRSM010403_npp_d20190126_t1822534_texas_8bit.png CVIIRSM010403_npp_d20190126_t1822534_texas_8bit.tif CVIIRSM010403_npp_d20190126_t2002279_gom_8bit.png CVIIRSM010403_npp_d20190126_t2002279_gom_8bit.tif CVIIRSM010403_npp_d20190126_t2002279_texas_8bit.png CVIIRSM010403_npp_d20190126_t2002279_texas_8bit.tif CVIIRSM010403_npp_d20190127_t1943323_gom_8bit.png CVIIRSM010403_npp_d20190127_t1943323_gom_8bit.tif CVIIRSM010403_npp_d20190127_t1943323_texas_8bit.png CVIIRSM010403_npp_d20190127_t1943323_texas_8bit.tif SVDNB_npp_d20190116_t1951074_texas_8bit.png SVDNB_npp_d20190116_t1951074_texas_8bit.tif SVDNB_npp_d20190116_t1951074_texas.bsq SVDNB_npp_d20190116_t1951074_texas.bsq.hdr SVDNB_npp_d20190122_t1938341_texas_8bit.png SVDNB_npp_d20190122_t1938341_texas_8bit.tif SVDNB_npp_d20190122_t1938341_texas.bsq SVDNB_npp_d20190122_t1938341_texas.bsq.hdr SVDNB_npp_d20190123_t1919385_texas_8bit.png SVDNB_npp_d20190123_t1919385_texas_8bit.tif SVDNB_npp_d20190123_t1919385_texas.bsq SVDNB_npp_d20190123_t1919385_texas.bsq.hdr SVDNB_npp_d20190124_t1900446_texas_8bit.png SVDNB_npp_d20190124_t1900446_texas_8bit.tif SVDNB_npp_d20190124_t1900446_texas.bsq SVDNB_npp_d20190124_t1900446_texas.bsq.hdr SVDNB_npp_d20190125_t1841490_texas_8bit.png SVDNB_npp_d20190125_t1841490_texas_8bit.tif SVDNB_npp_d20190125_t1841490_texas.bsq SVDNB_npp_d20190125_t1841490_texas.bsq.hdr SVDNB_npp_d20190125_t2021238_texas_8bit.png SVDNB_npp_d20190125_t2021238_texas_8bit.tif SVDNB_npp_d20190125_t2021238_texas.bsq SVDNB_npp_d20190125_t2021238_texas.bsq.hdr SVDNB_npp_d20190126_t1822534_texas_8bit.png SVDNB_npp_d20190126_t1822534_texas_8bit.tif SVDNB_npp_d20190126_t1822534_texas.bsq SVDNB_npp_d20190126_t1822534_texas.bsq.hdr SVDNB_npp_d20190126_t2002279_texas_8bit.png SVDNB_npp_d20190126_t2002279_texas_8bit.tif SVDNB_npp_d20190126_t2002279_texas.bsq SVDNB_npp_d20190126_t2002279_texas.bsq.hdr SVDNB_npp_d20190127_t1943323_texas_8bit.png SVDNB_npp_d20190127_t1943323_texas_8bit.tif SVDNB_npp_d20190127_t1943323_texas.bsq SVDNB_npp_d20190127_t1943323_texas.bsq.hdr SVM151216_npp_d20190116_t1949418_gom_8bit.png SVM151216_npp_d20190116_t1949418_gom_8bit.tif SVM151216_npp_d20190116_t1949418_gom.bsq SVM151216_npp_d20190116_t1949418_gom.bsq.hdr SVM151216_npp_d20190116_t1949418_texas_8bit.png SVM151216_npp_d20190116_t1949418_texas_8bit.tif SVM151216_npp_d20190116_t1949418_texas.bsq SVM151216_npp_d20190116_t1949418_texas.bsq.hdr SVM151216_npp_d20190118_t1911507_gom_8bit.png SVM151216_npp_d20190118_t1911507_gom_8bit.tif SVM151216_npp_d20190118_t1911507_gom.bsq SVM151216_npp_d20190118_t1911507_gom.bsq.hdr SVM151216_npp_d20190120_t2013340_gom_8bit.png SVM151216_npp_d20190120_t2013340_gom_8bit.tif SVM151216_npp_d20190120_t2013340_gom.bsq SVM151216_npp_d20190120_t2013340_gom.bsq.hdr SVM151216_npp_d20190122_t1937086_gom_8bit.png SVM151216_npp_d20190122_t1937086_gom_8bit.tif SVM151216_npp_d20190122_t1937086_gom.bsq SVM151216_npp_d20190122_t1937086_gom.bsq.hdr SVM151216_npp_d20190122_t1937086_texas_8bit.png SVM151216_npp_d20190122_t1937086_texas_8bit.tif SVM151216_npp_d20190122_t1937086_texas.bsq SVM151216_npp_d20190122_t1937086_texas.bsq.hdr SVM151216_npp_d20190123_t1918130_gom_8bit.png SVM151216_npp_d20190123_t1918130_gom_8bit.tif SVM151216_npp_d20190123_t1918130_gom.bsq SVM151216_npp_d20190123_t1918130_gom.bsq.hdr SVM151216_npp_d20190123_t1918130_texas_8bit.png SVM151216_npp_d20190123_t1918130_texas_8bit.tif SVM151216_npp_d20190123_t1918130_texas.bsq SVM151216_npp_d20190123_t1918130_texas.bsq.hdr SVM151216_npp_d20190124_t1859192_gom_8bit.png SVM151216_npp_d20190124_t1859192_gom_8bit.tif SVM151216_npp_d20190124_t1859192_gom.bsq SVM151216_npp_d20190124_t1859192_gom.bsq.hdr SVM151216_npp_d20190124_t1859192_texas_8bit.png SVM151216_npp_d20190124_t1859192_texas_8bit.tif SVM151216_npp_d20190124_t1859192_texas.bsq SVM151216_npp_d20190124_t1859192_texas.bsq.hdr SVM151216_npp_d20190125_t1840235_gom_8bit.png SVM151216_npp_d20190125_t1840235_gom_8bit.tif SVM151216_npp_d20190125_t1840235_gom.bsq SVM151216_npp_d20190125_t1840235_gom.bsq.hdr SVM151216_npp_d20190125_t1840235_texas_8bit.png SVM151216_npp_d20190125_t1840235_texas_8bit.tif SVM151216_npp_d20190125_t1840235_texas.bsq SVM151216_npp_d20190125_t1840235_texas.bsq.hdr SVM151216_npp_d20190125_t2019582_gom_8bit.png SVM151216_npp_d20190125_t2019582_gom_8bit.tif SVM151216_npp_d20190125_t2019582_gom.bsq SVM151216_npp_d20190125_t2019582_gom.bsq.hdr SVM151216_npp_d20190125_t2019582_texas_8bit.png SVM151216_npp_d20190125_t2019582_texas_8bit.tif SVM151216_npp_d20190125_t2019582_texas.bsq SVM151216_npp_d20190125_t2019582_texas.bsq.hdr SVM151216_npp_d20190126_t1821279_gom_8bit.png SVM151216_npp_d20190126_t1821279_gom_8bit.tif SVM151216_npp_d20190126_t1821279_gom.bsq SVM151216_npp_d20190126_t1821279_gom.bsq.hdr SVM151216_npp_d20190126_t1821279_texas_8bit.png SVM151216_npp_d20190126_t1821279_texas_8bit.tif SVM151216_npp_d20190126_t1821279_texas.bsq SVM151216_npp_d20190126_t1821279_texas.bsq.hdr SVM151216_npp_d20190126_t2002279_gom_8bit.png SVM151216_npp_d20190126_t2002279_gom_8bit.tif SVM151216_npp_d20190126_t2002279_gom.bsq SVM151216_npp_d20190126_t2002279_gom.bsq.hdr SVM151216_npp_d20190126_t2002279_texas_8bit.png SVM151216_npp_d20190126_t2002279_texas_8bit.tif SVM151216_npp_d20190126_t2002279_texas.bsq SVM151216_npp_d20190126_t2002279_texas.bsq.hdr SVM151216_npp_d20190127_t1943323_gom_8bit.png SVM151216_npp_d20190127_t1943323_gom_8bit.tif SVM151216_npp_d20190127_t1943323_gom.bsq SVM151216_npp_d20190127_t1943323_gom.bsq.hdr SVM151216_npp_d20190127_t1943323_texas_8bit.png SVM151216_npp_d20190127_t1943323_texas_8bit.tif SVM151216_npp_d20190127_t1943323_texas.bsq SVM151216_npp_d20190127_t1943323_texas.bsq.hdr + workDir=/mnt/r6/Data/NPP/2019_01_28_028_1924 + cd /mnt/r6/Data/NPP/2019_01_28_028_1924 + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh -98 17 -80 31 15,12,16 2019_01_28_028_1924 ++ 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=2019_01_28_028_1924 + workDir=/mnt/r6/Data/NPP/2019_01_28_028_1924 + cd /mnt/r6/Data/NPP/2019_01_28_028_1924 ++ head -1 ++ ls 'GMTCO*h5' ls: cannot access GMTCO*h5: No such file or directory + gmtco= + 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