rs-python-tutorials
rs-python-tutorials copied to clipboard
Download
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
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.