L2gen - cant remove HILT flags MODIS

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
paulajcu
Posts: 5
Joined: Thu Dec 14, 2023 1:10 am America/New_York
Answers: 0

L2gen - cant remove HILT flags MODIS

by paulajcu » Fri Apr 26, 2024 1:30 am America/New_York

Hi
I am using L2gen to process MODIS aqua for retrieving high-turbidity flood plume data. I need to remove HILT which is saturated at all the highest turbidity pixels in the L2 products, the exact region I want to quantify with a math band algorithm. I have tried 'fixes' from this forum but nothing has worked so far. I'm using seadas version 9 GUI.
Can anyone help?
Cheers
Paula

Tags:

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

Re: L2gen - cant remove HILT flags MODIS

by OB SeaDAS - knowles » Fri Apr 26, 2024 12:10 pm America/New_York

If your question regards running l2gen, then setting "maskhilt=1" (which is the default and really doesn't need to be set if your suite is "OC") will result in a level-2 file with HILT flagged pixels masked out.

If your question regards using a math expression based SeaDAS tool with an input level2 file (for instance MathBand) then the math expression to only include chlor_a band values where HILT is not flagged would be:
"if (! l2_flags.HILT) then chlor_a else NaN"

Danny

paulajcu
Posts: 5
Joined: Thu Dec 14, 2023 1:10 am America/New_York
Answers: 0

Re: L2gen - cant remove HILT flags MODIS

by paulajcu » Sun Apr 28, 2024 5:48 pm America/New_York

Hi Danny
Thanks for replying.
I want to run L2gen without masking HILT. I want to see the values of the pixels, not mask them. Turning off maskhilt is not achieving this. They are still coming out masked.
Cheers
Paula

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

Re: L2gen - cant remove HILT flags MODIS

by OB SeaDAS - knowles » Mon Apr 29, 2024 10:49 am America/New_York

Do the pixels which you see as HILT flagged also contain other flags which are set to true (such as STRAYLIGHT, CLDICE, LAND)? Look at Pixel Info > Flags to verify this.

If you do see pixels which are only flagged HILT then send the exact MODIS filename and ideally a picture of the region where the flags are being set.

Also send the exact processing parameters which you are using to run l2gen so we can try to replicate what you are seeing.

Danny

paulajcu
Posts: 5
Joined: Thu Dec 14, 2023 1:10 am America/New_York
Answers: 0

Re: L2gen - cant remove HILT flags MODIS

by paulajcu » Mon Apr 29, 2024 11:37 pm America/New_York

These (attached) are the processing parameters I am using; the rest are default.
The turbid pixels only flag as HILT (and PRODFAIL).
Filename is A2009047045000.L1A_LAC which I have processed through to AQUA_MODIS.20090216T045000.L1B.sub.hdf to run l2gen.
Attached is true colour image of same region, same modis overpass.
Attachments
processing options.png
processing options.png (51.25 KiB) Not viewed yet
true colour1.png
true colour1.png (199.35 KiB) Not viewed yet

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

Re: L2gen - cant remove HILT flags MODIS

by OB.DAAC - SeanBailey » Tue Apr 30, 2024 7:25 am America/New_York

When the HILT flag is set for MODIS, one or more of the bands are saturated. It is often that the 869nm band is saturated, this band is used in the atmospheric correction. Disabling the masking of HILT will not change the fact that the data are saturated and a saturated 869nm band will cause the aerosol selection process of the atmospehric correction to fail. It may be possible to use alternate bands for the atmospheric correction (e.g. 859nm, or one of the SWIR), but that comes with its own issues (e.g. the vicarious calibration may need to be rederived and greatly increased uncertainty due to low SNR for these bands).

Sean

Post Reply