++ 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 ++ cut -d= -f1 ++ echo -107:25:-93:37:Both=processNPP_Texas151216.sh + bounds=-107:25:-93:37:Both ++ cut -d: -f1 ++ echo -107:25:-93:37:Both + lon1=-107 ++ cut -d: -f2 ++ echo -107:25:-93:37:Both + lat1=25 ++ cut -d: -f3 ++ echo -107:25:-93:37:Both + lon2=-93 ++ cut -d: -f4 ++ echo -107:25:-93:37:Both + lat2=37 ++ date + echo Thu Apr 25 15:42:57 CDT '2013: Starting processNPP_Texas151216.sh' Thu Apr 25 15:42:57 CDT 2013: Starting processNPP_Texas151216.sh + '[' 1 -lt 1 ']' + dateDir=2013_04_25_115_1833 + workDir=/mnt/r5/Data/NPP/2013_04_25_115_1833 + cd /mnt/r5/Data/NPP/2013_04_25_115_1833 + /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/extractProjectNPPmod.sh -107 25 -93 37 15,12,16 2013_04_25_115_1833 ++ 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 ++ sed 's/,/ /g' ++ echo 15,12,16 + bandNumbers='15 12 16' ++ awk '{print NF}' ++ echo '15 12 16' + bandKnt=3 + dateDir=2013_04_25_115_1833 + workDir=/mnt/r5/Data/NPP/2013_04_25_115_1833 + cd /mnt/r5/Data/NPP/2013_04_25_115_1833 ++ head -1 ++ ls GMTCO_npp_d20130425_t1833267_e1834509_b00001_c20130425185217535958_cspp_dev.h5 GMTCO_npp_d20130425_t1834521_e1836163_b00001_c20130425185347137130_cspp_dev.h5 GMTCO_npp_d20130425_t1836175_e1837417_b00001_c20130425185536035717_cspp_dev.h5 GMTCO_npp_d20130425_t1837430_e1839071_b00001_c20130425185726252210_cspp_dev.h5 GMTCO_npp_d20130425_t1839084_e1840325_b00001_c20130425185917779804_cspp_dev.h5 GMTCO_npp_d20130425_t1840338_e1841579_b00001_c20130425190104938248_cspp_dev.h5 GMTCO_npp_d20130425_t1841592_e1843233_b00001_c20130425190257389426_cspp_dev.h5 GMTCO_npp_d20130425_t1843246_e1844487_b00001_c20130425190438787581_cspp_dev.h5 GMTCO_npp_d20130425_t1844500_e1846142_b00001_c20130425190621961204_cspp_dev.h5 GMTCO_npp_d20130425_t1846154_e1847399_b00001_c20130425190806576998_cspp_dev.h5 + gmtco=GMTCO_npp_d20130425_t1833267_e1834509_b00001_c20130425185217535958_cspp_dev.h5 + for bandNumber in '$bandNumbers' ++ mindigits 2 15 + bn=15 ++ head -1 ++ ls SVM15_npp_d20130425_t1833267_e1834509_b00001_c20130425185218611399_cspp_dev.h5 SVM15_npp_d20130425_t1834521_e1836163_b00001_c20130425185348202356_cspp_dev.h5 SVM15_npp_d20130425_t1836175_e1837417_b00001_c20130425185537065882_cspp_dev.h5 SVM15_npp_d20130425_t1837430_e1839071_b00001_c20130425185727139335_cspp_dev.h5 SVM15_npp_d20130425_t1839084_e1840325_b00001_c20130425185918697349_cspp_dev.h5 + svmFirst=SVM15_npp_d20130425_t1833267_e1834509_b00001_c20130425185218611399_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_d20130425_t1833267_e1834509_b00001_c20130425185218611399_cspp_dev.h5 Radiance GMTCO_npp_d20130425_t1833267_e1834509_b00001_c20130425185217535958_cspp_dev.h5 1 1 ++ ls SVM15_npp_d20130425_t1834521-Radiance.bin + radianceFile=SVM15_npp_d20130425_t1834521-Radiance.bin + test -z SVM15_npp_d20130425_t1834521-Radiance.bin + /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -107 25 -93 37 SVM15_npp_d20130425_t1834521-Radiance.bin ++ head -1 ++ ls SVM15_npp_d20130425_t1834521_reg.bin + regFile=SVM15_npp_d20130425_t1834521_reg.bin ++ grep Radiance SVM15_npp_d20130425_t1834521_reg.bin.hdr ++ cut -d: -f2 ++ sed 's/[{}]//g' + regBandName=SVM15_npp_d20130425_t1834521-Radiance.bin + bandNameList=' SVM15_npp_d20130425_t1834521-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20130425_t1834521_reg.bin' + for bandNumber in '$bandNumbers' ++ mindigits 2 12 + bn=12 ++ head -1 ++ ls SVM12_npp_d20130425_t1833267_e1834509_b00001_c20130425185218524931_cspp_dev.h5 SVM12_npp_d20130425_t1834521_e1836163_b00001_c20130425185348115757_cspp_dev.h5 SVM12_npp_d20130425_t1836175_e1837417_b00001_c20130425185536981889_cspp_dev.h5 SVM12_npp_d20130425_t1837430_e1839071_b00001_c20130425185727067466_cspp_dev.h5 SVM12_npp_d20130425_t1839084_e1840325_b00001_c20130425185918620191_cspp_dev.h5 + svmFirst=SVM12_npp_d20130425_t1833267_e1834509_b00001_c20130425185218524931_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_d20130425_t1833267_e1834509_b00001_c20130425185218524931_cspp_dev.h5 Radiance GMTCO_npp_d20130425_t1833267_e1834509_b00001_c20130425185217535958_cspp_dev.h5 1 1 ++ ls SVM12_npp_d20130425_t1834521-Radiance.bin + radianceFile=SVM12_npp_d20130425_t1834521-Radiance.bin + test -z SVM12_npp_d20130425_t1834521-Radiance.bin + /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -107 25 -93 37 SVM12_npp_d20130425_t1834521-Radiance.bin ++ head -1 ++ ls SVM12_npp_d20130425_t1834521_reg.bin + regFile=SVM12_npp_d20130425_t1834521_reg.bin ++ cut -d: -f2 ++ sed 's/[{}]//g' ++ grep Radiance SVM12_npp_d20130425_t1834521_reg.bin.hdr + regBandName=SVM12_npp_d20130425_t1834521-Radiance.bin + bandNameList=' SVM15_npp_d20130425_t1834521-Radiance.bin SVM12_npp_d20130425_t1834521-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20130425_t1834521_reg.bin SVM12_npp_d20130425_t1834521_reg.bin' + for bandNumber in '$bandNumbers' ++ mindigits 2 16 + bn=16 ++ head -1 ++ ls SVM16_npp_d20130425_t1833267_e1834509_b00001_c20130425185218636279_cspp_dev.h5 SVM16_npp_d20130425_t1834521_e1836163_b00001_c20130425185348226530_cspp_dev.h5 SVM16_npp_d20130425_t1836175_e1837417_b00001_c20130425185537089122_cspp_dev.h5 SVM16_npp_d20130425_t1837430_e1839071_b00001_c20130425185727159926_cspp_dev.h5 SVM16_npp_d20130425_t1839084_e1840325_b00001_c20130425185918719163_cspp_dev.h5 + svmFirst=SVM16_npp_d20130425_t1833267_e1834509_b00001_c20130425185218636279_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_d20130425_t1833267_e1834509_b00001_c20130425185218636279_cspp_dev.h5 Radiance GMTCO_npp_d20130425_t1833267_e1834509_b00001_c20130425185217535958_cspp_dev.h5 1 1 ++ ls SVM16_npp_d20130425_t1834521-Radiance.bin + radianceFile=SVM16_npp_d20130425_t1834521-Radiance.bin + test -z SVM16_npp_d20130425_t1834521-Radiance.bin + /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/projectSingleSDR.sh -107 25 -93 37 SVM16_npp_d20130425_t1834521-Radiance.bin ++ head -1 ++ ls SVM16_npp_d20130425_t1834521_reg.bin + regFile=SVM16_npp_d20130425_t1834521_reg.bin ++ cut -d: -f2 ++ sed 's/[{}]//g' ++ grep Radiance SVM16_npp_d20130425_t1834521_reg.bin.hdr + regBandName=SVM16_npp_d20130425_t1834521-Radiance.bin + bandNameList=' SVM15_npp_d20130425_t1834521-Radiance.bin SVM12_npp_d20130425_t1834521-Radiance.bin SVM16_npp_d20130425_t1834521-Radiance.bin' + status=0 + '[' 0 -ne 0 ']' + regList=' SVM15_npp_d20130425_t1834521_reg.bin SVM12_npp_d20130425_t1834521_reg.bin SVM16_npp_d20130425_t1834521_reg.bin' ++ cut -d- -f1 ++ cut -d_ -f2-4 ++ basename SVM16_npp_d20130425_t1833267_e1834509_b00001_c20130425185218636279_cspp_dev.h5 + satDateTime=npp_d20130425_t1833267 ++ echo 15 12 16 ++ tr -d ' ' + combinedFile=SVM151216_npp_d20130425_t1833267_reg.bsq + cat SVM15_npp_d20130425_t1834521_reg.bin SVM12_npp_d20130425_t1834521_reg.bin SVM16_npp_d20130425_t1834521_reg.bin + sed -n '/ESRI/,/band names/p' SVM16_npp_d20130425_t1834521_reg.bin.hdr + sed 's,bands = 1,bands = 3,' + sed 's,nbands 1,nbands 3,' + for bandName in '$bandNameList' + '[' SVM16_npp_d20130425_t1834521-Radiance.bin '!=' SVM15_npp_d20130425_t1834521-Radiance.bin ']' + echo SVM15_npp_d20130425_t1834521-Radiance.bin, + for bandName in '$bandNameList' + '[' SVM16_npp_d20130425_t1834521-Radiance.bin '!=' SVM12_npp_d20130425_t1834521-Radiance.bin ']' + echo SVM12_npp_d20130425_t1834521-Radiance.bin, + for bandName in '$bandNameList' + '[' SVM16_npp_d20130425_t1834521-Radiance.bin '!=' SVM16_npp_d20130425_t1834521-Radiance.bin ']' + echo 'SVM16_npp_d20130425_t1834521-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_d20130425_t1833267_reg.bsq + modBsq=SVM151216_npp_d20130425_t1833267_reg.bsq + test -z SVM151216_npp_d20130425_t1833267_reg.bsq ++ echo SVM151216_npp_d20130425_t1833267_reg.bsq ++ sed s,_reg.bsq,_texas.bsq, + texasBsq=SVM151216_npp_d20130425_t1833267_texas.bsq + mv SVM151216_npp_d20130425_t1833267_reg.bsq SVM151216_npp_d20130425_t1833267_texas.bsq + mv SVM151216_npp_d20130425_t1833267_reg.bsq.hdr SVM151216_npp_d20130425_t1833267_texas.bsq.hdr + test -e dayNight.list ++ head -1 dayNight.list ++ cut -d: -f2 + dayNight=Day + '[' Day = Night ']' + scaleFile=nppDay151216_enhance.txt + /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/scaleBSQ.sh nppDay151216_enhance.txt SVM151216_npp_d20130425_t1833267_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=nppDay151216_enhance.txt + bsqFile=SVM151216_npp_d20130425_t1833267_texas.bsq + test '!' -e nppDay151216_enhance.txt + test -e /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/ + echo 'Found /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/nppDay151216_enhance.txt' Found /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/nppDay151216_enhance.txt + scaleFile=/mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/nppDay151216_enhance.txt ++ basename SVM151216_npp_d20130425_t1833267_texas.bsq .bsq + baseName=SVM151216_npp_d20130425_t1833267_texas ++ dirname SVM151216_npp_d20130425_t1833267_texas.bsq + dirName=. + eightBitBsq=./SVM151216_npp_d20130425_t1833267_texas_8bit.bsq + idl /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/../runPiece_linear_scale_image.idlbatch -args SVM151216_npp_d20130425_t1833267_texas.bsq ./SVM151216_npp_d20130425_t1833267_texas_8bit.bsq /mnt/r4/Software/IDL_WORKDIR/NPPProcessing/scripts/nppDay151216_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_d20130425_t1833267_texas_8bit.bsq ++ sed s,bsq,tif, + eightTif=./SVM151216_npp_d20130425_t1833267_texas_8bit.tif ++ ls ./SVM151216_npp_d20130425_t1833267_texas_8bit.tif ++ sed s,tif,png, + eightPng=./SVM151216_npp_d20130425_t1833267_texas_8bit.png + test -f ./SVM151216_npp_d20130425_t1833267_texas_8bit.png + echo ' PNG generated' PNG generated + exit 0 + ls SVM151216_npp_d20130425_t1833267_texas_8bit.bsq SVM151216_npp_d20130425_t1833267_texas_8bit.tif SVM151216_npp_d20130425_t1833267_texas_8bit.png SVM151216_npp_d20130425_t1833267_texas_8bit.bsq SVM151216_npp_d20130425_t1833267_texas_8bit.png SVM151216_npp_d20130425_t1833267_texas_8bit.tif + status=0 + iput -f SVM151216_npp_d20130425_t1833267_texas.bsq SVM151216_npp_d20130425_t1833267_texas.bsq.hdr /corralZ/projects/CSR/Public/NPP + iput SVM151216_npp_d20130425_t1833267_texas_8bit.tif SVM151216_npp_d20130425_t1833267_texas_8bit.png /corralZ/projects/CSR/Public/NPP ++ date + echo Thu Apr 25 15:44:32 CDT '2013: Finished processNPP_Texas151216.sh 0' Thu Apr 25 15:44:32 CDT 2013: Finished processNPP_Texas151216.sh 0