olivierhagolle / Sentinel-download

Automated download of Sentinel-2 L1C data from ESA (through wget) :http://olivierhagolle.github.io/Sentinel-download

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No files are getting downloaded

GKG1312 opened this issue · comments

          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

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

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