Apply l2bin on VIIRS L2 data

Please enter here to ask a question about any NASA Science related topics!
Post Reply
starbright
Posts: 15
Joined: Sun Jul 31, 2005 9:10 pm America/New_York

Apply l2bin on VIIRS L2 data

by starbright » Mon May 01, 2017 7:09 am America/New_York

I'm using SeaDAS 7.3.2 installed on Ubuntu Linux.
Tried to process VIIRS level 2 data with l2bin but got an error message:
"
L2BIN 4.1.0 (Jun 16 2016 12:31:25)
Programming error: file /data3/swdev/V2016.2/build/src/l2bin/l2bin_input.c, line 133
"

So I opened the l2bin_input.c and found that line which is
DPTB(nc_get_att( sd_id, NC_GLOBAL, "instrument", instrument));

So it seems that current SeaDAS does not support the binning of VIIRS data (yet)? I guess this has been clearly stated in the SeaDAS help page: "l2bin performs spatial/temporal binning of SeaWiFs, MODIS, and OCTS Level-2 data files.", but would still like to confirm on this. If so is there a timeline to support the binning of data from VIIRS and other sensors such as OLCI in the future?

Thanks!

Tags:

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 214
Joined: Thu Mar 05, 2009 10:25 am America/New_York

Apply l2bin on VIIRS L2 data

by OB SeaDAS - dshea » Mon May 01, 2017 8:57 am America/New_York

First of all I would suggest upgrading SeaDAS to 7.4.

l2bin has been able to work with VIIRS L2 files for quite a while.  Give me the command line and parameters that you used to run l2bin and I can look into it.  Also, run this command on your input L2 files:

$ ncdump -h <viirs.L2.nc> | grep "instrument ="

This is what you should get as output:

    :instrument = "VIIRS" ;

don

starbright
Posts: 15
Joined: Sun Jul 31, 2005 9:10 pm America/New_York

Apply l2bin on VIIRS L2 data

by starbright » Mon May 01, 2017 9:15 am America/New_York

I run the ncdump for the VIIRS level 2 file but got no output message. Note that the file was obtained from NOAA NESDIS (link below), not from NASA OBPG. Are we talking about a compatibility issue here?

https://www.star.nesdis.noaa.gov/thredds/catalog/swathNPPVIIRSL2WW00/2017/118/catalog.html?dataset=CoastWatch/VIIRS/SWATH/L2/WW00/2017/118/VRSVCW.B2017118.073527.nc

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 214
Joined: Thu Mar 05, 2009 10:25 am America/New_York

Apply l2bin on VIIRS L2 data

by OB SeaDAS - dshea » Mon May 01, 2017 9:40 am America/New_York

Yes, that is not a comparable file.  Our l2bin program only handles L2 files created by l2gen.  Sorry about that.

don

starbright
Posts: 15
Joined: Sun Jul 31, 2005 9:10 pm America/New_York

Apply l2bin on VIIRS L2 data

by starbright » Tue May 02, 2017 10:46 am America/New_York

No problem. Thanks for your prompt reply, Don.

Post Reply