Default land mask in l2gen for MSI

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
dogun
Posts: 33
Joined: Tue Oct 11, 2016 11:49 am America/New_York
Answers: 0

Default land mask in l2gen for MSI

by dogun » Fri Aug 31, 2018 11:56 pm America/New_York

Hi All,

Looks like the default land mask for Sentinel processing is too course. Some of the pixels have rectangular/square shape along the edges as opposed to the exact shape of land, thus covering some water pixels. Is there a way to correct this, please? Same applies to the default cloud mask.

Thanks.

Tags:

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1469
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 5 times

Default land mask in l2gen for MSI

by OB.DAAC - SeanBailey » Tue Sep 04, 2018 1:57 pm America/New_York

Yes,  the default landmask is a 15arc-second resolution, so ~500m, which is much more coarse than the MSI (or Landsat's OLI) instrument.  As described in my response to the OLI question about this issue, you can pass l2gen a null landmask (you could always apply a landmask after the processing).  Or you can define your own mask - sure a more difficult task.   To to that you'd have to match the format of our 15arc landmask, but at a higher resolution - this can even be localized - assuming you don't need the whole globe at 2om...

The cloud mask is based solely on measure radiances.  It is what it is, but you can change the theshold on which the flag is set with the cloud_thresh option.

Sean

dogun
Posts: 33
Joined: Tue Oct 11, 2016 11:49 am America/New_York
Answers: 0

Default land mask in l2gen for MSI

by dogun » Wed Sep 05, 2018 12:00 am America/New_York

Thanks Sean!

OB SeaDAS - knowles
Subject Matter Expert
Subject Matter Expert
Posts: 271
Joined: Mon Apr 07, 2008 4:40 pm America/New_York
Answers: 0

Default land mask in l2gen for MSI

by OB SeaDAS - knowles » Wed Sep 05, 2018 8:15 am America/New_York

Note: post l2gen processing (if you don't apply the land mask there), you can apply a 50m land mask using the SeaDAS LandWaterMask tool (GUI: Layer > Coastline, Land & Water; GPT LandWaterMask).  But this tool is outside of the OCSSW processing stream so you could not continue with the resultant file back into the OCSSW stream (for instance l2bin).

Danny

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

Default land mask in l2gen for MSI

by gnwiii » Thu Sep 06, 2018 9:32 am America/New_York

Sean's suggestion to create your own landmask should allow you to use the full set of OCSSW tools.   Another option is to add or modify a product in a level 2 file.   It is really not very difficult to add level 2 products to SeaDAS 7 NetCDF4-CF format files, and examples using Python and R have appeared in this forum, see:

adding a product to L2 in Python
gpt merge

Note that some programs look at the products.xml file for information about the product, so you will need to add an entry for your new product to that file.

dogun
Posts: 33
Joined: Tue Oct 11, 2016 11:49 am America/New_York
Answers: 0

Default land mask in l2gen for MSI

by dogun » Fri Sep 21, 2018 9:21 pm America/New_York

Thanks to you all!

Post Reply