++ basename /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPPtherm_storm1.sh + FUNC=processNPPtherm_storm1.sh ++ dirname /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPPtherm_storm1.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 + iRodsBase=/corralZ/projects/CSR/Public + stormName=harvey + stormYr=17 + iRodsDir=/corralZ/projects/CSR/Public/17harvey ++ date + echo Tue Aug 29 14:57:52 CDT '2017: Starting processNPPtherm_storm1.sh' Tue Aug 29 14:57:52 CDT 2017: Starting processNPPtherm_storm1.sh + '[' 1 -lt 1 ']' + dateDir=2017_08_29_241_1917 ++ echo 2017_08_29_241_1917 ++ cut -c1-8,12,13 + datehr=2017082919 ++ /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/estimate_hurricane_location harvey 2017082919 + DEBUG=0 + NHCFTP=ftp.nhc.noaa.gov + INDEXDIR=/atcf/index + INDEXFILE=storm_list.txt + EstHurrLoc=/home/xtuser/teng_dev/bin/est_hurr_loclnx + '[' 2 -lt 2 ']' ++ awk '{print toupper($1)}' + NAME=HARVEY + DATETIME=2017082919 + rm -f storm_list.txt + ncftpget -V ftp://ftp.nhc.noaa.gov//atcf/index/storm_list.txt ++ grep 'HARVEY, AL,' storm_list.txt ++ cut -d, -f 21 + HURRKEY=' AL092017' + test -z ' AL092017' ++ awk '{print tolower($1)}' + HURRKEYlow=al092017 + BESTTRACKDIR=/atcf/btk + BESTTRACKFILE=bal092017.dat + rm -f bal092017.dat + '[' 0 -ne 0 ']' + ncftpget -V ftp://ftp.nhc.noaa.gov//atcf/btk/bal092017.dat + cut -d, -f 1-38 bal092017.dat + mv besttrack.dat bal092017.dat ++ /home/xtuser/teng_dev/bin/est_hurr_loclnx 2017082919 bal092017.dat + ESTLOC='2017082919,29.25 N,94.37 W' + '[' 0 -ne 0 ']' ++ cut -d, -f2 + LATITUDE='29.25 N' ++ cut -d, -f3 + LONGITUDE='94.37 W' + echo HARVEY, AL092017,2017082919,29.25 N,94.37 W + LOCATIONLINE='HARVEY, AL092017,2017082919,29.25 N,94.37 W' ++ echo HARVEY, AL092017,2017082919,29.25 N,94.37 W ++ cut '-d ' -f1 + stormLon=94.37 ++ echo HARVEY, AL092017,2017082919,29.25 N,94.37 W ++ cut '-d ' -f1 + stormLat=29.25 + latSize=7 + lonSize=7.5 ++ echo '(94.37 - 7.5)*-1.0' ++ bc + lon1=-86.87 ++ echo '(94.37 + 7.5)*-1.0' ++ bc + lon2=-101.87 ++ echo '(29.25 - 7)' ++ bc + lat1=22.25 ++ echo '(29.25 + 7)' ++ bc + lat2=36.25 ++ grep processNPPtherm_storm1.sh /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppBounds.list + boundLine=-87.43:34.97:-102.43:20.97:Both=processNPPtherm_storm1.sh ++ echo -87.43:34.97:-102.43:20.97:Both=processNPPtherm_storm1.sh ++ cut -d: -f5- + suffix=Both=processNPPtherm_storm1.sh + newBoundLine=-86.87:36.25:-101.87:22.25:Both=processNPPtherm_storm1.sh ++ date +%Y%m%d%H%M + dateTag=201708291457 + sed '/-87.43:34.97:-102.43:20.97:Both=processNPPtherm_storm1.sh/c\-86.87:36.25:-101.87:22.25:Both=processNPPtherm_storm1.sh' /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppBounds.list + test -s /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppBounds.201708291457 + mv /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppBounds.list /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppBounds.prev201708291457 + cp /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppBounds.201708291457 /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppBounds.list + workDir=/mnt/r6/Data/NPP/2017_08_29_241_1917 + cd /mnt/r6/Data/NPP/2017_08_29_241_1917 + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh -86.87 22.25 -101.87 36.25 15,12,16 2017_08_29_241_1917 ++ 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=-86.87 + lon2=-101.87 + lat1=22.25 + lat2=36.25 ++ echo 15,12,16 ++ sed 's/,/ /g' + bandNumbers='15 12 16' ++ echo '15 12 16' ++ awk '{print NF}' + bandKnt=3 + dateDir=2017_08_29_241_1917 + workDir=/mnt/r6/Data/NPP/2017_08_29_241_1917 + cd /mnt/r6/Data/NPP/2017_08_29_241_1917 ++ 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