Page 1 of 1

File search method

Posted: Wed Sep 01, 2021 8:52 am America/New_York
by jianke
Hi

I used the following command line to try to retieve the Modis aqua oc data list for the date of Aug 30th, 2021 to Aug 31st, 2021, but it came back nothing. I wonder what I did wrong.

wget -q --post-data="sensor=aqua&sdate=2021-08-30&edate=2021-08-31&dtype=L2&addurl=1&results_as_file=1&search=*LAC_OC*" -O - https://oceandata.sci.gsfc.nasa.gov/api/file_search

Thanks,
Jianke

Re: File search method

Posted: Wed Sep 01, 2021 12:52 pm America/New_York
by OB.DAAC - amscott
Hi Jianke,

Your command is correct and returns the attached. Are you getting an error message? If so, please share it so we can help diagnose your issue.

Re: File search method

Posted: Wed Sep 01, 2021 2:08 pm America/New_York
by jianke
Hi,

Thanks for the response. When I run the command line, there is no error, only comes back nothing. I have attached the screen shot here, please check.

Thanks,
Jianke

Re: File search method

Posted: Wed Sep 01, 2021 2:29 pm America/New_York
by OB.DAAC - SeanBailey
Remove the "-q" option and wget might show you something that will explain why it's not working for you...

Sean

Re: File search method

Posted: Wed Sep 01, 2021 2:55 pm America/New_York
by jianke
Thanks Sean. I removed -q option and got this error message.

[jli@jli ~]$ wget --post-data="sensor=aqua&sdate=2021-08-30&edate=2021-08-31&dt ype=L2&addurl=1&results_as_file=1&search=*LAC_OC*" -O - https://oceandata.sci.gs fc.nasa.gov/api/file_search
--2021-09-01 14:51:55-- https://oceandata.sci.gsfc.nasa.gov/api/file_search
Resolving oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)... failed: Name or service not known.
wget: unable to resolve host address ‘oceandata.sci.gsfc.nasa.gov’

Re: File search method

Posted: Fri Sep 03, 2021 8:52 am America/New_York
by jianke
Great, it works now. I am not sure if it was something on my side or on NASA's side. Thanks for the help, Alicia and Sean.