Page 1 of 1

Does "https://oceandata.sci.gsfc.nasa.gov/api/file_search" work?

Posted: Wed Oct 25, 2017 9:27 pm America/New_York
by jecoerwrs
Hi.

My 1st language is not English. So I want you to understand what I say.

Bulk Download Url  is changed slightly. I don't know when changed.
(before : https://oceandata.sci.gsfc.nasa.gov/search/file_search.cgi )
(now : https://oceandata.sci.gsfc.nasa.gov/api/file_search )
Anyone does it work?
Interactive command, I mean in web site, is working. Site showed nc file list exactly.
But when I used wget, didn't work.
Even I tested example in web site(https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?pid=12520), but doesn't work.
Only showed error  message "No URLs found in -.".
Expaple is [wget -q --post-data="sensor=octs&sdate=1996-11-01&edate=1997-01-01&dtype=L3b&addurl=1&results_as_file=1&search=*DAY_CHL*" -O - https://oceandata.sci.gsfc.nasa.gov/api/file_search |wget -i -].
Anyone help me?

Thanks

Does "https://oceandata.sci.gsfc.nasa.gov/api/file_search" work?

Posted: Thu Oct 26, 2017 8:15 am America/New_York
by gnwiii
The error indicates the search didn't produce any output -- could be just an internet glitch or a problem at NASA.  It could help if you mention the OS and wget versions so someone with the same configuration can try the command.

wget -q --post-data="sensor=octs&sdate=1996-11-01&edate=1997-01-01&dtype=L3b&addurl=1&results_as_file=1&search=*DAY_CHL*" -O - https://oceandata.sci.gsfc.nasa.gov/api/file_search works for me (macOS El Capitan, GNU Wget 1.19.1 built on darwin15.6.0. and also on fedora 26, GNU Wget 1.19.1 built on linux-gnu). 

Try again without the -q to see if there is some more helpful output.