Create filtered band using gpt/command line

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
dbotis
Posts: 44
Joined: Mon Nov 21, 2011 7:44 pm America/New_York
Answers: 0

Create filtered band using gpt/command line

by dbotis » Tue May 01, 2018 5:46 pm America/New_York

Hi,

I'd like to use the "Straylight Low-Pass 1.5 Pixel Radius (1/r)" filter to create a filtered band. I can do it quite nicely using the GUI. Is there a way to implement this type of filtering using gpt or via command line somehow?

The basic problem is that I would like to create a non-standard straylight mask that does not remove so many pixels as default straylight masking. I can do this just fine if I start with L1A files, but cannot find a way to do it using standard L2 files I get via subscription. Any ideas are appreciated. Thanks,

Dan

Filters:

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

Create filtered band using gpt/command line

by OB SeaDAS - knowles » Wed May 02, 2018 9:08 am America/New_York

Dan

Sorry, but there is currently no way to generate a filtered band in SeaDAS via command line (gpt).  Hopefully in the future.

Regarding your second statement about L1A and L2, you should explain specifically what you are doing which enables L1A to work for you and L2 to not work for you.

Ideally, for cloud masking via the band filter, you want to do this using the longest NIR rhos product so your filter is interpolating across rhos magnitude values instead of across mask binary values.  The standard L2 you get via subscription does not contain the rhos product.  The only thing you can do with a standard L2 file would be to create a band from the CLDICE mask (this step can be done at command line (gpt)).  Then apply the filter to this CLDICE band and create a mask based on the filtered band.  This technique will enable you to adjust how aggressively you expand your cloud mask around the CLDICE values.

There is a SeaDAS poster on this straylight topic which was presented at the International Ocean Colour meeting in 2015, (see upper right corner of poster)
https://www.eposters.net/poster/approaches-to-ocean-color-studies-using-seadas

Danny

dbotis
Posts: 44
Joined: Mon Nov 21, 2011 7:44 pm America/New_York
Answers: 0

Create filtered band using gpt/command line

by dbotis » Wed May 02, 2018 11:12 am America/New_York

Thanks, Danny

For L1A files, when I run l2gen, I mask straylight (maskstlight=1), but I call a custom filter file set to 3x3 instead of 7x5, changing two lines in the "msl12_filter.dat" file:
stlight,  5,  3,  3,  1
stlight, 10,  3,  3,  1

This gives me a less aggressive stlight filter, which is what I want to implement on standard L2 files. However, it looks like the ability to apply a filter and create a filtered band is limited to the GUI.

- Dan

Post Reply