Initial projection of MODIS L2_LAC.OC.x.nc files

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
jcfischer
Posts: 47
Joined: Wed Aug 23, 2017 12:23 pm America/New_York
Answers: 0

Initial projection of MODIS L2_LAC.OC.x.nc files

by jcfischer » Fri Feb 23, 2018 5:51 am America/New_York

Hi,
I have a question regarding the original projection of level 2 ocean color data (L2_LAC_OC.x.nc files) for my further workflow. After the reprojection in SeaDAS to e.g. Geographic Lat/Lon (WGS 84) the spatial resolution becomes 1.2 km. I am working in R and therefore need to know the exact projection and resolution of the original data. In the metadata information of the file, the resolution is defined as 1 km. Where is this difference in the resolution coming from?
Is there a way to find out about the exact initial projection from the metadata of the file? With this information I would be able to reproject the files in R.
Thanks a lot!

Tags:

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

Initial projection of MODIS L2_LAC.OC.x.nc files

by OB.DAAC - SeanBailey » Fri Feb 23, 2018 7:40 am America/New_York

Level 1 and 2 data are not projected, they are as measured by the instrument.  The resolution attribute defines the nominal resolution of the instrument which is only truly valid at nadir.
The size of the pixels grow along-scan, so at the edge of the swath the pixels are significantly larger than 1km.  The nominally 1km square pixel at nadir becomes a trapezoid on the order of 2x4.5km

See:
https://oceancolor.gsfc.nasa.gov/docs/bowtie/modis/

VIIRS is even stranger, as it has pixel aggregation zones along the scan intended to minimize the effect of pixel growth:
https://oceancolor.gsfc.nasa.gov/docs/bowtie/viirs/

Mapping a L2 file to a regular projection can be a non-trivial task, this is why we have the l2bin and l3mapgen programs.

Sean

jcfischer
Posts: 47
Joined: Wed Aug 23, 2017 12:23 pm America/New_York
Answers: 0

Initial projection of MODIS L2_LAC.OC.x.nc files

by jcfischer » Mon Feb 26, 2018 6:37 am America/New_York

Hi Sean,
thank you very much for your answer! I am able to create output files with a resolution of ~2.2 km which is the result of multiple tests and variations I undertook to find the best way to generate the product I need.
So, the SeaDAS l2bin and l3mapgen processors undertake interpolations and/or fragmentations in order to create the mapped output images with a "full" coverage until the edge of the swath?
Greetings, JC

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

Initial projection of MODIS L2_LAC.OC.x.nc files

by OB.DAAC - SeanBailey » Mon Feb 26, 2018 8:44 am America/New_York

The current l2bin code treats each L2 pixel as a point in space and bins the data into the bin with the closest central lat/lon to the pixel lat/lon.
The l3mapgen code has logic that will do an area weighting when mapping  the binned data (if the interp=area option is used).

Sean

jcfischer
Posts: 47
Joined: Wed Aug 23, 2017 12:23 pm America/New_York
Answers: 0

Initial projection of MODIS L2_LAC.OC.x.nc files

by jcfischer » Tue Mar 13, 2018 1:00 am America/New_York

Dear Sean, thanks for the answer and explanation! Greetings, JC

Post Reply