Skip to content

Instantly share code, notes, and snippets.

@smacfarlane
Created September 12, 2016 23:50
Show Gist options
  • Save smacfarlane/5845c91a7febf8779f0b4cf68229dad9 to your computer and use it in GitHub Desktop.
Save smacfarlane/5845c91a7febf8779f0b4cf68229dad9 to your computer and use it in GitHub Desktop.
PSP_CONFIG_FILE: code/../pyspectral_rsr_data/pyspectral.cfg
#############################################################
viirs_AK_awips_processing_atGINA.py began at 2016-09-12 23:03:34.635140
* Source directory: /home/vagrant/npp.20160906/
* Cleaning up temp dir (code/../sandbox)
Done
* Creating softlink code/../sandbox/npp_viirs_m12_20160906_174644_203.dat -> /home/vagrant/npp.20160906/npp_viirs_m12_20160906_174644_203.dat... success
* Creating softlink code/../sandbox/npp_viirs_m_longitude_20160906_174644_203.dat -> /home/vagrant/npp.20160906/npp_viirs_m_longitude_20160906_174644_203.dat... success
* Creating softlink code/../sandbox/npp_viirs_m_latitude_20160906_174644_203.dat -> /home/vagrant/npp.20160906/npp_viirs_m_latitude_20160906_174644_203.dat... success
* Creating softlink code/../sandbox/npp_viirs_m15_20160906_174644_203.dat -> /home/vagrant/npp.20160906/npp_viirs_m15_20160906_174644_203.dat... success
* Creating softlink code/../sandbox/npp_viirs_m14_20160906_174644_203.dat -> /home/vagrant/npp.20160906/npp_viirs_m14_20160906_174644_203.dat... success
* Creating softlink code/../sandbox/npp_viirs_m_sat_zenith_angle_20160906_174644_203.dat -> /home/vagrant/npp.20160906/npp_viirs_m_sat_zenith_angle_20160906_174644_203.dat... success
* Creating softlink code/../sandbox/npp_viirs_m16_20160906_174644_203.dat -> /home/vagrant/npp.20160906/npp_viirs_m16_20160906_174644_203.dat... success
* Creating softlink code/../sandbox/npp_viirs_m_solar_zenith_angle_20160906_174644_203.dat -> /home/vagrant/npp.20160906/npp_viirs_m_solar_zenith_angle_20160906_174644_203.dat... success
* Read and reshape static latitude data from (code/../templates/awips203_lat.dat)
* Extracting date/time from first binary file found (npp_viirs_m12_20160906_174644_203.dat)
*** Band: m12 - Reading input binary file (code/../sandbox/npp_viirs_m12_20160906_174644_203.dat) and reshaping...
*** Band: m14 - Reading input binary file (code/../sandbox/npp_viirs_m14_20160906_174644_203.dat) and reshaping...
*** Band: m15 - Reading input binary file (code/../sandbox/npp_viirs_m15_20160906_174644_203.dat) and reshaping...
*** Band: m16 - Reading input binary file (code/../sandbox/npp_viirs_m16_20160906_174644_203.dat) and reshaping...
*** Band: m_sat_zenith_angle - Reading input binary file (code/../sandbox/npp_viirs_m_sat_zenith_angle_20160906_174644_203.dat) and reshaping...
*** Band: m_solar_zenith_angle - Reading input binary file (code/../sandbox/npp_viirs_m_solar_zenith_angle_20160906_174644_203.dat) and reshaping...
Status flags (isM12 / isM14 / isM15 / isM16 / isSatZA / isSolZA): 1 / 1 / 1 / 1 / 1 / 1
**** LBC Band M12
* Issuing Python command: m12Lbc = limbcorr(m12, lat, satZA, "viirs", jday, [12],fillval=0, ctp=[], cpath=TABLES_DIR, refsen="seviri")
(7239, 8384) (7239, 8384) (7239, 8384)
68.7387
Sensor: viirs
ALERT: VZA was converted from degrees to radians.
Latitude range: 26.9536495209 69.603908062
Julian Day: 250
/opt/sport/code/nje_limbcorr.py:183: RuntimeWarning: invalid value encountered in greater
vza[vza > 89.*np.pi/180.] = 89.*np.pi/180.
0.000817524 1.22495
Factor: 1.08177 0.0 1.08177
NBANDS: 1
12
0.582275 1.4862
-0.11377 0.735183
Duration: 0.1 seconds
Low resolution correction
(7239, 8384) (7239, 8384)
Done
* Converting brightness temperature to bytes
code/viirs_AK_awips_processing_atGINA.py:190: RuntimeWarning: invalid value encountered in greater_equal
condition = np.logical_and(tbs >= 163., tbs < 242.)
code/viirs_AK_awips_processing_atGINA.py:190: RuntimeWarning: invalid value encountered in less
condition = np.logical_and(tbs >= 163., tbs < 242.)
code/viirs_AK_awips_processing_atGINA.py:194: RuntimeWarning: invalid value encountered in greater_equal
condition = np.logical_and(tbs >= 242., tbs <= 330.)
code/viirs_AK_awips_processing_atGINA.py:194: RuntimeWarning: invalid value encountered in less_equal
condition = np.logical_and(tbs >= 242., tbs <= 330.)
* Generating LBC Band M12 netCDF file
- Copying static netCDF (code/../templates/SSEC_AWIPS_npp_viirs_m12_203_static.nc) to new file (code/../sandbox/20160906_1746_sport_viirs_alaska_m12Lbc.nc)... success
- Opening the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_m12Lbc.nc)... success
- Modifying the new netCDF file...
- Closing the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_m12Lbc.nc)... success
- Modifying netCDF attributes via \`/usr/bin/ncatted -a source,global,o,c,"NASA SPoRT" -a channel,global,o,c,"3.7um LBC" -a satelliteName,global,o,c,"SPoRT NPP-VIIRS" code/../sandbox/20160906_1746_sport_viirs_alaska_m12Lbc.nc\`... success
- Gzipping new netCDF via \`/usr/bin/gzip -f9 code/../sandbox/20160906_1746_sport_viirs_alaska_m12Lbc.nc\`... success
- Copying code/../sandbox/20160906_1746_sport_viirs_alaska_m12Lbc.nc.gz to the archive dir (code/../archive/)... success
**** LBC Band M14
* Issuing Python command: m14Lbc = limbcorr(m14, lat, satZA, "viirs", jday, [14],fillval=0, ctp=[], cpath=TABLES_DIR, refsen="seviri")
(7239, 8384) (7239, 8384) (7239, 8384)
68.7387
Sensor: viirs
ALERT: VZA was converted from degrees to radians.
Latitude range: 26.9536495209 69.603908062
Julian Day: 250
0.000817524 1.22495
Factor: 1.08177 0.0 1.08177
NBANDS: 1
14
1.31665 2.49244
0.215332 2.1824
Duration: 0.1 seconds
Low resolution correction
(7239, 8384) (7239, 8384)
Done
* Converting brightness temperature to bytes
* Generating LBC Band M14 netCDF file
- Copying static netCDF (code/../templates/SSEC_AWIPS_npp_viirs_m12_203_static.nc) to new file (code/../sandbox/20160906_1746_sport_viirs_alaska_m14Lbc.nc)... success
- Opening the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_m14Lbc.nc)... success
- Modifying the new netCDF file...
- Closing the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_m14Lbc.nc)... success
- Modifying netCDF attributes via \`/usr/bin/ncatted -a source,global,o,c,"NASA SPoRT" -a channel,global,o,c,"8.6um LBC" -a satelliteName,global,o,c,"SPoRT NPP-VIIRS" code/../sandbox/20160906_1746_sport_viirs_alaska_m14Lbc.nc\`... success
- Gzipping new netCDF via \`/usr/bin/gzip -f9 code/../sandbox/20160906_1746_sport_viirs_alaska_m14Lbc.nc\`... success
- Copying code/../sandbox/20160906_1746_sport_viirs_alaska_m14Lbc.nc.gz to the archive dir (code/../archive/)... success
**** LBC Band M15
* Issuing Python command: m15Lbc = limbcorr(m15, lat, satZA, "viirs", jday, [15],fillval=0, ctp=[], cpath=TABLES_DIR, refsen="seviri")
(7239, 8384) (7239, 8384) (7239, 8384)
68.7387
Sensor: viirs
ALERT: VZA was converted from degrees to radians.
Latitude range: 26.9536495209 69.603908062
Julian Day: 250
0.000817524 1.22495
Factor: 1.08177 0.0 1.08177
NBANDS: 1
15
1.18457 2.36477
-0.147461 0.820941
Duration: 0.2 seconds
Low resolution correction
(7239, 8384) (7239, 8384)
Done
* Converting brightness temperature to bytes
* Generating LBC Band M15 netCDF file
- Copying static netCDF (code/../templates/SSEC_AWIPS_npp_viirs_m12_203_static.nc) to new file (code/../sandbox/20160906_1746_sport_viirs_alaska_m15Lbc.nc)... success
- Opening the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_m15Lbc.nc)... success
- Modifying the new netCDF file...
- Closing the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_m15Lbc.nc)... success
- Modifying netCDF attributes via \`/usr/bin/ncatted -a source,global,o,c,"NASA SPoRT" -a channel,global,o,c,"10.8um LBC" -a satelliteName,global,o,c,"SPoRT NPP-VIIRS" code/../sandbox/20160906_1746_sport_viirs_alaska_m15Lbc.nc\`... success
- Gzipping new netCDF via \`/usr/bin/gzip -f9 code/../sandbox/20160906_1746_sport_viirs_alaska_m15Lbc.nc\`... success
- Copying code/../sandbox/20160906_1746_sport_viirs_alaska_m15Lbc.nc.gz to the archive dir (code/../archive/)... success
**** LBC Band M16
* Issuing Python command: m16Lbc = limbcorr(m16, lat, satZA, "viirs", jday, [16],fillval=0, ctp=[], cpath=TABLES_DIR, refsen="seviri")
(7239, 8384) (7239, 8384) (7239, 8384)
68.7387
Sensor: viirs
ALERT: VZA was converted from degrees to radians.
Latitude range: 26.9536495209 69.603908062
Julian Day: 250
0.000817524 1.22495
Factor: 1.08177 0.0 1.08177
NBANDS: 1
16
1.6626 2.61929
-0.235352 1.09888
Duration: 0.2 seconds
Low resolution correction
(7239, 8384) (7239, 8384)
Done
* Converting brightness temperature to bytes
* Generating LBC Band M16 netCDF file
- Copying static netCDF (code/../templates/SSEC_AWIPS_npp_viirs_m12_203_static.nc) to new file (code/../sandbox/20160906_1746_sport_viirs_alaska_m16Lbc.nc)... success
- Opening the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_m16Lbc.nc)... success
- Modifying the new netCDF file...
- Closing the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_m16Lbc.nc)... success
- Modifying netCDF attributes via \`/usr/bin/ncatted -a source,global,o,c,"NASA SPoRT" -a channel,global,o,c,"12.0um LBC" -a satelliteName,global,o,c,"SPoRT NPP-VIIRS" code/../sandbox/20160906_1746_sport_viirs_alaska_m16Lbc.nc\`... success
- Gzipping new netCDF via \`/usr/bin/gzip -f9 code/../sandbox/20160906_1746_sport_viirs_alaska_m16Lbc.nc\`... success
- Copying code/../sandbox/20160906_1746_sport_viirs_alaska_m16Lbc.nc.gz to the archive dir (code/../archive/)... success
Status flags (LBC) (isM12Lbc / isM14Lbc / isM15Lbc / isM16Lbc): 1 / 1 / 1 / 1
**** Solar Zenith Angle
SolZAInputFile: code/../sandbox/npp_viirs_m_solar_zenith_angle_20160906_174644_203.dat
/opt/sport/sportViirsProcessing/lib/python2.7/site-packages/scipy/misc/pilutil.py:98: RuntimeWarning: invalid value encountered in greater
bytedata[bytedata > high] = high
/opt/sport/sportViirsProcessing/lib/python2.7/site-packages/scipy/misc/pilutil.py:99: RuntimeWarning: invalid value encountered in less
bytedata[bytedata < 0] = 0
* Generating netCDF for Solar Zenith Angle
- Copying static netCDF (code/../templates/SSEC_AWIPS_npp_viirs_m12_203_static.nc) to new file (code/../sandbox/20160906_1746_sport_viirs_alaska_solarZenithAngle.nc)... success
- Opening the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_solarZenithAngle.nc)... success
- Modifying the new netCDF file...
- Closing the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_solarZenithAngle.nc)... success
- Modifying netCDF attributes via \`/usr/bin/ncatted -a source,global,o,c,"NASA SPoRT" -a channel,global,o,c,"Solar Zenith Angle" -a satelliteName,global,o,c,"SPoRT NPP-VIIRS" code/../sandbox/20160906_1746_sport_viirs_alaska_solarZenithAngle.nc\`... success
- Gzipping new netCDF via \`/usr/bin/gzip -f9 code/../sandbox/20160906_1746_sport_viirs_alaska_solarZenithAngle.nc\`... success
- Copying code/../sandbox/20160906_1746_sport_viirs_alaska_solarZenithAngle.nc.gz to the archive dir (code/../archive/)... success
**** M12 Reflectance
* Initializing Pyspectral variables...
/opt/sport/sportViirsProcessing/lib/python2.7/site-packages/pyspectral/blackbody.py:225: RuntimeWarning: overflow encountered in exp
denom = np.exp(exp_arg) - 1
solZA_ok size= 0.5809127 MiB
m12Lbc_ok size= 0.5809127 MiB
m15Lbc_ok size= 0.5809127 MiB
* Calculating the M12 solar reflectance...
* Generating LBC Band M12 Reflectance netCDF file
- Copying static netCDF (code/../templates/SSEC_AWIPS_npp_viirs_m12_203_static.nc) to new file (code/../sandbox/20160906_1746_sport_viirs_alaska_m12RefLbc.nc)... success
- Opening the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_m12RefLbc.nc)... success
- Modifying the new netCDF file...
- Closing the new netCDF file (code/../sandbox/20160906_1746_sport_viirs_alaska_m12RefLbc.nc)... success
- Modifying netCDF attributes via \`/usr/bin/ncatted -a source,global,o,c,"NASA SPoRT" -a channel,global,o,c,"3.7um Reflectance LBC" -a satelliteName,global,o,c,"SPoRT NPP-VIIRS" code/../sandbox/20160906_1746_sport_viirs_alaska_m12RefLbc.nc\`... success
- Gzipping new netCDF via \`/usr/bin/gzip -f9 code/../sandbox/20160906_1746_sport_viirs_alaska_m12RefLbc.nc\`... success
- Copying code/../sandbox/20160906_1746_sport_viirs_alaska_m12RefLbc.nc.gz to the archive dir (code/../archive/)... success
viirs_AK_awips_processing_atGINA.py ran for 24.7128567696 seconds and ended at 2016-09-12 23:03:59.348000
#############################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment