Dears,
i was using this way before to get all file list data (https://oceandata.sci.gsfc.nasa.gov/api/file_search?search=AQUA_MODIS.2020*.L3m.DAY.CHL.chlor_a.4km.nc&format=json)
now it shows me the first 2 months of the year 2020. how i can get all of the year ?
how to get all file list from the API
-
- Posts: 1
- Joined: Mon Nov 27, 2023 11:37 pm America/New_York
-
- Subject Matter Expert
- Posts: 450
- Joined: Fri Feb 05, 2021 9:17 am America/New_York
- Been thanked: 7 times
Re: how to get all file list from the API
While they work out the json issue, these will give you a list of URLs
and these will get you the checksums:
Code: Select all
wget -q --post-data="results_as_file=1&sensor_id=7&dtid=1043&sdate=2020-01-01 00:00:00&edate=2020-12-31 59:59:59&subType=1&addurl=1&prod_id=chlor_a&resolution_id=4km&period=DAY" -O - https://oceandata.sci.gsfc.nasa.gov/api/file_search
or
curl -d "results_as_file=1&sensor_id=7&dtid=1043&sdate=2020-01-01 00:00:00&edate=2020-12-31 59:59:59&subType=1&addurl=1&prod_id=chlor_a&resolution_id=4km&period=DAY" https://oceandata.sci.gsfc.nasa.gov/api/file_search
Code: Select all
wget -q --post-data="results_as_file=1&sensor_id=7&dtid=1043&sdate=2020-01-01 00:00:00&edate=2020-12-31 59:59:59&subType=1&cksum=1&prod_id=chlor_a&resolution_id=4km&period=DAY" -O - https://oceandata.sci.gsfc.nasa.gov/api/file_search
or
curl -d "results_as_file=1&sensor_id=7&dtid=1043&sdate=2020-01-01 00:00:00&edate=2020-12-31 59:59:59&subType=1&cksum=1&prod_id=chlor_a&resolution_id=4km&period=DAY" https://oceandata.sci.gsfc.nasa.gov/api/file_search