Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows... 'empty' query_results.xml? #30

Open
joemcglinchy opened this issue Jan 23, 2018 · 4 comments
Open

windows... 'empty' query_results.xml? #30

joemcglinchy opened this issue Jan 23, 2018 · 4 comments

Comments

@joemcglinchy
Copy link

hello, I have cloned this repo on both a windows 10 environment and an Ubuntu environment (through Docker). On the windows environment, I have ensured that both wget and aria2 are installed. This is the output of that command (this is Git Bash, but same as CMD) and the contents of the XML file. After running the same command (not specifying --downloader aria2) on the Ubuntu environment, I get results from the search. Why would it not work on windows??

image

<?xml version="1.0" encoding="utf-8"?><feed xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns="http://www.w3.org/2005/Atom">
<title>Sentinels Scientific Data Hub search results for: footprint:Intersects(39.982811,-105.469371) filename:S2* producttype:S2MSI1C </title>
<subtitle>Displaying  results. Request done in 0.001 seconds.</subtitle>
<updated>2018-01-23T22:59:39.517Z</updated>
<author>
<name>Sentinels Scientific Data Hub</name>
</author>
<id>https://scihub.copernicus.eu/apihub/search?q=footprint:Intersects(39.982811,-105.469371) filename:S2* producttype:S2MSI1C </id>
<opensearch:totalResults/>
<opensearch:startIndex>0</opensearch:startIndex>
<opensearch:itemsPerPage>100</opensearch:itemsPerPage>
<opensearch:Query role="request" searchTerms="footprint:Intersects(39.982811,-105.469371) filename:S2* producttype:S2MSI1C " startPage="1"/>
<link rel="self" type="application/atom+xml" href="https://scihub.copernicus.eu/apihub/search?q=footprint:Intersects(39.982811,-105.469371) filename:S2* producttype:S2MSI1C &amp;start=0&amp;rows=100"/>
<link rel="first" type="application/atom+xml" href="https://scihub.copernicus.eu/apihub/search?q=footprint:Intersects(39.982811,-105.469371) filename:S2* producttype:S2MSI1C &amp;start=0&amp;rows=100"/>
<link rel="last" type="application/atom+xml" href="https://scihub.copernicus.eu/apihub/search?q=footprint:Intersects(39.982811,-105.469371) filename:S2* producttype:S2MSI1C &amp;start=NaN&amp;rows=100"/>
<link rel="search" type="application/opensearchdescription+xml" href="opensearch_description.xml"/>
</feed>
@AkhilJPatil
Copy link

Hello @joemcglinchy ,
Have you found the reason why nothing is written to the query_result.xml file.
I am having similar issues with the same file.
Getting below error,
FileNotFoundError: [Errno 2] No such file or directory: 'query_results.xml'

Not able to find the reason why it is not creating the file.
Can you assist with this issue.

Thanks,
Akhil

@joemcglinchy
Copy link
Author

@AkhilJPatil I was never able to get this to work on windows. Since I was able to get a search result using Ubuntu, albeit through Docker, I have gone with that and mounted a folder to the docker container so I can save that search result or any subsequent downloads to my local machine.

Cheers,
Joe

@AkhilJPatil
Copy link

Ah that's bad (for me)...Thanks for the response though. I not able to understand the writing to this xml file. Nonetheless will keep looking else will take up other options.

@joemcglinchy
Copy link
Author

@AkhilJPatil I am now using this python API and it is returning and downloading scenes with no problem on Windows 10.

https://pypi.org/project/sentinelsat/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants