File search method
File search method
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
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
Filters:
-
- Posts: 396
- Joined: Mon Jun 22, 2020 5:24 pm America/New_York
- Has thanked: 8 times
- Been thanked: 8 times
Re: File search method
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.
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 616 times
Re: File search method
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
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 (11.15 KiB) Not viewed yet
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
Re: File search method
Remove the "-q" option and wget might show you something that will explain why it's not working for you...
Sean
Sean
Re: File search method
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’
[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
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.