l2gen atmospheric correction with mask
l2gen atmospheric correction with mask
When I used the GUI interface of OCSSW for atmospheric correction of MODIS and Landsat images with the l2gen procedure, I made the land and cloud mask options turn off, but there were still only water pixels. I wonder why? How can I get all the pixels after atmospheric correction?
Filters:
-
- Subject Matter Expert
- Posts: 711
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: l2gen atmospheric correction with mask
Could you provide the name of the MODIS L1 file you are working on?
Did you try l2gen with the default setting, which has maskland and maskcloud checked?
Did you try l2gen with the default setting, which has maskland and maskcloud checked?
Re: l2gen atmospheric correction with mask
Are you interested in land, ocean/water , or both? Atmospheric correction is generally more demanding for water pixels because the are dark, so a larger fraction of light reaching the sensor comes from the atmosphere, but atmosphere over land may have more dust/smoke, etc than open ocean, so ancillary data requirements for land differ from ocean requirements.longest wrote: ↑Thu Mar 09, 2023 8:51 am America/New_York When I used the GUI interface of OCSSW for atmospheric correction of MODIS and Landsat images with the l2gen procedure, I made the land and cloud mask options turn off, but there were still only water pixels. I wonder why? How can I get all the pixels after atmospheric correction?
Re: l2gen atmospheric correction with mask
CRY
Last edited by longest on Thu Mar 09, 2023 9:59 pm America/New_York, edited 1 time in total.
Re: l2gen atmospheric correction with mask
gnwiii wrote:
> [quote=longest post_id=14297 time=1678369879 user_id=4238]
> When I used the GUI interface of OCSSW for atmospheric correction of MODIS
> and Landsat images with the l2gen procedure, I made the land and cloud mask
> options turn off, but there were still only water pixels. I wonder why? How
> can I get all the pixels after atmospheric correction?
> [/quote]
>
> Are you interested in land, ocean/water , or both? Atmospheric correction
> is generally more demanding for water pixels because the are dark, so a
> larger fraction of light reaching the sensor comes from the atmosphere, but
> atmosphere over land may have more dust/smoke, etc than open ocean, so
> ancillary data requirements for land differ from ocean requirements.
I'm interested in water pixels, but there are many missing pixels of inshore waters after l2gen atmospheric correction, as shown in the image, which bothers me. So I'm looking for all the pixels of the l2gen atmospheric correction.
> [quote=longest post_id=14297 time=1678369879 user_id=4238]
> When I used the GUI interface of OCSSW for atmospheric correction of MODIS
> and Landsat images with the l2gen procedure, I made the land and cloud mask
> options turn off, but there were still only water pixels. I wonder why? How
> can I get all the pixels after atmospheric correction?
> [/quote]
>
> Are you interested in land, ocean/water , or both? Atmospheric correction
> is generally more demanding for water pixels because the are dark, so a
> larger fraction of light reaching the sensor comes from the atmosphere, but
> atmosphere over land may have more dust/smoke, etc than open ocean, so
> ancillary data requirements for land differ from ocean requirements.
I'm interested in water pixels, but there are many missing pixels of inshore waters after l2gen atmospheric correction, as shown in the image, which bothers me. So I'm looking for all the pixels of the l2gen atmospheric correction.
- Attachments
-
- 捕获2.PNG (65.34 KiB) Not viewed yet
Re: l2gen atmospheric correction with mask
OB SeaDAS - xuanyang02 wrote:
> Could you provide the name of the MODIS L1 file you are working on?
>
> Did you try l2gen with the default setting, which has maskland and
> maskcloud checked?Screen Shot 2023-03-09 at 10.50.16 AM.png
The L1 file I used and the modified GUI interface are shown below. I changed the mask option, but it doesn't seem to work, which makes me very anxious. I really want your help.
> Could you provide the name of the MODIS L1 file you are working on?
>
> Did you try l2gen with the default setting, which has maskland and
> maskcloud checked?Screen Shot 2023-03-09 at 10.50.16 AM.png
The L1 file I used and the modified GUI interface are shown below. I changed the mask option, but it doesn't seem to work, which makes me very anxious. I really want your help.
- Attachments
-
- 捕获1.PNG (68.86 KiB) Not viewed yet
-
- 捕获.PNG (29.85 KiB) Not viewed yet
Re: l2gen atmospheric correction with mask
Inland waters are the hardest case as you can have high levels of sediment in the water as well as "dirty" air, so you may be asking for something l2gen can't handle.
You may get some insights by looking at the flags set for missing missing inshore water pixels.
Re: l2gen atmospheric correction with mask
gnwiii wrote:
> [quote=longest post_id=14310 time=1678416693 user_id=4238]
> I'm interested in water pixels, but there are many missing pixels of
> inshore waters after l2gen atmospheric correction, as shown in the image,
> which bothers me. So I'm looking for all the pixels of the l2gen
> atmospheric correction.
> [/quote]
>
> Inland waters are the hardest case as you can have high levels of sediment
> in the water as well as "dirty" air, so you may be asking for
> something l2gen can't handle.
>
> You may get some insights by looking at the flags set for missing missing
> inshore water pixels.
For some reason, different bands lose different pixels.
> [quote=longest post_id=14310 time=1678416693 user_id=4238]
> I'm interested in water pixels, but there are many missing pixels of
> inshore waters after l2gen atmospheric correction, as shown in the image,
> which bothers me. So I'm looking for all the pixels of the l2gen
> atmospheric correction.
> [/quote]
>
> Inland waters are the hardest case as you can have high levels of sediment
> in the water as well as "dirty" air, so you may be asking for
> something l2gen can't handle.
>
> You may get some insights by looking at the flags set for missing missing
> inshore water pixels.
For some reason, different bands lose different pixels.
-
- Subject Matter Expert
- Posts: 711
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: l2gen atmospheric correction with mask
If you want to do l2gen with resolution=250, you need two L1B files
MYD02QKM.A2016059.0235.061.2018055181559.hdf (resolution=250m)
MYD02HKM.A2016059.0235.061.2018055181559.hdf (resolution=500m)
in the same directory with
MYD021KM.A2016059.0235.061.2018055181559.hdf.
I did l2gen on MYD021KM.A2016059.0235.061.2018055181559.hdf with
maskcloud=0
maskhilt=0
maskland=0
resolution=250
This is what I got for chlor_a -- This is the same image with the land mask on. You can see pixels at the upper right corner in the 1st image that are masked by the brown landmask in the 2nd image.
MYD02QKM.A2016059.0235.061.2018055181559.hdf (resolution=250m)
MYD02HKM.A2016059.0235.061.2018055181559.hdf (resolution=500m)
in the same directory with
MYD021KM.A2016059.0235.061.2018055181559.hdf.
I did l2gen on MYD021KM.A2016059.0235.061.2018055181559.hdf with
maskcloud=0
maskhilt=0
maskland=0
resolution=250
This is what I got for chlor_a -- This is the same image with the land mask on. You can see pixels at the upper right corner in the 1st image that are masked by the brown landmask in the 2nd image.
Last edited by OB SeaDAS - xuanyang02 on Tue Mar 14, 2023 5:49 pm America/New_York, edited 10 times in total.
Re: l2gen atmospheric correction with mask
It is not unusual to get invalid results (e.g., negative values for bands where water is “dark” but atmospheric contribution is high) for some but not all bands.