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

Download #2

Open
jaimebayes opened this issue Dec 5, 2020 · 1 comment
Open

Download #2

jaimebayes opened this issue Dec 5, 2020 · 1 comment

Comments

@jaimebayes
Copy link

Hi,

After runnin api.download, nothing happens, just appears this message:

Product 16e95baf-bbcb-43fe-ab67-5fecea2ffde5 is not online. Triggering retrieval from long term archive.
{'Creation Date': datetime.datetime(2019, 6, 5, 21, 55, 17, 343000),
'Ingestion Date': datetime.datetime(2019, 6, 5, 21, 54, 46, 895000),
'Online': False,
'date': datetime.datetime(2019, 6, 5, 10, 0, 39, 24000),
'downloaded_bytes': 0,
'footprint': 'POLYGON((11.354954233772318 42.39470139413761,12.687592758603905 42.42936087235922,12.723033432665233 41.441212166985935,11.410731332148327 41.407726190110715,11.354954233772318 42.39470139413761))',
'id': '16e95baf-bbcb-43fe-ab67-5fecea2ffde5',
'md5': 'ce4fbc92040e79591c7380f7b159b5c3',
'path': './S2B_MSIL2A_20190605T100039_N0212_R122_T33TTG_20190605T143319.zip',
'size': 1055191497,
'title': 'S2B_MSIL2A_20190605T100039_N0212_R122_T33TTG_20190605T143319',
'url': "https://scihub.copernicus.eu/dhus/odata/v1/Products('16e95baf-bbcb-43fe-ab67-5fecea2ffde5')/$value"}

Any suggestion? Thanks in advance, JL

@panamantis
Copy link

panamantis commented Mar 28, 2021

The message says that the sat data is not online -- likely because it's >1 year old. So change the date range at cell: products = api.query(footprint, date = ('20210101', '20210626'), and use the updated "product id". You'll also need to update the name of the expected .zip file.

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