Cloud flagging adjustments

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
alaroy
Posts: 78
Joined: Tue Nov 21, 2006 3:33 pm America/New_York
Answers: 0

Cloud flagging adjustments

by alaroy » Thu May 02, 2019 12:01 am America/New_York

Hi again SeaDAS'ers :)

Is there a way (or ways) to adjust the cloud flag determination in l2gen to be "more aggressive" in flagging cloudy pixels? I'm finding that we're getting contaminated data (for the purpose of our algorithm) at / near the edge of cloudy areas.

In case it makes a difference in the answer we're operating on MODISA granules.

-Andrew L.

Filters:

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

Cloud flagging adjustments

by OB.DAAC - SeanBailey » Thu May 02, 2019 8:04 am America/New_York

For MODIS, the STRAYLIGHT flag is effectively a dilation of the CLDICE (and HILT) flags.
If you apply the STRAYLIGHT flag as a mask, you may not need to change the cloud threshold. 

If you really want to change the CLDICE flag, you can provide l2gen with a stricter cloud_thresh value.
The default is 0.027 (effectively a 2.7% reflectance at 869nm - the wavelength to use is determined by the cloud_wave parameter).
When doing vicarious calibration work, I usually set it to 0.022.

Sean

alaroy
Posts: 78
Joined: Tue Nov 21, 2006 3:33 pm America/New_York
Answers: 0

Cloud flagging adjustments

by alaroy » Thu May 02, 2019 10:20 pm America/New_York

Sean,

Thank you, as always, for your helpful hints. I tried with the straylight flag and while it removed almost all of the cloud contamination (yaay!) it also dropped more pixels than we would like :(.

You said the flag is based on reflectance at 869nm - is that rrs_869, rhos_869, the cloud_albedo product or something else entirely? Since I'm processing (slowly!) at 500m resolution it would be nice to write the relevant value to the L2 file and then decide which pixels to keep during post-processing.

-Andrew L.

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

Cloud flagging adjustments

by OB.DAAC - SeanBailey » Sun May 05, 2019 12:05 pm America/New_York

If you want to assess in a post-l2gen step, output the cloud_albedo product.  This is the one on which the CLDICE threshold is based.

Sean

Post Reply