Page 1 of 1
VIIRS-JPSS1 OCSSW commands L1A to L2
Posted: Mon Jul 20, 2020 4:25 pm America/New_York
by alaroy
If I have an L1A file from VIIRS-JPSS1 and it's corresponding GEO file, what commands would I use in OCSSW to process it forward to an L2 file?
(Sorry about the "newbie question", I've exclusively used MODISA data with OCSSW since the demise of SeaWIFS)
Thank you!
-Andrew L.
VIIRS-JPSS1 OCSSW commands L1A to L2
Posted: Tue Jul 21, 2020 8:48 am America/New_York
by OB WebDev - norman
Hi Andrew,
Make sure you have the VIIRSJ1 bundle installed (install_ocssw.py --viirsj1) and then
do something like the following.
getanc.py V2020099121800.L1A_JPSS1.nc
l2gen ifile=V2020099121800.L1A_JPSS1.nc geofile=V2020099121800.GEO-M_JPSS1.nc ofile=V2020099121800.L2.nc l2prod=rhos_445,rhos_556,rhos_667,rhos_868,chlor_a
Those are the level-2 products I use; you may choose to use a different set.
Help pages are available here.
https://seadas.gsfc.nasa.gov/help/Regards,
Norman
VIIRS-JPSS1 OCSSW commands L1A to L2
Posted: Tue Jul 21, 2020 8:55 am America/New_York
by OB.DAACx - SeanBailey
...don't forget to include par=V2020099121800.L1A_JPSS1.nc.anc
...without that, you've pulled the ancillary files but didn't tell l2gen to use them :grin:
The l2gen process is pretty much the same for all missions, with the exception of those requiring an external geolocation file (i.e. MODIS, VIIRS) requiring the additional geofile=<GEOFILE>
Unlike MODIS, VIIRS can be run through l2gen with the L1A file. However, like MODIS, it can also be run with the L1B file, for which there is the calibrate_viirs code to generate.
Sean
VIIRS-JPSS1 OCSSW commands L1A to L2
Posted: Tue Jul 21, 2020 9:00 am America/New_York
by OB WebDev - norman
"...don't forget to include par=V2020099121800.L1A_JPSS1.nc.anc ...without that, you've pulled the ancillary files but didn't tell l2gen to use them"
Huh. I've been doing it wrong for a couple of years now.
Thanks for the heads up.
Norman
VIIRS-JPSS1 OCSSW commands L1A to L2
Posted: Tue Jul 28, 2020 6:34 pm America/New_York
by alaroy
Thank you Norman & Sean! It worked like charm!
Just in case somebody is reading this thread later it turns out you need to install with
install_ocssw.py --viirsn --viirsj1
even if you are just processing just viirsj1. --viirsn seems to get some files that are common between both instruments and not included when you use only --viirsj1