File search method

Please enter here to ask a question about any NASA Science related topics!
Post Reply
jianke
Posts: 11
Joined: Wed Jan 15, 2014 1:36 pm America/New_York

File search method

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

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

Tags:

OB.DAAC - amscott
User Services
User Services
Posts: 66
Joined: Mon Jun 22, 2020 5:24 pm America/New_York

Re: File search method

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

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.
Attachments
aqua-aug30.pdf
(43.19 KiB) Downloaded 18 times
--
Alicia

jianke
Posts: 11
Joined: Wed Jan 15, 2014 1:36 pm America/New_York

Re: File search method

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

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
Attachments
screen_shot.png
screen_shot.png (11.15 KiB) Not viewed yet

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1169
Joined: Wed Sep 18, 2019 6:15 pm America/New_York

Re: File search method

by OB.DAAC - SeanBailey » Wed Sep 01, 2021 2:29 pm America/New_York

Remove the "-q" option and wget might show you something that will explain why it's not working for you...

Sean

jianke
Posts: 11
Joined: Wed Jan 15, 2014 1:36 pm America/New_York

Re: File search method

by jianke » Wed Sep 01, 2021 2:55 pm America/New_York

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’

jianke
Posts: 11
Joined: Wed Jan 15, 2014 1:36 pm America/New_York

Re: File search method

by jianke » Fri Sep 03, 2021 8:52 am America/New_York

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.

Post Reply