++ basename /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPP_Texas151216.sh + FUNC=processNPP_Texas151216.sh ++ dirname /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/processNPP_Texas151216.sh + scriptDir=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts ++ fullpath /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts + scriptDir=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts + defDir=/mnt/r4/Software/IDL_WORKDIR/Default/scripts + dataDir=/mnt/r5/Data/NPP + iRodsDir=/corralZ/projects/CSR/Public/NPP ++ grep processNPP_Texas151216.sh /mnt/r4/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 Fri Apr 26 08:20:40 CDT '2013: Starting processNPP_Texas151216.sh' Fri Apr 26 08:20:40 CDT 2013: Starting processNPP_Texas151216.sh + '[' 1 -lt 1 ']' + dateDir=2013_04_26_116_0833 + workDir=/mnt/r5/Data/NPP/2013_04_26_116_0833 + cd /mnt/r5/Data/NPP/2013_04_26_116_0833 + /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh -107 25 -93 37 15,12,16 2013_04_26_116_0833 ++ basename /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh + FUNC=extractProjectNPPmod.sh ++ dirname /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh + scriptDir=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts ++ fullpath /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts + scriptDir=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts + dataDir=/mnt/r5/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=2013_04_26_116_0833 + workDir=/mnt/r5/Data/NPP/2013_04_26_116_0833 + cd /mnt/r5/Data/NPP/2013_04_26_116_0833 ++ head -1 ++ ls GMTCO_npp_d20130426_t0834090_e0835332_b00001_c20130426085031933614_cspp_dev.h5 GMTCO_npp_d20130426_t0835344_e0836586_b00001_c20130426085208837082_cspp_dev.h5 GMTCO_npp_d20130426_t0836598_e0838240_b00001_c20130426085345691987_cspp_dev.h5 GMTCO_npp_d20130426_t0838252_e0839494_b00001_c20130426085524179501_cspp_dev.h5 GMTCO_npp_d20130426_t0839506_e0841148_b00001_c20130426085701218077_cspp_dev.h5 GMTCO_npp_d20130426_t0841160_e0842403_b00001_c20130426085830054327_cspp_dev.h5 + gmtco=GMTCO_npp_d20130426_t0834090_e0835332_b00001_c20130426085031933614_cspp_dev.h5 + for bandNumber in '$bandNumbers' ++ mindigits 2 15 + bn=15 ++ head -1 ++ ls SVM15_npp_d20130426_t0838252_e0839494_b00001_c20130426085524767487_cspp_dev.h5 SVM15_npp_d20130426_t0839506_e0841148_b00001_c20130426085701790611_cspp_dev.h5 SVM15_npp_d20130426_t0841160_e0842403_b00001_c20130426085830633213_cspp_dev.h5 + svmFirst=SVM15_npp_d20130426_t0838252_e0839494_b00001_c20130426085524767487_cspp_dev.h5 + rm -f 'SVM15*adiance.bin' 'SVM15*_reg.bin' + idl /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/../run_concat_npp_sub.idlbatch -args -107 25 -93 37 SVM15_npp_d20130426_t0838252_e0839494_b00001_c20130426085524767487_cspp_dev.h5 Radiance GMTCO_npp_d20130426_t0834090_e0835332_b00001_c20130426085031933614_cspp_dev.h5 1 1 ++ ls SVM15_npp_d20130426_t0838252-Radiance.bin + radianceFile=SVM15_npp_d20130426_t0838252-Radiance.bin + test -z SVM15_npp_d20130426_t0838252-Radiance.bin + /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -107 25 -93 37 SVM15_npp_d20130426_t0838252-Radiance.bin ++ head -1 ++ ls SVM15_npp_d20130426_t0838252_reg.bin + regFile=SVM15_npp_d20130426_t0838252_reg.bin ++ cut -d: -f2 ++ sed 's/[{}]//g' ++ grep Radiance SVM15_npp_d20130426_t0838252_reg.bin.hdr + regBandName=SVM15_npp_d20130426_t0838252-Radiance.bin + bandNameList=' SVM15_npp_d20130426_t0838252-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20130426_t0838252_reg.bin' + for bandNumber in '$bandNumbers' ++ mindigits 2 12 + bn=12 ++ head -1 ++ ls SVM12_npp_d20130426_t0838252_e0839494_b00001_c20130426085524693628_cspp_dev.h5 SVM12_npp_d20130426_t0839506_e0841148_b00001_c20130426085701718865_cspp_dev.h5 SVM12_npp_d20130426_t0841160_e0842403_b00001_c20130426085830561144_cspp_dev.h5 + svmFirst=SVM12_npp_d20130426_t0838252_e0839494_b00001_c20130426085524693628_cspp_dev.h5 + rm -f 'SVM12*adiance.bin' 'SVM12*_reg.bin' + idl /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/../run_concat_npp_sub.idlbatch -args -107 25 -93 37 SVM12_npp_d20130426_t0838252_e0839494_b00001_c20130426085524693628_cspp_dev.h5 Radiance GMTCO_npp_d20130426_t0834090_e0835332_b00001_c20130426085031933614_cspp_dev.h5 1 1 ++ ls SVM12_npp_d20130426_t0838252-Radiance.bin + radianceFile=SVM12_npp_d20130426_t0838252-Radiance.bin + test -z SVM12_npp_d20130426_t0838252-Radiance.bin + /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -107 25 -93 37 SVM12_npp_d20130426_t0838252-Radiance.bin ++ head -1 ++ ls SVM12_npp_d20130426_t0838252_reg.bin + regFile=SVM12_npp_d20130426_t0838252_reg.bin ++ grep Radiance SVM12_npp_d20130426_t0838252_reg.bin.hdr ++ cut -d: -f2 ++ sed 's/[{}]//g' + regBandName=SVM12_npp_d20130426_t0838252-Radiance.bin + bandNameList=' SVM15_npp_d20130426_t0838252-Radiance.bin SVM12_npp_d20130426_t0838252-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20130426_t0838252_reg.bin SVM12_npp_d20130426_t0838252_reg.bin' + for bandNumber in '$bandNumbers' ++ mindigits 2 16 + bn=16 ++ head -1 ++ ls SVM16_npp_d20130426_t0838252_e0839494_b00001_c20130426085524788475_cspp_dev.h5 SVM16_npp_d20130426_t0839506_e0841148_b00001_c20130426085701810799_cspp_dev.h5 SVM16_npp_d20130426_t0841160_e0842403_b00001_c20130426085830653892_cspp_dev.h5 + svmFirst=SVM16_npp_d20130426_t0838252_e0839494_b00001_c20130426085524788475_cspp_dev.h5 + rm -f 'SVM16*adiance.bin' 'SVM16*_reg.bin' + idl /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/../run_concat_npp_sub.idlbatch -args -107 25 -93 37 SVM16_npp_d20130426_t0838252_e0839494_b00001_c20130426085524788475_cspp_dev.h5 Radiance GMTCO_npp_d20130426_t0834090_e0835332_b00001_c20130426085031933614_cspp_dev.h5 1 1 ++ ls SVM16_npp_d20130426_t0838252-Radiance.bin + radianceFile=SVM16_npp_d20130426_t0838252-Radiance.bin + test -z SVM16_npp_d20130426_t0838252-Radiance.bin + /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -107 25 -93 37 SVM16_npp_d20130426_t0838252-Radiance.bin ++ head -1 ++ ls SVM16_npp_d20130426_t0838252_reg.bin + regFile=SVM16_npp_d20130426_t0838252_reg.bin ++ cut -d: -f2 ++ sed 's/[{}]//g' + regBandName=SVM16_npp_d20130426_t0838252-Radiance.bin + bandNameList=' SVM15_npp_d20130426_t0838252-Radiance.bin SVM12_npp_d20130426_t0838252-Radiance.bin SVM16_npp_d20130426_t0838252-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20130426_t0838252_reg.bin SVM12_npp_d20130426_t0838252_reg.bin SVM16_npp_d20130426_t0838252_reg.bin' ++ basename SVM16_npp_d20130426_t0838252_e0839494_b00001_c20130426085524788475_cspp_dev.h5 ++ cut -d- -f1 ++ cut -d_ -f2-4 + satDateTime=npp_d20130426_t0838252 ++ echo 15 12 16 ++ tr -d ' ' + combinedFile=SVM151216_npp_d20130426_t0838252_reg.bsq + cat SVM15_npp_d20130426_t0838252_reg.bin SVM12_npp_d20130426_t0838252_reg.bin SVM16_npp_d20130426_t0838252_reg.bin + sed -n '/ESRI/,/band names/p' SVM16_npp_d20130426_t0838252_reg.bin.hdr + sed 's,bands = 1,bands = 3,' + sed 's,nbands 1,nbands 3,' + for bandName in '$bandNameList' + '[' SVM16_npp_d20130426_t0838252-Radiance.bin '!=' SVM15_npp_d20130426_t0838252-Radiance.bin ']' + echo SVM15_npp_d20130426_t0838252-Radiance.bin, + for bandName in '$bandNameList' + '[' SVM16_npp_d20130426_t0838252-Radiance.bin '!=' SVM12_npp_d20130426_t0838252-Radiance.bin ']' + echo SVM12_npp_d20130426_t0838252-Radiance.bin, + for bandName in '$bandNameList' + '[' SVM16_npp_d20130426_t0838252-Radiance.bin '!=' SVM16_npp_d20130426_t0838252-Radiance.bin ']' + echo 'SVM16_npp_d20130426_t0838252-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_d20130426_t0838252_reg.bsq + modBsq=SVM151216_npp_d20130426_t0838252_reg.bsq + test -z SVM151216_npp_d20130426_t0838252_reg.bsq ++ sed s,_reg.bsq,_texas.bsq, ++ echo SVM151216_npp_d20130426_t0838252_reg.bsq + texasBsq=SVM151216_npp_d20130426_t0838252_texas.bsq + mv SVM151216_npp_d20130426_t0838252_reg.bsq SVM151216_npp_d20130426_t0838252_texas.bsq + mv SVM151216_npp_d20130426_t0838252_reg.bsq.hdr SVM151216_npp_d20130426_t0838252_texas.bsq.hdr + test -e dayNight.list ++ head -1 dayNight.list ++ cut -d: -f2 + dayNight=Night + '[' Night = Night ']' + scaleFile=nppNight151216_enhance.txt + /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/scaleBSQ.sh nppNight151216_enhance.txt SVM151216_npp_d20130426_t0838252_texas.bsq ++ basename /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/scaleBSQ.sh + FUNC=scaleBSQ.sh ++ dirname /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/scaleBSQ.sh + scriptDir=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts ++ fullpath /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts + scriptDir=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts + defDir=/mnt/r4/Software/IDL_WORKDIR/Default/scripts + dataDir=/mnt/r5/Data/NPP + '[' 2 -lt 2 ']' + scaleFile=nppNight151216_enhance.txt + bsqFile=SVM151216_npp_d20130426_t0838252_texas.bsq + test '!' -e nppNight151216_enhance.txt + test -e /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/ + echo 'Found /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/nppNight151216_enhance.txt' Found /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/nppNight151216_enhance.txt + scaleFile=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/nppNight151216_enhance.txt ++ basename SVM151216_npp_d20130426_t0838252_texas.bsq .bsq + baseName=SVM151216_npp_d20130426_t0838252_texas ++ dirname SVM151216_npp_d20130426_t0838252_texas.bsq + dirName=. + eightBitBsq=./SVM151216_npp_d20130426_t0838252_texas_8bit.bsq + idl /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/../runPiece_linear_scale_image.idlbatch -args SVM151216_npp_d20130426_t0838252_texas.bsq ./SVM151216_npp_d20130426_t0838252_texas_8bit.bsq /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/nppNight151216_enhance.txt IDL Version 8.0.1 (linux x86 m32). (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. % Restored file: ENVI_EX1. % Loaded DLM: PNG. ++ ls ./SVM151216_npp_d20130426_t0838252_texas_8bit.bsq ++ sed s,bsq,tif, + eightTif=./SVM151216_npp_d20130426_t0838252_texas_8bit.tif ++ ls ./SVM151216_npp_d20130426_t0838252_texas_8bit.tif ++ sed s,tif,png, + eightPng=./SVM151216_npp_d20130426_t0838252_texas_8bit.png + test -f ./SVM151216_npp_d20130426_t0838252_texas_8bit.png + echo ' PNG generated' PNG generated + exit 0 + ls SVM151216_npp_d20130426_t0838252_texas_8bit.bsq SVM151216_npp_d20130426_t0838252_texas_8bit.tif SVM151216_npp_d20130426_t0838252_texas_8bit.png SVM151216_npp_d20130426_t0838252_texas_8bit.bsq SVM151216_npp_d20130426_t0838252_texas_8bit.png SVM151216_npp_d20130426_t0838252_texas_8bit.tif + status=0 + iput -f SVM151216_npp_d20130426_t0838252_texas.bsq SVM151216_npp_d20130426_t0838252_texas.bsq.hdr /corralZ/projects/CSR/Public/NPP + iput SVM151216_npp_d20130426_t0838252_texas_8bit.tif SVM151216_npp_d20130426_t0838252_texas_8bit.png /corralZ/projects/CSR/Public/NPP ++ date + echo Fri Apr 26 08:22:11 CDT '2013: Finished processNPP_Texas151216.sh 0' Fri Apr 26 08:22:11 CDT 2013: Finished processNPP_Texas151216.sh 0