++ basename /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPP_Texas151216.sh + FUNC=processNPP_Texas151216.sh ++ dirname /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPP_Texas151216.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_Texas151216.sh /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/nppBounds.list + boundLine=-107:25:-93:37:Both=processNPP_Texas151216.sh ++ echo -107:25:-93:37:Both=processNPP_Texas151216.sh ++ cut -d= -f1 + bounds=-107:25:-93:37:Both ++ echo -107:25:-93:37:Both ++ cut -d: -f1 + lon1=-107 ++ echo -107:25:-93:37:Both ++ cut -d: -f2 + 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 Oct 1 04:03:40 CDT '2017: Starting processNPP_Texas151216.sh' Sun Oct 1 04:03:40 CDT 2017: Starting processNPP_Texas151216.sh + '[' 1 -lt 1 ']' + dateDir=2017_10_01_274_0735 + workDir=/mnt/r6/Data/NPP/2017_10_01_274_0735 + cd /mnt/r6/Data/NPP/2017_10_01_274_0735 + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh -107 25 -93 37 15,12,16 2017_10_01_274_0735 ++ 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=-107 + lon2=-93 + lat1=25 + lat2=37 ++ echo 15,12,16 ++ sed 's/,/ /g' + bandNumbers='15 12 16' ++ echo '15 12 16' ++ awk '{print NF}' + bandKnt=3 + dateDir=2017_10_01_274_0735 + workDir=/mnt/r6/Data/NPP/2017_10_01_274_0735 + cd /mnt/r6/Data/NPP/2017_10_01_274_0735 ++ head -1 ++ ls GMTCO_npp_d20171001_t0735137_e0736380_b30715_c20171001075343257819_cspp_dev.h5 GMTCO_npp_d20171001_t0736393_e0738034_b30715_c20171001075346407536_cspp_dev.h5 GMTCO_npp_d20171001_t0738047_e0739288_b30715_c20171001075349737583_cspp_dev.h5 GMTCO_npp_d20171001_t0739301_e0740542_b30715_c20171001075355249426_cspp_dev.h5 GMTCO_npp_d20171001_t0740555_e0742196_b30715_c20171001075529954199_cspp_dev.h5 GMTCO_npp_d20171001_t0742209_e0743450_b30715_c20171001075533471837_cspp_dev.h5 GMTCO_npp_d20171001_t0743463_e0745105_b30715_c20171001075533329161_cspp_dev.h5 GMTCO_npp_d20171001_t0745117_e0746359_b30715_c20171001075536371979_cspp_dev.h5 GMTCO_npp_d20171001_t0746371_e0747595_b30715_c20171001075707897845_cspp_dev.h5 GMTCO_npp_d20171001_t0748007_e0749251_b30715_c20171001075713558379_cspp_dev.h5 + gmtco=GMTCO_npp_d20171001_t0735137_e0736380_b30715_c20171001075343257819_cspp_dev.h5 + for bandNumber in '$bandNumbers' ++ mindigits 2 15 + bn=15 ++ head -1 ++ ls SVM15_npp_d20171001_t0743463_e0745105_b30715_c20171001075534166258_cspp_dev.h5 SVM15_npp_d20171001_t0745117_e0746359_b30715_c20171001075537185589_cspp_dev.h5 SVM15_npp_d20171001_t0746371_e0747595_b30715_c20171001075708647135_cspp_dev.h5 + svmFirst=SVM15_npp_d20171001_t0743463_e0745105_b30715_c20171001075534166258_cspp_dev.h5 + rm -f SVM15_npp_d20171001_t0743463-Radiance.bin 'SVM15*_reg.bin' + test -z SVM15_npp_d20171001_t0743463_e0745105_b30715_c20171001075534166258_cspp_dev.h5 + /opt/itt/idl/idl80/bin/idl /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/../run_concat_npp_sub.idlbatch -args -107 25 -93 37 SVM15_npp_d20171001_t0743463_e0745105_b30715_c20171001075534166258_cspp_dev.h5 Radiance GMTCO_npp_d20171001_t0735137_e0736380_b30715_c201710010753432++ ls SVM15_npp_d20171++ ls SVM15_npp_d20171001_t0743463-Radiance.bin + radianceFile=SVM15_npp_d20171001_t0743463-Radiance.bin + test -z SVM15_npp_d20171001_t0743463-Radiance.bin + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -107 25 -93 37 SVM15_npp_d20171001_t0743463-Radiance.bin ++ head -1 ++ ls SVM15_npp_d20171001_t0743463_reg.bin + regFile=SVM15_npp_d20171001_t0743463_reg.bin ++ grep Radiance SVM15_npp_d20171001_t0743463_reg.bin.hdr ++ cut -d: -f2 + regBandName=SVM15_npp_d20171001_t0743463-Radiance.bin + bandNameList=' SVM15_npp_d20171001_t0743463-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20171001_t0743463_reg.bin' + for bandNumber in '$bandNumbers' ++ mindigits 2 12 + bn=12 ++ head -1 ++ ls SVM12_npp_d20171001_t0743463_e0745105_b30715_c20171001075534067251_cspp_dev.h5 SVM12_npp_d20171001_t0745117_e0746359_b30715_c20171001075537082305_cspp_dev.h5 SVM12_npp_d20171001_t0746371_e0747595_b30715_c20171001075708544914_cspp_dev.h5 + svmFirst=SVM12_npp_d20171001_t0743463_e0745105_b30715_c20171001075534067251_cspp_dev.h5 + rm -f SVM12_npp_d20171001_t0743463-Radiance.bin 'SVM12*_reg.bin' + test -z SVM12_npp_d20171001_t0743463_e0745105_b30715_c20171001075534067251_cspp_dev.h5 + /opt/itt/idl/idl80/bin/idl /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/../run_concat_npp_sub.idlbatch -args -107 25 -93 37 SVM12_npp_d20171001_t0743463_e0745105_b30715_c20171001075534067251_cspp_dev.h5 Radiance GMTCO_npp_d20171001_t0735137_e0736380_b++ ls 'SVM12*Radiance.bin' ls: cannot access++ ls SVM12_npp_d20171001_t0743463-Radiance.bin + radianceFile=SVM12_npp_d20171001_t0743463-Radiance.bin + test -z SVM12_npp_d20171001_t0743463-Radiance.bin + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -107 25 -93 37 SVM12_npp_d20171001_t0743463-Radiance.bin ++ head -1 ++ ls SVM12_npp_d20171001_t0743463_reg.bin + regFile=SVM12_npp_d20171001_t0743463_reg.bin ++ grep Radiance SVM12_npp_d20171001_t0743463_reg.bin.hdr ++ cut -d: -f2 + regBandName=SVM12_npp_d20171001_t0743463-Radiance.bin + bandNameList=' SVM15_npp_d20171001_t0743463-Radiance.bin SVM12_npp_d20171001_t0743463-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20171001_t0743463_reg.bin SVM12_npp_d20171001_t0743463_reg.bin' + for bandNumber in '$bandNumbers' ++ mindigits 2 16 + bn=16 ++ head -1 ++ ls SVM16_npp_d20171001_t0743463_e0745105_b30715_c20171001075534194904_cspp_dev.h5 SVM16_npp_d20171001_t0745117_e0746359_b30715_c20171001075537213541_cspp_dev.h5 SVM16_npp_d20171001_t0746371_e0747595_b30715_c20171001075708675526_cspp_dev.h5 + svmFirst=SVM16_npp_d20171001_t0743463_e0745105_b30715_c20171001075534194904_cspp_dev.h5 + rm -f 'SVM16*adiance.bin' 'SVM16*_reg.bin' + test -z SVM16_npp_d20171001_t0743463_e0745105_b30715_c20171001075534194904_cspp_dev.h5 + /opt/itt/idl/idl80/bin/idl /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/../run_concat_npp_sub.idlbatch -args -107 25 -93 37 SVM16_npp_d20171001_t0743463_e0745105_b30715_c20171001075534194904_cspp_dev.h5 Radiance GMTCO_npp_d20171001_t0735137_e0736380_b30715_c20171001075343257819_cspp_dev.h5 1 1 ++ ls SVM16_npp_d20171001_t0743463-Radiance.bin + radianceFile=SVM16_npp_d20171001_t0743463-Radiance.bin + test -z SVM16_npp_d20171001_t0743463-Radiance.bin + /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -107 25 -93 37 SVM16_npp_d20171001_t0743463-Radiance.bin ++ head -1 ++ ls SVM16_npp_d20171001_t0743463_reg.bin + regFile=SVM16_npp_d20171001_t0743463_reg.bin ++ grep Radiance SVM16_npp_d20171001_t0743463_reg.bin.hdr ++ cut -d: -f2 + regBandName=SVM16_npp_d20171001_t0743463-Radiance.bin + bandNameList=' SVM15_npp_d20171001_t0743463-Radiance.bin SVM12_npp_d20171001_t0743463-Radiance.bin SVM16_npp_d20171001_t0743463-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20171001_t0743463_reg.bin SVM12_npp_d20171001_t0743463_reg.bin SVM16_npp_d20171001_t0743463_reg.bin' ++ basename SVM16_npp_d20171001_t0743463_e0745105_b30715_c20171001075534194904_cspp_dev.h5 ++ cut -d- -f1 + satDateTime=npp_d20171001_t0743463 ++ echo 15 12 16 ++ tr -d ' ' + combinedFile=SVM151216_npp_d20171001_t0743463_reg.bsq + cat SVM15_npp_d20171001_t0743463_reg.bin SVM12_npp_d20171001_t0743463_reg.bin SVM16_npp_d20171001_t0743463_reg.bin + sed -n '/ESRI/,/band names/p' SVM16_npp_d20171001_t0743463_reg.bin.hdr + sed 's,bands = 1,bands = 3,' + for bandName in '$bandNameList' + '[' SVM16_npp_d20171001_t0743463-Radiance.bin '!=' SVM15_npp_d20171001_t0743463-Radiance.bin ']' + echo SVM15_npp_d20171001_t0743463-Radiance.bin, + for bandName in '$bandNameList' + '[' SVM16_npp_d20171001_t0743463-Radiance.bin '!=' SVM12_npp_d20171001_t0743463-Radiance.bin ']' + echo SVM12_npp_d20171001_t0743463-Radiance.bin, + for bandName in '$bandNameList' + '[' SVM16_npp_d20171001_t0743463-Radiance.bin '!=' SVM16_npp_d20171001_t0743463-Radiance.bin ']' + echo 'SVM16_npp_d20171001_t0743463-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_d20171001_t0743463_reg.bsq + modBsq=SVM151216_npp_d20171001_t0743463_reg.bsq + test -z SVM151216_npp_d20171001_t0743463_reg.bsq ++ echo SVM151216_npp_d20171001_t0743463_reg.bsq ++ sed s,_reg.bsq,_texas.bsq, + texasBsq=SVM151216_npp_d20171001_t0743463_texas.bsq + mv SVM151216_npp_d20171001_t0743463_reg.bsq SVM151216_npp_d20171001_t0743463_texas.bsq + mv SVM151216_npp_d20171001_t0743463_reg.bsq.hdr SVM151216_npp_d20171001_t0743463_texas.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_d20171001_t0743463_texas.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_d20171001_t0743463_texas.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_d20171001_t0743463_texas.bsq .bsq + baseName=SVM151216_npp_d20171001_t0743463_texas ++ dirname SVM151216_npp_d20171001_t0743463_texas.bsq + dirName=. + eightBitBsq=./SVM151216_npp_d20171001_t0743463_texas_8bit.bsq + /opt/itt/idl/idl80/bin/idl /mnt/r6/Software/IDL_WORKDIR/NPPProcessing/scripts/../runPiece_linear_scale_image.idlbatch -args SVM151216_npp_d20171001_t0743463_texas.bsq ./SVM151216_npp_d20171001_t0743463_texas_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_d20171001_t0743463_texas.bsq 2 SVM151216_npp_d20171001_t0743463_texas.bsq 1795 1765 % Restored file: ENVI_EX1. % Loaded DLM: PNG. ++ ls ./SVM151216_npp_d20171001_t0743463_texas_8bit.bsq ++ sed s,bsq,tif, + eightTif=./SVM151216_npp_d20171001_t0743463_texas_8bit.tif ++ ls ./SVM151216_npp_d20171001_t0743463_texas_8bit.tif ++ sed s,tif,png, + eightPng=./SVM151216_npp_d20171001_t0743463_texas_8bit.png + test -f ./SVM151216_npp_d20171001_t0743463_texas_8bit.png + echo ' PNG generated' PNG generated + exit 0 + ls SVM151216_npp_d20171001_t0743463_texas_8bit.bsq SVM151216_npp_d20171001_t0743463_texas_8bit.tif SVM151216_npp_d20171001_t0743463_texas_8bit.png SVM151216_npp_d20171001_t0743463_texas_8bit.bsq SVM151216_npp_d20171001_t0743463_texas_8bit.png SVM151216_npp_d20171001_t0743463_texas_8bit.tif + status=0 + iput -f SVM151216_npp_d20171001_t0743463_texas.bsq SVM151216_npp_d20171001_t0743463_texas.bsq.hdr /corralZ/projects/CSR/Public/NPP + iput -f SVM151216_npp_d20171001_t0743463_texas_8bit.tif SVM151216_npp_d20171001_t0743463_texas_8bit.png /corralZ/projects/CSR/Public/NPP ++ date + echo Sun Oct 1 04:31:39 CDT '2017: Finished processNPP_Texas151216.sh 0' Sun Oct 1 04:31:39 CDT 2017: Finished processNPP_Texas151216.sh 0