Difficulty processing L3 mapped CHL data
Difficulty processing L3 mapped CHL data
Hello,
I am a first time satellite data user.
I am trying to plot the 2018 MODIS Aqua chlor-a mapped data, but I am running into issues.
I first plotted the data without any processing and the concentrations were negative, which is not correct. So I went to look at the user guide for the data here: https://oceancolor.gsfc.nasa.gov/docs/technical/ocean_level-3_smi_products.pdf . I noticed that I have to apply a scaling equation of Base**((Slope*l3m_data) + Intercept).
So, I tried to apply the equation. Firstly, I noticed that in the file attributes that is no Slope or Intercept information. In the pdf the Base=10. Therefore, I applied the following in MATLab: base=10; chl_scaled=base.^(chl);. When I plotted the chl_scaled it gave me values at 4x10^91 which is also impossible.
I then thought I may have read it wrong and just applied a log10(chl), but that gave me imaginary numbers...
I am currently lost as to how to solve this problem and if I am missing a step or just following the wrong instructions. Any help or guidance will be greatly appreciated.
The file that I am currently attempting to use has the following name: A20181522018181.L3m_MO_CHL_chlor_a_4km.nc. I have attached the images that I produced to show my results.
Thanks,
Inge
I am a first time satellite data user.
I am trying to plot the 2018 MODIS Aqua chlor-a mapped data, but I am running into issues.
I first plotted the data without any processing and the concentrations were negative, which is not correct. So I went to look at the user guide for the data here: https://oceancolor.gsfc.nasa.gov/docs/technical/ocean_level-3_smi_products.pdf . I noticed that I have to apply a scaling equation of Base**((Slope*l3m_data) + Intercept).
So, I tried to apply the equation. Firstly, I noticed that in the file attributes that is no Slope or Intercept information. In the pdf the Base=10. Therefore, I applied the following in MATLab: base=10; chl_scaled=base.^(chl);. When I plotted the chl_scaled it gave me values at 4x10^91 which is also impossible.
I then thought I may have read it wrong and just applied a log10(chl), but that gave me imaginary numbers...
I am currently lost as to how to solve this problem and if I am missing a step or just following the wrong instructions. Any help or guidance will be greatly appreciated.
The file that I am currently attempting to use has the following name: A20181522018181.L3m_MO_CHL_chlor_a_4km.nc. I have attached the images that I produced to show my results.
Thanks,
Inge
- Attachments
-
- Raw_unprocessed.png (60.64 KiB) Not viewed yet
-
- base_power_chl.png (43.43 KiB) Not viewed yet
Filters:
-
- Subject Matter Expert
- Posts: 711
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: Difficulty processing L3 mapped CHL data
I am not sure if you are aware that you can use SeaDAS to display the ocean color data -- https://seadas.gsfc.nasa.gov/
Here is the image for A20181522018181.L3m_MO_CHL_chlor_a_4km.nc
Here is the image for A20181522018181.L3m_MO_CHL_chlor_a_4km.nc
Re: Difficulty processing L3 mapped CHL data
Hi xuanyang02,
I have given it a look and that is also why I know I am doing some thing wrong.
I would also like to get the mean and sd and compare to a biogoechemical model so that is why I would like to use the data.
Thanks
I have given it a look and that is also why I know I am doing some thing wrong.
I would also like to get the mean and sd and compare to a biogoechemical model so that is why I would like to use the data.
Thanks
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
Re: Difficulty processing L3 mapped CHL data
Not all the L3 mapped products are distributed as scaled integers. The chlorophyll product is store as floating point values, so no scaling is required. The equation you tried would only be necessary if the product was stored with a logarithmic scaling (rarely used - most products are linearly scaled, so value = scale_factor * scaled value + add_offset - but again, the chlorophyll data are not scaled.)
Just read the data as is
Sean
Just read the data as is

Sean
Re: Difficulty processing L3 mapped CHL data
Thank you very much!
I realised this and I now understand that in the attributes where it says suggested_image_scaling_type=LOG is when you plot the image to use a log scale.
Baby steps to getting it right, but getting there.
Thanks for the help.
I realised this and I now understand that in the attributes where it says suggested_image_scaling_type=LOG is when you plot the image to use a log scale.
Baby steps to getting it right, but getting there.
Thanks for the help.