Hi,
I am trying to search for files available for downloading for few sensors.
I have one working example, for MODISA level 1A:
curl "https://cmr.earthdata.nasa.gov/search/granules.csv?page_size=2000&sort_key=start_date&short_name=MODISA_L1&provider=OB_DAAC&day_night_flag=day&temporal=2020-01-01,2020-03-31"
It works all right, but I cannot figure out how to adapt the command to other sensors, in particular L1A files for SNPP VIIRS and NOAA20 VIIRS. Looks like wild card does not work here, need exact names. I tried guessing and only have found so far one more potentially useful for me working key word: `short_name=MODISA_L2_OC`.
Thank you.
Andrei
How to find out legitimate 'short_name' parameter values for data downloads.
-
- Posts: 9
- Joined: Tue Oct 24, 2023 6:48 am America/New_York
Re: How to find out legitimate 'short_name' parameter values for data downloads.
This will give you a csv containing a "Short Name" column containing the short names you're seeking, I believe:
curl "https://cmr.earthdata.nasa.gov/search/collections.csv?options\[short_name\]\[pattern\]=true&short_name=MODISA_*&provider=OB_DAAC&page_size=100"
For me, that produces a csv with 63 rows of data.
curl "https://cmr.earthdata.nasa.gov/search/collections.csv?options\[short_name\]\[pattern\]=true&short_name=MODISA_*&provider=OB_DAAC&page_size=100"
For me, that produces a csv with 63 rows of data.
-
- Posts: 9
- Joined: Tue Oct 24, 2023 6:48 am America/New_York
Re: How to find out legitimate 'short_name' parameter values for data downloads.
Thank you, very useful!