Giter Club home page Giter Club logo

Comments (9)

olivierhagolle avatar olivierhagolle commented on August 28, 2024

I tried the following command, and it started downloading some products.
python Sentinel_download.py --latmin 51.75 --latmax 52.25 --lonmin -23.00 --lonmax 23.75 -a apihub.txt -s S1A*GRDH -d 20160508

So sorry, not able to reproduce your issue
Olivier

from sentinel-download.

kedziorm avatar kedziorm commented on August 28, 2024

Dear @olivierhagolle

but as I can see you're not providing -w parameter to save data in different path (in my case -w /home/mateuszk/Testy)

from sentinel-download.

olivierhagolle avatar olivierhagolle commented on August 28, 2024

You may try without -w too.
Olviier

from sentinel-download.

kedziorm avatar kedziorm commented on August 28, 2024

Okay, I checked.
Without -w option, I was able to download files (I use Python 2.7.11+, Ubuntu 16.04 LTS)

Previously, I've tried to download files to the folder on the external hard drive.
This time, I've tried to use -w option providing path to the folder on local partition. It seems that it works properly!

Maybe this is caused by the lack of permission to save?
I noticed that scripts do not verify if there's enough space to save file. If unable to save, script says about "success" and tries to download next file.

I've also noticed that although we provide latitude and longitude, downloaded files are not cropped to that area. Is it correct/is it the way it was designed?

from sentinel-download.

olivierhagolle avatar olivierhagolle commented on August 28, 2024

Dear Kedziorm,
yes, the tool just downloads the products that intersect the box or contain the point. it does not crop the files.

Thanks for the remark about the check of success. I should try to control the file size, but for that, I have to get it before the download. I'll have to search how to do that. There must be an option for it in wget.

Best regards,
Olivier

from sentinel-download.

ACrepin avatar ACrepin commented on August 28, 2024

Dear Olivier,

I'm trying to download sentinel 2 data but it seems that the file "query_results.xml" is not generated.
Would you know where could this issue come from ?
Thank you very much,

Best regards, Amelie

from sentinel-download.

olivierhagolle avatar olivierhagolle commented on August 28, 2024

Dear Amelie,
you should have opened a new issues, as this one is closed, I did not see it. And besides, i was on holidays ;).
I lack information to check, could you please download again the tool (as some changes with made), and provide me the command line you used (opening a new issue).
Cordialement,
Olivier

from sentinel-download.

clz152026 avatar clz152026 commented on August 28, 2024

Dear Olivier,
I'm trying to download sentinel 2 data, however the file "query_results.xml" is empty. The command and result are as follow:

python Sentinel_download.py --lat 43.6 --lon 1.44 -a apihub.txt -o 51 -d 20151226 -s S2

wget --no-check-certificate --user="guest" --password="guest" --output-document=query_results.xml "https://scihub.copernicus.eu/apihub/search?q=footprint:"Intersects(43.600000,1.440000)" filename:S2R051 producttype:S2MSI1C &rows=100"
--2017-06-12 22:43:22-- https://scihub.copernicus.eu/apihub/search?q=footprint:Intersects(43.600000,1.440000)%20filename:S2*R051*%20producttype:S2MSI1C%20&rows=100
Resolving scihub.copernicus.eu (scihub.copernicus.eu)... 131.176.236.28
Connecting to scihub.copernicus.eu (scihub.copernicus.eu)|131.176.236.28|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Basic realm="Sentinels Scientific Data Hub Search"
Reusing existing connection to scihub.copernicus.eu:443.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.
Traceback (most recent call last):
File "Sentinel_download.py", line 280, in
xml=minidom.parse("query_results.xml")
File "C:\CONDA2.7\lib\xml\dom\minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "C:\CONDA2.7\lib\xml\dom\expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "C:\CONDA2.7\lib\xml\dom\expatbuilder.py", line 211, in parseFile
parser.Parse("", True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0

Then I edited apihub.txt to provide credentials to my SciHub account (https://scihub.copernicus.eu/dhus/#/home). However the error still exists.

Can you give me some advice? Thank you.
Best regards,
Liangzhong

from sentinel-download.

olivierhagolle avatar olivierhagolle commented on August 28, 2024

You should introduce your scihub account and password in apihub.txt file.
Best regards,
Olivier

from sentinel-download.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.