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

No files are getting downloaded #44

Open
GKG1312 opened this issue Mar 6, 2023 · 2 comments
Open

No files are getting downloaded #44

GKG1312 opened this issue Mar 6, 2023 · 2 comments

Comments

@GKG1312
Copy link

GKG1312 commented Mar 6, 2023

          I have implemented again possibility to make queries with constraints on ingestion date
          python  Sentinel_download.py --lat 43.6 --lon 1.44 -a apihub.txt -o 51 --id 2016-11-01 --if 2016-12-01

Originally posted by @olivierhagolle in #16 (comment)

Hi @olivierhagolle,
I am using the above code for downloading images between specific date ranges, but there are no files getting downloaded, although it is detecting some files in that ranges. Can it be because the images are offline in the Open Access Hub?
Is there any alternate method to download such files?

===============================================
20181218 20150613 20230306
S2A_MSIL2A_20181218T052221_N0211_R062_T43QEU_20181218T074117.SAFE
https://apihub.copernicus.eu/apihub/odata/v1/Products('c4ab8da3-c01f-4a95-b2ec-2f686dd7b85d')/\$value
cloud percentage = 32.89 %
===============================================
wget --no-check-certificate --continue --output-document=./Products/S2A_MSIL2A_20181218T052221_N0211_R062_T43QEU_20181218T074117.SAFE.zip "https://apihub.copernicus.eu/apihub/odata/v1/Products('c4ab8da3-c01f-4a95-b2ec-2f686dd7b85d')/\$value"
--2023-03-06 17:37:05-- https://apihub.copernicus.eu/apihub/odata/v1/Products('c4ab8da3-c01f-4a95-b2ec-2f686dd7b85d')/$value
Resolving apihub.copernicus.eu (apihub.copernicus.eu)... 146.59.215.225
Connecting to apihub.copernicus.eu (apihub.copernicus.eu)|146.59.215.225|:443... connected.
HTTP request sent, awaiting response... 401
Authentication selected: Basic realm="OData service"
Reusing existing connection to apihub.copernicus.eu:443.
HTTP request sent, awaiting response... 202
Length: 0 [text/plain]
Saving to: ‘./Products/S2A_MSIL2A_20181218T052221_N0211_R062_T43QEU_20181218T074117.SAFE.zip’
./Products/S2A_MSIL2A_20181218T052221_N0211_R06 [ <=> ] 0 --.-KB/s in 0s
2023-03-06 17:37:07 (0.00 B/s) - ‘./Products/S2A_MSIL2A_20181218T052221_N0211_R062_T43QEU_20181218T074117.SAFE.zip’ saved [0/0]

Thank you
Girish

@GKG1312
Copy link
Author

GKG1312 commented Mar 23, 2023

Also, the following command is not able to download images that are offline in Copernincus Open Access Hub.
python Sentinel_download.py --lat 16.38 --lon 75.79 -a apihub.txt -d 20220701 -f 20220731 -w ./Products -l L2A -s S2

Please let me know if you know of any get-around for this problem.
Thank you
Girish

@olivierhagolle
Copy link
Owner

olivierhagolle commented Mar 27, 2023

Hi Girish,

We are not anymore maintaining this software, as we use our own facility at CNES, PEPS (which does not provide ESA's L2A). The corresponding software is : https://github.com/olivierhagolle/peps_download
Regarding L2A? we have our own production of level 2A products using the MAJA software, but we do not pproduce the whole world. For more information : https://theia.cnes.fr, and the corresponding tool is https://github.com/olivierhagolle/theia_download

If you want a software that can access most Copernicus servers, you might also try EODAG : https://github.com/CS-SI/eodag

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