Clipping of MODIS L3m file according to Shapefile

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

Clipping of MODIS L3m file according to Shapefile

by jcfischer » Tue Jan 30, 2018 7:40 am America/New_York

Dear colleagues,
I would like to know whether there is an option in SeaDas to crop a level 3 mapped image file (in netCDF format) from MODIS by using the spatial information of a shapefile as a reference. The area of interest of my study is defined as a 200 nautical mile (~370.4 km) buffer zone around the coastal outline of La Réunion Island. All land (Mauritius) is excluded. I have a shapefile of the area of interest. The spatial subset function for cropping is not very helpful. Is there a way to indicate the boundaries of the shapefile as a reference for cropping?
I need to crop my files in order to analyze only what is inside my research area and would like to use the statistics tool in SeaDAS for that.
Your help is highly appreciated. Thanks a lot!

Tags:

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

Clipping of MODIS L3m file according to Shapefile

by gnwiii » Tue Jan 30, 2018 10:15 am America/New_York

The Case Study on SeaDAS Video tutorials has an example creating a mask from a shapefile.  You may want to view the tutorial on masks first. For more than a couple images it is much faster to use the gpt command-line tool's StatisticsOp.  Run gpt StatisticsOP -h for the detailed usage.  You can find examples of gpt xml files on this forum and also the ESA STEP SNAP forum.

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

Clipping of MODIS L3m file according to Shapefile

by OB SeaDAS - knowles » Tue Jan 30, 2018 12:16 pm America/New_York

Yes, masking is what you are looking for not cropping.  Note that the Statistics tool has masking capabilities.  If it is imagery which you want to mask out, you can do this with the Valid Pixel Expresson.  Of note: SeaDAS 7.5 is coming very soon and has major improvements to the statistiscs tool (both GUI and GPT).

Danny

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

Clipping of MODIS L3m file according to Shapefile

by jcfischer » Tue Feb 13, 2018 12:48 am America/New_York

Dear both, that solved my problem - thank you very much!
What is the planned release date for version 7.5?

zhigang
Posts: 74
Joined: Tue Nov 10, 2020 8:03 pm America/New_York
Answers: 0

Clipping of MODIS L3m file according to Shapefile

by zhigang » Tue Feb 27, 2018 12:21 am America/New_York

It seems to be in late March this year, but I'm not sure :)

clippingpathunited
Posts: 1
Joined: Sun Jan 29, 2023 8:14 am America/New_York
Answers: 0

Re: Clipping of MODIS L3m file according to Shapefile

by clippingpathunited » Sun Jan 29, 2023 8:16 am America/New_York

Clipping a MODIS Level 3 (L3) file according to a Shapefile refers to the process of extracting a portion of the L3 data that falls within the boundaries of a specific geographic area defined in the Shapefile. The Shapefile is a vector data format that specifies geographic features, such as the outline of a region or country, using points, lines, and polygons.

To clip the MODIS L3 file, the Shapefile is used to define the extent of the area of interest and the L3 data is cropped to match this extent. This results in a new file that only contains data for the specific region defined by the Shapefile, which can be used for further analysis or visualization. Clipping can help to reduce the size of the data and make it more manageable, as well as allowing for more focused and efficient analysis of specific regions of interest.

Post Reply