Page 1 of 1

batch extract MODIS spectra without download

Posted: Mon May 16, 2022 10:53 am America/New_York
by eccc_modis
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?


Re: batch extract MODIS spectra without download

Posted: Fri Jul 08, 2022 3:15 pm America/New_York
by OB General Science - guoqingw
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,