++ 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 Thu Jun 28 05:35:56 CDT '2018: Starting processNPP_GoM151216.sh' Thu Jun 28 05:35:56 CDT 2018: Starting processNPP_GoM151216.sh + '[' 1 -lt 1 ']' + dateDir=2018_06_28_179_0815 + workDir=/mnt/r6/Data/NPP/2018_06_28_179_0815 + cd /mnt/r6/Data/NPP/2018_06_28_179_0815 + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh -98 17 -80 31 15,12,16 2018_06_28_179_0815 ++ 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=2018_06_28_179_0815 + workDir=/mnt/r6/Data/NPP/2018_06_28_179_0815 + cd /mnt/r6/Data/NPP/2018_06_28_179_0815 ++ head -1 ++ ls GMTCO_npp_d20180628_t0815119_e0816363_b34546_c20180628083246285307_cspp_dev.h5 GMTCO_npp_d20180628_t0816375_e0818017_b34546_c20180628083247349472_cspp_dev.h5 GMTCO_npp_d20180628_t0818029_e0819271_b34546_c20180628083247446294_cspp_dev.h5 GMTCO_npp_d20180628_t0819283_e0820525_b34546_c20180628083244413171_cspp_dev.h5 GMTCO_npp_d20180628_t0820537_e0822179_b34546_c20180628083457502464_cspp_dev.h5 GMTCO_npp_d20180628_t0822191_e0823436_b34546_c20180628083454861096_cspp_dev.h5 + gmtco=GMTCO_npp_d20180628_t0815119_e0816363_b34546_c20180628083246285307_cspp_dev.h5 + for bandNumber in '$bandNumbers' ++ mindigits 2 15 + bn=15 ++ head -1 ++ ls SVM15_npp_d20180628_t0819283_e0820525_b34546_c20180628083302385930_cspp_dev.h5 SVM15_npp_d20180628_t0820537_e0822179_b34546_c20180628083514444205_cspp_dev.h5 SVM15_npp_d20180628_t0822191_e0823436_b34546_c20180628083505232825_cspp_dev.h5 + svmFirst=SVM15_npp_d20180628_t0819283_e0820525_b34546_c20180628083302385930_cspp_dev.h5 + rm -f SVM15_npp_d20180628_t0819283-Radiance.bin SVM15_npp_d20180628_t0819283_reg.bin + test -z SVM15_npp_d20180628_t0819283_e0820525_b34546_c20180628083302385930_cspp_dev.h5 + /opt/itt/idl/idl80/bin/idl /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/../run_concat_npp_sub.idlbatch -args -98 17 -80 31 SVM15_npp_d20180628_t0819283_e0820525_b34546_c20180628083302385930_cspp_dev.h5 Radiance GMTCO_npp_d20180628_t0815119_e0816363_b34546_c20180628083246285307_cspp_dev.h5 1 1 ++ ls SVM15_npp_d20180628_t0820537-Radiance.bin + radianceFile=SVM15_npp_d20180628_t0820537-Radiance.bin + test -z SVM15_npp_d20180628_t0820537-Radiance.bin + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -98 17 -80 31 SVM15_npp_d20180628_t0820537-Radiance.bin ++ head -1 ++ ls SVM15_npp_d20180628_t0820537_reg.bin + regFile=SVM15_npp_d20180628_t0820537_reg.bin ++ grep Radiance SVM15_npp_d20180628_t0820537_reg.bin.hdr ++ cut -d: -f2 + regBandName=SVM15_npp_d20180628_t0820537-Radiance.bin + bandNameList=' SVM15_npp_d20180628_t0820537-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20180628_t0820537_reg.bin' + for bandNumber in '$bandNumbers' ++ mindigits 2 12 + bn=12 ++ head -1 ++ ls SVM12_npp_d20180628_t0819283_e0820525_b34546_c20180628083302261745_cspp_dev.h5 SVM12_npp_d20180628_t0820537_e0822179_b34546_c20180628083514344024_cspp_dev.h5 SVM12_npp_d20180628_t0822191_e0823436_b34546_c20180628083505136500_cspp_dev.h5 + svmFirst=SVM12_npp_d20180628_t0819283_e0820525_b34546_c20180628083302261745_cspp_dev.h5 + rm -f SVM12_npp_d20180628_t0819283-Radiance.bin SVM12_npp_d20180628_t0819283_reg.bin + test -z SVM12_npp_d20180628_t0819283_e0820525_b34546_c20180628083302261745_cspp_dev.h5 + /opt/itt/idl/idl80/bin/idl /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/../run_concat_npp_sub.idlbatch -args -98 17 -80 31 SVM12_npp_d20180628_t0819283_e0820525_b34546_c20180628083302261745_cspp_dev.h5 Radiance GMTCO_npp_d20180628_t0815119_e0816363_b34546_c20180628083246285307_cspp_dev.h5 1 1 ++ ls SVM12_npp_d20180628_t0820537-Radiance.bin + radianceFile=SVM12_npp_d20180628_t0820537-Radiance.bin + test -z SVM12_npp_d20180628_t0820537-Radiance.bin + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -98 17 -80 31 SVM12_npp_d20180628_t0820537-Radiance.bin ++ head -1 ++ ls SVM12_npp_d20180628_t0820537_reg.bin + regFile=SVM12_npp_d20180628_t0820537_reg.bin ++ grep Radiance SVM12_npp_d20180628_t0820537_reg.bin.hdr ++ cut -d: -f2 + regBandName=SVM12_npp_d20180628_t0820537-Radiance.bin + bandNameList=' SVM15_npp_d20180628_t0820537-Radiance.bin SVM12_npp_d20180628_t0820537-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20180628_t0820537_reg.bin SVM12_npp_d20180628_t0820537_reg.bin' + for bandNumber in '$bandNumbers' ++ mindigits 2 16 + bn=16 ++ head -1 ++ ls SVM16_npp_d20180628_t0819283_e0820525_b34546_c20180628083302424333_cspp_dev.h5 SVM16_npp_d20180628_t0820537_e0822179_b34546_c20180628083514474895_cspp_dev.h5 SVM16_npp_d20180628_t0822191_e0823436_b34546_c20180628083505262542_cspp_dev.h5 + svmFirst=SVM16_npp_d20180628_t0819283_e0820525_b34546_c20180628083302424333_cspp_dev.h5 + rm -f SVM16_npp_d20180628_t0819283-Radiance.bin SVM16_npp_d20180628_t0819283_reg.bin + test -z SVM16_npp_d20180628_t0819283_e0820525_b34546_c20180628083302424333_cspp_dev.h5 + /opt/itt/idl/idl80/bin/idl /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/../run_concat_npp_sub.idlbatch -args -98 17 -80 31 SVM16_npp_d20180628_t0819283_e0820525_b34546_c20180628083302424333_cspp_dev.h5 Radiance GMTCO_npp_d20180628_t0815119_e0816363_b34546_c20180628083246285307_cspp_dev.h5 1 1 ++ ls SVM16_npp_d20180628_t0820537-Radiance.bin + radianceFile=SVM16_npp_d20180628_t0820537-Radiance.bin + test -z SVM16_npp_d20180628_t0820537-Radiance.bin + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -98 17 -80 31 SVM16_npp_d20180628_t0820537-Radiance.bin ++ head -1 ++ ls SVM16_npp_d20180628_t0820537_reg.bin + regFile=SVM16_npp_d20180628_t0820537_reg.bin ++ grep Radiance SVM16_npp_d20180628_t0820537_reg.bin.hdr ++ cut -d: -f2 + regBandName=SVM16_npp_d20180628_t0820537-Radiance.bin + bandNameList=' SVM15_npp_d20180628_t0820537-Radiance.bin SVM12_npp_d20180628_t0820537-Radiance.bin SVM16_npp_d20180628_t0820537-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20180628_t0820537_reg.bin SVM12_npp_d20180628_t0820537_reg.bin SVM16_npp_d20180628_t0820537_reg.bin' ++ basename SVM16_npp_d20180628_t0819283_e0820525_b34546_c20180628083302424333_cspp_dev.h5 ++ cut -d- -f1 + satDateTime=npp_d20180628_t0819283 ++ echo 15 12 16 ++ tr -d ' ' + combinedFile=SVM151216_npp_d20180628_t0819283_reg.bsq + cat SVM15_npp_d20180628_t0820537_reg.bin SVM12_npp_d20180628_t0820537_reg.bin SVM16_npp_d20180628_t0820537_reg.bin + sed -n '/ESRI/,/band names/p' SVM16_npp_d20180628_t0820537_reg.bin.hdr + sed 's,bands = 1,bands = 3,' + sed 's,nbands 1,nbands 3,' + for bandName in '$bandNameList' + '[' SVM16_npp_d20180628_t0820537-Radiance.bin '!=' SVM15_npp_d20180628_t0820537-Radiance.bin ']' + echo SVM15_npp_d20180628_t0820537-Radiance.bin, + for bandName in '$bandNameList' + '[' SVM16_npp_d20180628_t0820537-Radiance.bin '!=' SVM12_npp_d20180628_t0820537-Radiance.bin ']' + echo SVM12_npp_d20180628_t0820537-Radiance.bin, + for bandName in '$bandNameList' + '[' SVM16_npp_d20180628_t0820537-Radiance.bin '!=' SVM16_npp_d20180628_t0820537-Radiance.bin ']' + echo 'SVM16_npp_d20180628_t0820537-Radiance.bin }' + echo 'data gain values= { 1, 1, 1 }' + echo 'data offset values= { 0, 0, 0 }' + echo 'data minimum values= { -1e+100, -1e+100, -1e+100 }' + echo 'data maximum values= { 1e+100, 1e+100, 1e+100 }' + echo 'data ignore value= { -999.7, -999.7, -999.7 }' ++ tail -1 ++ ls SVM151216_npp_d20180628_t0819283_reg.bsq + modBsq=SVM151216_npp_d20180628_t0819283_reg.bsq + test -z SVM151216_npp_d20180628_t0819283_reg.bsq ++ echo SVM151216_npp_d20180628_t0819283_reg.bsq ++ sed s,_reg.bsq,_gom.bsq, + gomBsq=SVM151216_npp_d20180628_t0819283_gom.bsq + mv SVM151216_npp_d20180628_t0819283_reg.bsq SVM151216_npp_d20180628_t0819283_gom.bsq + mv SVM151216_npp_d20180628_t0819283_reg.bsq.hdr SVM151216_npp_d20180628_t0819283_gom.bsq.hdr + test -e dayNight.list ++ head -1 dayNight.list ++ cut -d: -f2 + dayNight=Night + '[' Night = Night ']' + scaleFile=nppNight151216_enhance.txt + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/scaleBSQ.sh nppNight151216_enhance.txt SVM151216_npp_d20180628_t0819283_gom.bsq ++ basename /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/scaleBSQ.sh + FUNC=scaleBSQ.sh ++ dirname /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/scaleBSQ.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 + '[' 2 -lt 2 ']' + scaleFile=nppNight151216_enhance.txt + bsqFile=SVM151216_npp_d20180628_t0819283_gom.bsq + test '!' -e nppNight151216_enhance.txt + test -e /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/ + echo 'Found /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppNight151216_enhance.txt' Found /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppNight151216_enhance.txt + scaleFile=/mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppNight151216_enhance.txt ++ basename SVM151216_npp_d20180628_t0819283_gom.bsq .bsq + baseName=SVM151216_npp_d20180628_t0819283_gom ++ dirname SVM151216_npp_d20180628_t0819283_gom.bsq + dirName=. + eightBitBsq=./SVM151216_npp_d20180628_t0819283_gom_8bit.bsq + /opt/itt/idl/idl80/bin/idl /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/../runPiece_linear_scale_image.idlbatch -args SVM151216_npp_d20180628_t0819283_gom.bsq ./SVM151216_npp_d20180628_t0819283_gom_8bit.bsq /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppNight151216_enhance.txt IDL Version 8.0.1 (linux x86_64 m64). (c) 2010, ITT Visual Information Solutions Installation number: 92612. Licensed for use by: Lab License % Restored file: ENVI. % Restored file: ENVI_M01. % Restored file: ENVI_M02. % Restored file: ENVI_M03. % Restored file: ENVI_M04. % Restored file: ENVI_M05. % Restored file: ENVI_M06. % Restored file: ENVI_M07. % Restored file: ENVI_M08. % Restored file: ENVI_D01. % Restored file: ENVI_D02. % Restored file: ENVI_D03. % Restored file: ENVI_CW. % Restored file: ENVI_IDL. % Restored file: ENVI_IOU. % Restored file: ENVI_RV. % Compiled module: PIECE_LINEAR_SCALE_ARRAY. % Compiled module: READ_SCALE_FILE. % Compiled module: PIECE_LINEAR_SCALE_IMAGE. nArgs 3 % Loaded DLM: MAP_PE. SVM151216_npp_d20180628_t0819283_gom.bsq 2 SVM151216_npp_d20180628_t0819283_gom.bsq 2308 2059 % Restored file: ENVI_EX1. % Loaded DLM: PNG. ++ ls ./SVM151216_npp_d20180628_t0819283_gom_8bit.bsq ++ sed s,bsq,tif, + eightTif=./SVM151216_npp_d20180628_t0819283_gom_8bit.tif ++ ls ./SVM151216_npp_d20180628_t0819283_gom_8bit.tif ++ sed s,tif,png, + eightPng=./SVM151216_npp_d20180628_t0819283_gom_8bit.png + test -f ./SVM151216_npp_d20180628_t0819283_gom_8bit.png + echo ' PNG generated' PNG generated + exit 0 + ls SVM151216_npp_d20180628_t0819283_gom_8bit.bsq SVM151216_npp_d20180628_t0819283_gom_8bit.tif SVM151216_npp_d20180628_t0819283_gom_8bit.png SVM151216_npp_d20180628_t0819283_gom_8bit.bsq SVM151216_npp_d20180628_t0819283_gom_8bit.png SVM151216_npp_d20180628_t0819283_gom_8bit.tif + status=0 + iput -f SVM151216_npp_d20180628_t0819283_gom.bsq SVM151216_npp_d20180628_t0819283_gom.bsq.hdr /corralZ/projects/CSR/Public/NPP + iput -f SVM151216_npp_d20180628_t0819283_gom_8bit.tif SVM151216_npp_d20180628_t0819283_gom_8bit.png /corralZ/projects/CSR/Public/NPP ++ date + echo Thu Jun 28 05:36:42 CDT '2018: Finished processNPP_GoM151216.sh 0' Thu Jun 28 05:36:42 CDT 2018: Finished processNPP_GoM151216.sh 0