Ocean Color Forum - Not logged in
Forum Ocean Color Home Help Search Login
Previous Next Up Topic SeaDAS / SeaDAS 7 - General Questions / l2gen for viirs SDR (3727 hits)
- By Prasad Date 2012-07-10 16:42
Hi I am trying to using l2gen (linux 64-bit) on the command line to process viirs SDRs to Ocean color EDRs and I get this error message:

./l2gen ifile=SVM01_npp_d20120610_t1952188_e1953429_b00001_c20120614223848857803_cspp_dev.h5 ofile=/nexus/data1/test/npp/Remap/Stennis/viirs.ocean.hdf

  Input file SVM01_npp_d20120610_t1952188_e1953429_b00001_c20120614223848857803_cspp_dev.h5 is VIIRS Level-1B standard product.
  /home/swdev/ocssw/build/src/l2gen/getformat.c, 409: HDF 5 file
 
  I get the viirsn (can't open parameter file error)- where can I find the viirsn/msl12_defaults.par file ?
 
  -E- clo_readFile: Can't open parameter file -
  /nexus/data1/test/SEADAS7/seadas-7.0/Processing/run/data/viirsn/msl12_
  defaults.par
 
  Also,  I have seven (7) VIIRS SDR input files that I assume are required for ocean color processing,
  and these are named as follows:
  SVM01_npp_d20120610_t1952188_e1953429_b00001_c20120614223848857803_csp
  p_dev.h5
  SVM02_npp_d20120610_t1952188_e1953429_b00001_c20120614223848916273_csp
  p_dev.h5
  SVM03_npp_d20120610_t1952188_e1953429_b00001_c20120614223848983102_csp
  p_dev.h5
  SVM04_npp_d20120610_t1952188_e1953429_b00001_c20120614223849089145_csp
  p_dev.h5
  SVM05_npp_d20120610_t1952188_e1953429_b00001_c20120614223850517203_csp
  p_dev.h5
  SVM06_npp_d20120610_t1952188_e1953429_b00001_c20120614223851110466_csp
  p_dev.h5
  SVM07_npp_d20120610_t1952188_e1953429_b00001_c20120614223851238234_csp
  p_dev.h5
 
  How do I input all 7 files in the command line syntax (do I use ifile or ilist ??).

Can someone send me the command line syntax for processing viirs sdrs to edrs using l2gen ? 
  thanks for your help.
 
  Kota Prasad
SeaSpace
Parent - By @sean Date 2012-07-11 13:49
1) you need SVM01 - SVM16 + the geolocation file (GMTCO)
2) you need to make sure that you have the viirs data files (/Processing/run/data/viirsn/)
3) to process you only need to provide l2gen the SVM01 file as the ifile, it will assume the other 15 are present in the same directory

Sean

Oh, and there is an issue with the data files not having the appropriate symlinks... see http://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?pid=19683#pid19683
Parent - By bryan Date 2012-07-11 16:51
Kota,

There is also the issue that you are using standard SDRs from standard NOAA calibration.  You will need to set the vicarious calibration gains to unity in that case.  See:

  http://oceancolor.gsfc.nasa.gov/WIKI/OCReproc20120VN.html

-- bryan
Parent - By Prasad Date 2012-07-11 21:30
Sean and Bryan, thanks. Made progress...

where can I find "xcal_modisa_axc19e_412.hdf" thro xcal_XXXXXXXX.859.hdf ?

Allocated 4384012 bytes in L1 record.
Allocated 4384012 bytes in L1 record.
Allocated 4384012 bytes in L1 record.
Allocated 4384012 bytes in L1 record.
Allocated 4384012 bytes in L1 record.
/data5/swdev/seadas/seadas6.4/build/src/l2gen/viirs_utls.c: Reading leap second information from file /nexus/data1/test/SEADAS7/modis/leapsec.dat
Loading radiance to brightness temperature from /nexus/data1/test/SEADAS7/run/data/modisa/cal/bt_modisa.hdf
Loading land mask file from /nexus/data1/test/SEADAS7/run/data/common/landmask.dat
Loading bathymetry mask file from /nexus/data1/test/SEADAS7/run/data/common/watermask.dat
Loading ice mask file from /nexus/data1/test/SEADAS7/run/data/common/ice_climatology.hdf
Loaded monthly NSIDC ice climatology HDF file.
Loading XCAL rvs and polarization sensitivities from /nexus/data1/test/SEADAS7/run/data/modisa/cal/xcal_modisa_axc19e_412.hdf
-E- /data5/swdev/seadas/seadas6.4/build/src/l2gen/xcal.c line 75: SDstart(/nexus/data1/test/SEADAS7/run/data/modisa/cal/xcal_modisa_axc19e_412.hdf, 1) failed.

Kota
Parent - By bryan Date 2012-07-12 02:48
Kota,

It looks to me like you have some wires crossed.  If you're running VIIRS, you shouldn't be looking for MODISA files. The log also indicates you are using code from seadas 6.4, and files from seadas 7. 

/data5/swdev/seadas/seadas6.4/build/src/l2gen/viirs_utls.c: Reading leap second information from file /nexus/data1/test/SEADAS7/modis/leapsec.dat

I'll leave it to  Sean and others to speculate further.

-- bryan
Parent By @sean Date 2012-07-12 13:36
Kota,

The issue is with the defaults file for l2gen processing.  Seems it was copied from the MODIS file and then modified as necessary.
Trouble is, the paths for some of the files were not corrected AND proc_sst was not disabled (we currently do not support SST processing for VIIRS, so it should be disabled in the default parameter file).

So, the quick fix for you is to edit the run/data/viirsn/msl12_defaults.par file and set:
proc_sst=0

You could comment out the path entries that point to run/data/modisa/:

#sstcoeffile=$OCDATAROOT/modisa/cal/sst_coef_modisa_v5.dat                     
#sstssesfile=$OCDATAROOT/modisa/cal/sst_sses_modisa_v5.hdf                     
#sst4coeffile=$OCDATAROOT/modisa/cal/sst4_coef_modisa_v5.dat                   
#sst4ssesfile=$OCDATAROOT/modisa/cal/sst4_sses_modisa_v5.hdf

Sean
Previous Next Up Topic SeaDAS / SeaDAS 7 - General Questions / l2gen for viirs SDR (3727 hits)



Responsible NASA Official: Gene C. Feldman
Curator: OceanColor Webmaster
Authorized by: Gene C. Feldman
Updated: 27 November 2007
Privacy Policy and Important Notices NASA logo