l2bin activating individual nightime flags for MODIS SST4

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
christo.whittle
Posts: 2
Joined: Wed Jun 15, 2005 11:41 am America/New_York
Answers: 0

l2bin activating individual nightime flags for MODIS SST4

by christo.whittle » Wed Jun 13, 2018 5:05 am America/New_York

Hello
I want to have more control at the command line when mapping level 2 MODIS SST4 data.  At the moment I am using the following command:
/usr/local/SeaDAS/seadas-7.4/ocssw/run/bin/linux_64/l2bin infile=/Processing/ABank/L2/run/T2000156.L2_MODIS_SST4.txt ofile=/Processing/ABank/L3/T2000156.L3b_MODIS_SST4.nc l3bprod=sst4 resolve=1 night=1 qual_prod=qual_sst4 max_qual=2 prodtype=regional flaguse='LAND,HISATZEN,BTBAD,BTRANGE,BTDIFF,SSTRANGE,SST4VDIFF'

But instead of the predetermined quality level 2 result, I would like to use only the specified flags (as is possible with OC).  When I attempt to run the above command without the "qual_prod=qual_sst4 max_qual=2" section, no flags seem to be triggered.

Do you have any advice?

Thanks.
Christo

Filters:

OB SeaDAS - knowles
Subject Matter Expert
Subject Matter Expert
Posts: 306
Joined: Mon Apr 07, 2008 4:40 pm America/New_York
Answers: 0
Been thanked: 3 times

l2bin activating individual nightime flags for MODIS SST4

by OB SeaDAS - knowles » Wed Jun 13, 2018 8:06 am America/New_York

Hello Christo,

There is a little about this concept in the OCSSW Cookbook (in the GUI under SeaDAS Help > Cookbooks > OCSSW Cookbook)

There are 2 types of flags in a SST level2 file: l2_flags and flags_sst.  The l2bin option flaguse is only tied to the l2_flags.  There is currently no l2bin option for masking with the flags_sst.

Of the flags you show (LAND,HISATZEN,BTBAD,BTRANGE,BTDIFF,SSTRANGE,SST4VDIFF), the l2_flags are: LAND and HISATZEN, and the rest of the flags are flags_sst.  So flaguse only sees LAND and HISATZEN in your example.

If you are using a daytime SST file then plenty of the l2_flags are triggered and may possibly be of use, but if you are using a nighttime SST file then only the LAND and a few geometric flags like HISATZEN, etc. are of use.

Hopefully in the future an option for masking on flags_sst will be added to l2bin.

At present, your only option for mapping a level2 file with masking being applied using flags_sst would be to use the Reproject or Mosaic tool in SeaDAS (GUI or command line gpt).

Danny

christo.whittle
Posts: 2
Joined: Wed Jun 15, 2005 11:41 am America/New_York
Answers: 0

l2bin activating individual nightime flags for MODIS SST4

by christo.whittle » Thu Jun 14, 2018 6:11 pm America/New_York

Dear Danny

Thank you for your detailed reply.  I will explore the solutions that you have suggested and provide some feedback soon.

Sincerely.
Christo

Post Reply