batch extract MODIS spectra without download

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
eccc_modis
Posts: 7
Joined: Wed Aug 01, 2018 2:16 pm America/New_York

batch extract MODIS spectra without download

by eccc_modis » Mon May 16, 2022 10:53 am America/New_York

Hello, I would like to extract MODIS L1 and L2 spectra at geo-locations&time of a large dataset. some example locations like:
Name Lat Lon DateTime
MB05SBS311 50.63333 96.95000 2016-06-02T14:00:00
MB05SCS157 51.21645 96.72578 2016-06-02T14:00:00
MB05SBS126 50.51692 96.83340 2016-06-03T14:00:00
MB05SBS315 50.38750 96.81667 2016-06-03T14:00:00
MB05SBS317 50.44290 96.70935 2016-06-03T14:00:00
MB05SBS347 50.63838 96.98022 2016-06-03T14:00:00
...
the problem is, the dataset has over a million rows and distribute from 2002 to present and all over different countries. Is there a way to avoid download MODIS raw file to local, while directly extracting the spectra during the download?
Thanks.

Chui,

Tags:

OB General Science - guoqingw
Subject Matter Expert
Subject Matter Expert
Posts: 13
Joined: Fri Jun 03, 2022 10:54 am America/New_York
Been thanked: 1 time

Re: batch extract MODIS spectra without download

by OB General Science - guoqingw » Fri Jul 08, 2022 3:15 pm America/New_York

Hi Chui,

Unfortunately, there is no easy way to do that without downloading the original files.
One method that I used may help a little. You can find all the MODIS L1 and L2 files that matches the date and time (+- time differences that you prefer). Then use wget to download all the files, and subtract the corresponding lat/lon by writing a little python script or using SeaDAS pixel extraction function. Make sure the date and time you used to find matched files have no duplicates, otherwise you'll download the same MODIS file multiple times.

Hope this helps,
Guoqing

Post Reply