file_search API not working
Posted: Sat Sep 14, 2019 10:49 am America/New_York
Hi there,
the file_search API doesn't seem to be working as it used to, e.g.:
1. wget -q --post-data="sensor=Terra&sdate=2019-09-09&edate=2019-09-09&dtype=L0&addurl=0&results_as_file=1" -O - https://oceandata.sci.gsfc.nasa.gov/api/file_search
should provide all MODIS Terra L0 granules for 2019-09-09. Instead it provides the first two granules for Terra and Aqua plus something else. Setting the end date to 2019-09-10 seems to provide all Terra and Aqua granules plus something else.
2. wget -q --post-data="search=PM1ATTNR.P2019253.1200.003&dtype=anc&addurl=0&results_as_file=1" -O - https://oceandata.sci.gsfc.nasa.gov/api/file_search
does not give any return even though
wget -t 20 -w 3m --no-clobber --no-proxy https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/PM1ATTNR.P2019253.1200.003
downloads the file. So it does exist.
Any thoughts?
Thanks
Stefan
the file_search API doesn't seem to be working as it used to, e.g.:
1. wget -q --post-data="sensor=Terra&sdate=2019-09-09&edate=2019-09-09&dtype=L0&addurl=0&results_as_file=1" -O - https://oceandata.sci.gsfc.nasa.gov/api/file_search
should provide all MODIS Terra L0 granules for 2019-09-09. Instead it provides the first two granules for Terra and Aqua plus something else. Setting the end date to 2019-09-10 seems to provide all Terra and Aqua granules plus something else.
2. wget -q --post-data="search=PM1ATTNR.P2019253.1200.003&dtype=anc&addurl=0&results_as_file=1" -O - https://oceandata.sci.gsfc.nasa.gov/api/file_search
does not give any return even though
wget -t 20 -w 3m --no-clobber --no-proxy https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/PM1ATTNR.P2019253.1200.003
downloads the file. So it does exist.
Any thoughts?
Thanks
Stefan