Serialize/Deserialize

Hint

You can run this notebook in a live session with Binder.

Serialize/Deserialize#

The EODataAccessGateway class provides methods to save a SearchResult object to a GeoJSON file or to load a GeoJSON file to a SearchResult. These methods come in handy to save the state of a search and restore it later.

The credentials are required in this notebook to download a product from PEPS.

[1]:
import os

os.environ["EODAG__PEPS__AUTH__CREDENTIALS__USERNAME"] = "PLEASE_CHANGE_ME"
os.environ["EODAG__PEPS__AUTH__CREDENTIALS__PASSWORD"] = "PLEASE_CHANGE_ME"
[2]:
from eodag import EODataAccessGateway
from eodag import setup_logging

setup_logging(2)

dag = EODataAccessGateway()
dag.set_preferred_provider("peps")
2024-07-31 11:56:42,553 eodag.config                     [INFO    ] Loading user configuration from: /home/anesson/.config/eodag/eodag.yml
2024-07-31 11:56:42,649 eodag.core                       [INFO    ] Locations configuration loaded from /home/anesson/.config/eodag/locations.yml

Serialize#

The method serialize() allows to save a SearchResult as a GeoJSON file.

[3]:
search_results = dag.search(
    productType="S2_MSI_L1C",
    start="2021-03-01",
    end="2021-03-31",
    geom={"lonmin": 1, "latmin": 43, "lonmax": 2, "latmax": 44},
    items_per_page=2
)
2024-07-31 11:56:43,213 eodag.core                       [INFO    ] Searching product type 'S2_MSI_L1C' on provider: peps
2024-07-31 11:56:43,218 eodag.search.qssearch            [INFO    ] Sending search request: https://peps.cnes.fr/resto/api/collections/S2ST/search.json?startDate=2021-03-01&completionDate=2021-03-31&geometry=POLYGON ((1.0000 43.0000, 1.0000 44.0000, 2.0000 44.0000, 2.0000 43.0000, 1.0000 43.0000))&productType=S2MSI1C&maxRecords=2&page=1
[4]:
search_results
[4]:
SearchResult (2)
0  EOProduct(id=S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834, provider=peps)
EOProduct
provider: 'peps',
product_type: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834',
properties["startTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties["completionTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties: (54){
abstract: None,
instrument: 'MSI',
platform: 'S2ST',
platformSerialIdentifier: 'S2B',
processingLevel: 'LEVEL1C',
keywords: 'MSI,SENTINEL,SENTINEL2,S2,S2A,S2B,L1,L1C,SAFE',
sensorType: 'OPTICAL',
license: 'other',
missionStartDate: '2015-06-23T00:00:00Z',
title: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834',
_id: 'S2_MSI_L1C',
productType: 'S2MSI1C',
uid: '2d85d4c8-34c1-55dc-b43c-0ab0fe4c2b97',
keyword: { 'bce097de57d1ab7': { 'name': 'Europe' , 'normalized': 'europe' , 'type': 'continent' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Europe' } , '936bcbcf5c43fbd': { 'name': 'France' , 'normalized': 'france' , 'type': 'country' , 'parentHash': 'bce097de57d1ab7' , 'value': 92.12 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=France' } , '455ae3d75f982e8': { 'name': 'Languedoc-Roussillon' , 'normalized': 'languedoc-roussillon' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 83.59 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Languedoc-Roussillon' } , '70db2751c3c6c3d': { 'name': 'Aude' , 'normalized': 'aude' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 47.41 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Aude' } , '3655904d8935c83': { 'name': 'Pyrénées-Orientales' , 'normalized': 'pyrenees-orientales' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 34.02 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Pyr%C3%A9n%C3%A9es-Orientales' } , 'fa018f4f7b20706': { 'name': 'Midi-Pyrénées' , 'normalized': 'midi-pyrenees' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 8.47 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Midi-Pyr%C3%A9n%C3%A9es' } , 'b9f5eec8dcb2cb5': { 'name': 'Ariège' , 'normalized': 'ariege' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 8.41 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Ari%C3%A8ge' } , '4562ae7650b1934': { 'name': 'Hérault' , 'normalized': 'herault' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 2.11 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=H%C3%A9rault' } , '638f34fab02f39d': { 'name': 'Haute-Garonne' , 'normalized': 'haute-garonne' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 0.04 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Haute-Garonne' } , 'e95d1eb633b4dd1': { 'name': 'Spain' , 'normalized': 'spain' , 'type': 'country' , 'parentHash': 'bce097de57d1ab7' , 'value': 5.15 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Spain' } , 'a5eef88d9f8ffa2': { 'name': 'Cataluña' , 'normalized': 'cataluna' , 'type': 'region' , 'parentHash': 'e95d1eb633b4dd1' , 'value': 5.31 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Catalu%C3%B1a' } , '9e8d9cf11d4f170': { 'name': 'Gerona' , 'normalized': 'gerona' , 'type': 'state' , 'parentHash': 'a5eef88d9f8ffa2' , 'value': 5 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Gerona' } , 'da8f2bebc0fe455': { 'name': 'Lérida' , 'normalized': 'lerida' , 'type': 'state' , 'parentHash': 'a5eef88d9f8ffa2' , 'value': 0.14 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=L%C3%A9rida' } , 'a0e4a10aa754ab4': { 'name': 'Northern' , 'type': 'location' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Northern' } , '8e973c5726ef929': { 'name': 'Coastal' , 'type': 'location' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Coastal' } , 'b4de51064131332': { 'name': 'Spring' , 'type': 'season' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Spring' } , '45038f3c2322ea3': { 'name': 'S2ST' , 'type': 'collection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2ST' } , '6219554ecf5905c': { 'name': 'S2MSI1C' , 'type': 'productType' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2MSI1C' } , '44b15c0a6e62129': { 'name': 'LEVEL1C' , 'type': 'processingLevel' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=LEVEL1C' } , '56bf819406cae6b': { 'name': 's2B' , 'type': 'platform' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=s2B' } , 'f841767ba5c92d4': { 'name': 'msi' , 'type': 'instrument' , 'parentHash': '56bf819406cae6b' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=msi' } , 'aca78422271631a': { 'name': 'INS-NOBS' , 'type': 'sensorMode' , 'parentHash': 'f841767ba5c92d4' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=INS-NOBS' } , 'e8f96b7c46c0d54': { 'name': 'Descending' , 'type': 'orbitDirection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Descending' } , 'a56dfb1210d361d': { 'name': 'Nominal' , 'type': 'realtime' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Nominal' } , 'd8c5d929951e445': { 'name': '2021' , 'type': 'year' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=2021' } , '77d492efa5681b6': { 'name': 'March' , 'type': 'month' , 'parentHash': 'd8c5d929951e445' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=March' } , '2255d84df307b80': { 'name': '28' , 'type': 'day' , 'parentHash': '77d492efa5681b6' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=28' } },
resolution: None,
organisationName: 'ESA',
publicationDate: '2023-08-19T00:30:36.297Z',
parentIdentifier: 'urn:ogc:def:EOP:ESA::SENTINEL-2:',
orbitNumber: 21198,
orbitDirection: 'descending',
cloudCover: 0,
snowCover: None,
creationDate: '2023-07-11T05:28:38.091Z',
modificationDate: '2023-08-19T00:30:36.297Z',
sensorMode: 'INS-NOBS',
startTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
completionTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
id: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834',
quicklook: 'https://peps.cnes.fr/quicklook/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834_quicklook.jpg',
downloadLink: 'https://peps.cnes.fr/resto/collections/S2ST/2d85d4c8-34c1-55dc-b43c-0ab0fe4c2b97/download',
tileIdentifier: '31TDH',
storageStatus: 'ONLINE',
thumbnail: None,
resourceSize: 857733600,
resourceChecksum: '69a48c370aaba228967a029ee9b073df',
visible: 1,
newVersion: None,
isNrt: 0,
realtime: 'Nominal',
relativeOrbitNumber: 8,
useDatalake: 1,
bucket: 'sentinel2-l1c',
prefix: '31/T/DH/2021/03/28',
s2TakeId: 'GS2B_20210328T103629_021198_N05.00',
bareSoil: None,
highProbaClouds: None,
mediumProbaClouds: None,
lowProbaClouds: None,
snowIce: None,
vegetation: None,
water: None,
isRefined: 1,
nrtResource: '/data/NRT/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834.zip',
storage: { 'mode': 'tier2' },
}
assets: (0)
geometry
1  EOProduct(id=S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834, provider=peps)
EOProduct
provider: 'peps',
product_type: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834',
properties["startTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties["completionTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties: (54){
abstract: None,
instrument: 'MSI',
platform: 'S2ST',
platformSerialIdentifier: 'S2B',
processingLevel: 'LEVEL1C',
keywords: 'MSI,SENTINEL,SENTINEL2,S2,S2A,S2B,L1,L1C,SAFE',
sensorType: 'OPTICAL',
license: 'other',
missionStartDate: '2015-06-23T00:00:00Z',
title: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834',
_id: 'S2_MSI_L1C',
productType: 'S2MSI1C',
uid: '8ac5e7cb-ed17-5867-a98a-b2ac79f28856',
keyword: { 'bce097de57d1ab7': { 'name': 'Europe' , 'normalized': 'europe' , 'type': 'continent' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Europe' } , '936bcbcf5c43fbd': { 'name': 'France' , 'normalized': 'france' , 'type': 'country' , 'parentHash': 'bce097de57d1ab7' , 'value': 99.99 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=France' } , 'fa018f4f7b20706': { 'name': 'Midi-Pyrénées' , 'normalized': 'midi-pyrenees' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 91.74 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Midi-Pyr%C3%A9n%C3%A9es' } , '638f34fab02f39d': { 'name': 'Haute-Garonne' , 'normalized': 'haute-garonne' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 45.62 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Haute-Garonne' } , 'e966218f208fcca': { 'name': 'Tarn' , 'normalized': 'tarn' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 40.7 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Tarn' } , '455ae3d75f982e8': { 'name': 'Languedoc-Roussillon' , 'normalized': 'languedoc-roussillon' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 8.33 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Languedoc-Roussillon' } , '70db2751c3c6c3d': { 'name': 'Aude' , 'normalized': 'aude' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 8.33 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Aude' } , 'c6319beaa1b6cdd': { 'name': 'Tarn-et-Garonne' , 'normalized': 'tarn-et-garonne' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 3.91 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Tarn-et-Garonne' } , 'b9f5eec8dcb2cb5': { 'name': 'Ariège' , 'normalized': 'ariege' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 1.41 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Ari%C3%A8ge' } , 'a0e4a10aa754ab4': { 'name': 'Northern' , 'type': 'location' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Northern' } , 'b4de51064131332': { 'name': 'Spring' , 'type': 'season' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Spring' } , '45038f3c2322ea3': { 'name': 'S2ST' , 'type': 'collection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2ST' } , '6219554ecf5905c': { 'name': 'S2MSI1C' , 'type': 'productType' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2MSI1C' } , '44b15c0a6e62129': { 'name': 'LEVEL1C' , 'type': 'processingLevel' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=LEVEL1C' } , '56bf819406cae6b': { 'name': 's2B' , 'type': 'platform' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=s2B' } , 'f841767ba5c92d4': { 'name': 'msi' , 'type': 'instrument' , 'parentHash': '56bf819406cae6b' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=msi' } , 'aca78422271631a': { 'name': 'INS-NOBS' , 'type': 'sensorMode' , 'parentHash': 'f841767ba5c92d4' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=INS-NOBS' } , 'e8f96b7c46c0d54': { 'name': 'Descending' , 'type': 'orbitDirection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Descending' } , 'a56dfb1210d361d': { 'name': 'Nominal' , 'type': 'realtime' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Nominal' } , 'd8c5d929951e445': { 'name': '2021' , 'type': 'year' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=2021' } , '77d492efa5681b6': { 'name': 'March' , 'type': 'month' , 'parentHash': 'd8c5d929951e445' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=March' } , '2255d84df307b80': { 'name': '28' , 'type': 'day' , 'parentHash': '77d492efa5681b6' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=28' } },
resolution: None,
organisationName: 'ESA',
publicationDate: '2023-08-19T00:19:01.810Z',
parentIdentifier: 'urn:ogc:def:EOP:ESA::SENTINEL-2:',
orbitNumber: 21198,
orbitDirection: 'descending',
cloudCover: 0.332726867187601,
snowCover: None,
creationDate: '2023-07-11T04:58:24.885Z',
modificationDate: '2023-08-19T00:19:01.810Z',
sensorMode: 'INS-NOBS',
startTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
completionTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
id: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834',
quicklook: 'https://peps.cnes.fr/quicklook/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834_quicklook.jpg',
downloadLink: 'https://peps.cnes.fr/resto/collections/S2ST/8ac5e7cb-ed17-5867-a98a-b2ac79f28856/download',
tileIdentifier: '31TCJ',
storageStatus: 'ONLINE',
thumbnail: None,
resourceSize: 170212251,
resourceChecksum: 'c3ff135791a789140a7b22b01c7128a2',
visible: 1,
newVersion: None,
isNrt: 0,
realtime: 'Nominal',
relativeOrbitNumber: 8,
useDatalake: 1,
bucket: 'sentinel2-l1c',
prefix: '31/T/CJ/2021/03/28',
s2TakeId: 'GS2B_20210328T103629_021198_N05.00',
bareSoil: None,
highProbaClouds: None,
mediumProbaClouds: None,
lowProbaClouds: None,
snowIce: None,
vegetation: None,
water: None,
isRefined: 1,
nrtResource: '/data/NRT/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834.zip',
storage: { 'mode': 'tier2' },
}
assets: (0)
geometry

A folder is created to save the output of this notebook.

[5]:
workspace = "eodag_workspace_serialize_deserialize"
if not os.path.isdir(workspace):
    os.mkdir(workspace)
[6]:
output_file = os.path.join(workspace, "search_results.geojson")

dag.serialize(
    search_results,
    filename=output_file
)
[6]:
'eodag_workspace_serialize_deserialize/search_results.geojson'

Deserialize#

There are two methods offered by EODataAccessGateway to load a search result saved as a GeoJSON:

[7]:
deserialized_search_results = dag.deserialize(output_file)
deserialized_search_results
[7]:
SearchResult (2)
0  EOProduct(id=S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834, provider=peps)
EOProduct
provider: 'peps',
product_type: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834',
properties["startTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties["completionTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties: (57){
eodag_product_type: 'S2_MSI_L1C',
eodag_provider: 'peps',
eodag_search_intersection: { 'type': 'Polygon' , 'coordinates': [[[1.765694 , 43.346195 ] , [2.0 , 43.347336 ] , [2.0 , 43.0 ] , [1.772535 , 43.0 ] , [1.765694 , 43.346195 ] ] ] },
abstract: None,
instrument: 'MSI',
platform: 'S2ST',
platformSerialIdentifier: 'S2B',
processingLevel: 'LEVEL1C',
keywords: 'MSI,SENTINEL,SENTINEL2,S2,S2A,S2B,L1,L1C,SAFE',
sensorType: 'OPTICAL',
license: 'other',
missionStartDate: '2015-06-23T00:00:00Z',
title: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834',
_id: 'S2_MSI_L1C',
productType: 'S2MSI1C',
uid: '2d85d4c8-34c1-55dc-b43c-0ab0fe4c2b97',
keyword: { 'bce097de57d1ab7': { 'name': 'Europe' , 'normalized': 'europe' , 'type': 'continent' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Europe' } , '936bcbcf5c43fbd': { 'name': 'France' , 'normalized': 'france' , 'type': 'country' , 'parentHash': 'bce097de57d1ab7' , 'value': 92.12 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=France' } , '455ae3d75f982e8': { 'name': 'Languedoc-Roussillon' , 'normalized': 'languedoc-roussillon' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 83.59 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Languedoc-Roussillon' } , '70db2751c3c6c3d': { 'name': 'Aude' , 'normalized': 'aude' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 47.41 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Aude' } , '3655904d8935c83': { 'name': 'Pyrénées-Orientales' , 'normalized': 'pyrenees-orientales' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 34.02 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Pyr%C3%A9n%C3%A9es-Orientales' } , 'fa018f4f7b20706': { 'name': 'Midi-Pyrénées' , 'normalized': 'midi-pyrenees' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 8.47 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Midi-Pyr%C3%A9n%C3%A9es' } , 'b9f5eec8dcb2cb5': { 'name': 'Ariège' , 'normalized': 'ariege' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 8.41 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Ari%C3%A8ge' } , '4562ae7650b1934': { 'name': 'Hérault' , 'normalized': 'herault' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 2.11 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=H%C3%A9rault' } , '638f34fab02f39d': { 'name': 'Haute-Garonne' , 'normalized': 'haute-garonne' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 0.04 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Haute-Garonne' } , 'e95d1eb633b4dd1': { 'name': 'Spain' , 'normalized': 'spain' , 'type': 'country' , 'parentHash': 'bce097de57d1ab7' , 'value': 5.15 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Spain' } , 'a5eef88d9f8ffa2': { 'name': 'Cataluña' , 'normalized': 'cataluna' , 'type': 'region' , 'parentHash': 'e95d1eb633b4dd1' , 'value': 5.31 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Catalu%C3%B1a' } , '9e8d9cf11d4f170': { 'name': 'Gerona' , 'normalized': 'gerona' , 'type': 'state' , 'parentHash': 'a5eef88d9f8ffa2' , 'value': 5 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Gerona' } , 'da8f2bebc0fe455': { 'name': 'Lérida' , 'normalized': 'lerida' , 'type': 'state' , 'parentHash': 'a5eef88d9f8ffa2' , 'value': 0.14 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=L%C3%A9rida' } , 'a0e4a10aa754ab4': { 'name': 'Northern' , 'type': 'location' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Northern' } , '8e973c5726ef929': { 'name': 'Coastal' , 'type': 'location' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Coastal' } , 'b4de51064131332': { 'name': 'Spring' , 'type': 'season' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Spring' } , '45038f3c2322ea3': { 'name': 'S2ST' , 'type': 'collection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2ST' } , '6219554ecf5905c': { 'name': 'S2MSI1C' , 'type': 'productType' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2MSI1C' } , '44b15c0a6e62129': { 'name': 'LEVEL1C' , 'type': 'processingLevel' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=LEVEL1C' } , '56bf819406cae6b': { 'name': 's2B' , 'type': 'platform' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=s2B' } , 'f841767ba5c92d4': { 'name': 'msi' , 'type': 'instrument' , 'parentHash': '56bf819406cae6b' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=msi' } , 'aca78422271631a': { 'name': 'INS-NOBS' , 'type': 'sensorMode' , 'parentHash': 'f841767ba5c92d4' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=INS-NOBS' } , 'e8f96b7c46c0d54': { 'name': 'Descending' , 'type': 'orbitDirection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Descending' } , 'a56dfb1210d361d': { 'name': 'Nominal' , 'type': 'realtime' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Nominal' } , 'd8c5d929951e445': { 'name': '2021' , 'type': 'year' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=2021' } , '77d492efa5681b6': { 'name': 'March' , 'type': 'month' , 'parentHash': 'd8c5d929951e445' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=March' } , '2255d84df307b80': { 'name': '28' , 'type': 'day' , 'parentHash': '77d492efa5681b6' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=28' } },
resolution: None,
organisationName: 'ESA',
publicationDate: '2023-08-19T00:30:36.297Z',
parentIdentifier: 'urn:ogc:def:EOP:ESA::SENTINEL-2:',
orbitNumber: 21198,
orbitDirection: 'descending',
cloudCover: 0,
snowCover: None,
creationDate: '2023-07-11T05:28:38.091Z',
modificationDate: '2023-08-19T00:30:36.297Z',
sensorMode: 'INS-NOBS',
startTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
completionTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
quicklook: 'https://peps.cnes.fr/quicklook/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834_quicklook.jpg',
downloadLink: 'https://peps.cnes.fr/resto/collections/S2ST/2d85d4c8-34c1-55dc-b43c-0ab0fe4c2b97/download',
tileIdentifier: '31TDH',
storageStatus: 'ONLINE',
thumbnail: None,
resourceSize: 857733600,
resourceChecksum: '69a48c370aaba228967a029ee9b073df',
visible: 1,
newVersion: None,
isNrt: 0,
realtime: 'Nominal',
relativeOrbitNumber: 8,
useDatalake: 1,
bucket: 'sentinel2-l1c',
prefix: '31/T/DH/2021/03/28',
s2TakeId: 'GS2B_20210328T103629_021198_N05.00',
bareSoil: None,
highProbaClouds: None,
mediumProbaClouds: None,
lowProbaClouds: None,
snowIce: None,
vegetation: None,
water: None,
isRefined: 1,
nrtResource: '/data/NRT/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834.zip',
storage: { 'mode': 'tier2' },
id: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834',
}
assets: (0)
geometry
1  EOProduct(id=S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834, provider=peps)
EOProduct
provider: 'peps',
product_type: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834',
properties["startTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties["completionTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties: (57){
eodag_product_type: 'S2_MSI_L1C',
eodag_provider: 'peps',
eodag_search_intersection: { 'type': 'Polygon' , 'coordinates': [[[1.888683 , 43.259392 ] , [1.489717 , 43.253156 ] , [1.521389 , 43.350609 ] , [1.569288 , 43.497595 ] , [1.617546 , 43.644509 ] , [1.665681 , 43.791439 ] , [1.714352 , 43.938173 ] , [1.734649 , 44.0 ] , [1.874862 , 44.0 ] , [1.888683 , 43.259392 ] ] ] },
abstract: None,
instrument: 'MSI',
platform: 'S2ST',
platformSerialIdentifier: 'S2B',
processingLevel: 'LEVEL1C',
keywords: 'MSI,SENTINEL,SENTINEL2,S2,S2A,S2B,L1,L1C,SAFE',
sensorType: 'OPTICAL',
license: 'other',
missionStartDate: '2015-06-23T00:00:00Z',
title: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834',
_id: 'S2_MSI_L1C',
productType: 'S2MSI1C',
uid: '8ac5e7cb-ed17-5867-a98a-b2ac79f28856',
keyword: { 'bce097de57d1ab7': { 'name': 'Europe' , 'normalized': 'europe' , 'type': 'continent' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Europe' } , '936bcbcf5c43fbd': { 'name': 'France' , 'normalized': 'france' , 'type': 'country' , 'parentHash': 'bce097de57d1ab7' , 'value': 99.99 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=France' } , 'fa018f4f7b20706': { 'name': 'Midi-Pyrénées' , 'normalized': 'midi-pyrenees' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 91.74 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Midi-Pyr%C3%A9n%C3%A9es' } , '638f34fab02f39d': { 'name': 'Haute-Garonne' , 'normalized': 'haute-garonne' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 45.62 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Haute-Garonne' } , 'e966218f208fcca': { 'name': 'Tarn' , 'normalized': 'tarn' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 40.7 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Tarn' } , '455ae3d75f982e8': { 'name': 'Languedoc-Roussillon' , 'normalized': 'languedoc-roussillon' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 8.33 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Languedoc-Roussillon' } , '70db2751c3c6c3d': { 'name': 'Aude' , 'normalized': 'aude' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 8.33 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Aude' } , 'c6319beaa1b6cdd': { 'name': 'Tarn-et-Garonne' , 'normalized': 'tarn-et-garonne' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 3.91 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Tarn-et-Garonne' } , 'b9f5eec8dcb2cb5': { 'name': 'Ariège' , 'normalized': 'ariege' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 1.41 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Ari%C3%A8ge' } , 'a0e4a10aa754ab4': { 'name': 'Northern' , 'type': 'location' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Northern' } , 'b4de51064131332': { 'name': 'Spring' , 'type': 'season' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Spring' } , '45038f3c2322ea3': { 'name': 'S2ST' , 'type': 'collection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2ST' } , '6219554ecf5905c': { 'name': 'S2MSI1C' , 'type': 'productType' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2MSI1C' } , '44b15c0a6e62129': { 'name': 'LEVEL1C' , 'type': 'processingLevel' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=LEVEL1C' } , '56bf819406cae6b': { 'name': 's2B' , 'type': 'platform' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=s2B' } , 'f841767ba5c92d4': { 'name': 'msi' , 'type': 'instrument' , 'parentHash': '56bf819406cae6b' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=msi' } , 'aca78422271631a': { 'name': 'INS-NOBS' , 'type': 'sensorMode' , 'parentHash': 'f841767ba5c92d4' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=INS-NOBS' } , 'e8f96b7c46c0d54': { 'name': 'Descending' , 'type': 'orbitDirection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Descending' } , 'a56dfb1210d361d': { 'name': 'Nominal' , 'type': 'realtime' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Nominal' } , 'd8c5d929951e445': { 'name': '2021' , 'type': 'year' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=2021' } , '77d492efa5681b6': { 'name': 'March' , 'type': 'month' , 'parentHash': 'd8c5d929951e445' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=March' } , '2255d84df307b80': { 'name': '28' , 'type': 'day' , 'parentHash': '77d492efa5681b6' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=28' } },
resolution: None,
organisationName: 'ESA',
publicationDate: '2023-08-19T00:19:01.810Z',
parentIdentifier: 'urn:ogc:def:EOP:ESA::SENTINEL-2:',
orbitNumber: 21198,
orbitDirection: 'descending',
cloudCover: 0.332726867187601,
snowCover: None,
creationDate: '2023-07-11T04:58:24.885Z',
modificationDate: '2023-08-19T00:19:01.810Z',
sensorMode: 'INS-NOBS',
startTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
completionTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
quicklook: 'https://peps.cnes.fr/quicklook/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834_quicklook.jpg',
downloadLink: 'https://peps.cnes.fr/resto/collections/S2ST/8ac5e7cb-ed17-5867-a98a-b2ac79f28856/download',
tileIdentifier: '31TCJ',
storageStatus: 'ONLINE',
thumbnail: None,
resourceSize: 170212251,
resourceChecksum: 'c3ff135791a789140a7b22b01c7128a2',
visible: 1,
newVersion: None,
isNrt: 0,
realtime: 'Nominal',
relativeOrbitNumber: 8,
useDatalake: 1,
bucket: 'sentinel2-l1c',
prefix: '31/T/CJ/2021/03/28',
s2TakeId: 'GS2B_20210328T103629_021198_N05.00',
bareSoil: None,
highProbaClouds: None,
mediumProbaClouds: None,
lowProbaClouds: None,
snowIce: None,
vegetation: None,
water: None,
isRefined: 1,
nrtResource: '/data/NRT/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834.zip',
storage: { 'mode': 'tier2' },
id: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834',
}
assets: (0)
geometry
[8]:
deserialized_search_results[0].download()
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[8], line 1
----> 1 deserialized_search_results[0].download()

File ~/workspace/EODAG/dev/eodag/eodag/api/product/_product.py:313, in EOProduct.download(self, progress_callback, wait, timeout, **kwargs)
    288 """Download the EO product using the provided download plugin and the
    289 authenticator if necessary.
    290
   (...)
    310 :raises: :class:`RuntimeError`
    311 """
    312 if self.downloader is None:
--> 313     raise RuntimeError(
    314         "EO product is unable to download itself due to lacking of a "
    315         "download plugin"
    316     )
    318 auth = (
    319     self.downloader_auth.authenticate()
    320     if self.downloader_auth is not None
    321     else self.downloader_auth
    322 )
    324 progress_callback, close_progress_callback = self._init_progress_bar(
    325     progress_callback
    326 )

RuntimeError: EO product is unable to download itself due to lacking of a download plugin

Trying to download a product from a SearchResult that was loaded with serialize() since it doesn’t try to configure each product so that it can be downloaded.

[9]:
deserialized_and_registered = dag.deserialize_and_register(output_file)
deserialized_and_registered
[9]:
SearchResult (2)
0  EOProduct(id=S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834, provider=peps)
EOProduct
provider: 'peps',
product_type: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834',
properties["startTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties["completionTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties: (57){
eodag_product_type: 'S2_MSI_L1C',
eodag_provider: 'peps',
eodag_search_intersection: { 'type': 'Polygon' , 'coordinates': [[[1.765694 , 43.346195 ] , [2.0 , 43.347336 ] , [2.0 , 43.0 ] , [1.772535 , 43.0 ] , [1.765694 , 43.346195 ] ] ] },
abstract: None,
instrument: 'MSI',
platform: 'S2ST',
platformSerialIdentifier: 'S2B',
processingLevel: 'LEVEL1C',
keywords: 'MSI,SENTINEL,SENTINEL2,S2,S2A,S2B,L1,L1C,SAFE',
sensorType: 'OPTICAL',
license: 'other',
missionStartDate: '2015-06-23T00:00:00Z',
title: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834',
_id: 'S2_MSI_L1C',
productType: 'S2MSI1C',
uid: '2d85d4c8-34c1-55dc-b43c-0ab0fe4c2b97',
keyword: { 'bce097de57d1ab7': { 'name': 'Europe' , 'normalized': 'europe' , 'type': 'continent' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Europe' } , '936bcbcf5c43fbd': { 'name': 'France' , 'normalized': 'france' , 'type': 'country' , 'parentHash': 'bce097de57d1ab7' , 'value': 92.12 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=France' } , '455ae3d75f982e8': { 'name': 'Languedoc-Roussillon' , 'normalized': 'languedoc-roussillon' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 83.59 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Languedoc-Roussillon' } , '70db2751c3c6c3d': { 'name': 'Aude' , 'normalized': 'aude' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 47.41 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Aude' } , '3655904d8935c83': { 'name': 'Pyrénées-Orientales' , 'normalized': 'pyrenees-orientales' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 34.02 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Pyr%C3%A9n%C3%A9es-Orientales' } , 'fa018f4f7b20706': { 'name': 'Midi-Pyrénées' , 'normalized': 'midi-pyrenees' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 8.47 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Midi-Pyr%C3%A9n%C3%A9es' } , 'b9f5eec8dcb2cb5': { 'name': 'Ariège' , 'normalized': 'ariege' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 8.41 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Ari%C3%A8ge' } , '4562ae7650b1934': { 'name': 'Hérault' , 'normalized': 'herault' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 2.11 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=H%C3%A9rault' } , '638f34fab02f39d': { 'name': 'Haute-Garonne' , 'normalized': 'haute-garonne' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 0.04 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Haute-Garonne' } , 'e95d1eb633b4dd1': { 'name': 'Spain' , 'normalized': 'spain' , 'type': 'country' , 'parentHash': 'bce097de57d1ab7' , 'value': 5.15 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Spain' } , 'a5eef88d9f8ffa2': { 'name': 'Cataluña' , 'normalized': 'cataluna' , 'type': 'region' , 'parentHash': 'e95d1eb633b4dd1' , 'value': 5.31 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Catalu%C3%B1a' } , '9e8d9cf11d4f170': { 'name': 'Gerona' , 'normalized': 'gerona' , 'type': 'state' , 'parentHash': 'a5eef88d9f8ffa2' , 'value': 5 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Gerona' } , 'da8f2bebc0fe455': { 'name': 'Lérida' , 'normalized': 'lerida' , 'type': 'state' , 'parentHash': 'a5eef88d9f8ffa2' , 'value': 0.14 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=L%C3%A9rida' } , 'a0e4a10aa754ab4': { 'name': 'Northern' , 'type': 'location' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Northern' } , '8e973c5726ef929': { 'name': 'Coastal' , 'type': 'location' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Coastal' } , 'b4de51064131332': { 'name': 'Spring' , 'type': 'season' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Spring' } , '45038f3c2322ea3': { 'name': 'S2ST' , 'type': 'collection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2ST' } , '6219554ecf5905c': { 'name': 'S2MSI1C' , 'type': 'productType' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2MSI1C' } , '44b15c0a6e62129': { 'name': 'LEVEL1C' , 'type': 'processingLevel' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=LEVEL1C' } , '56bf819406cae6b': { 'name': 's2B' , 'type': 'platform' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=s2B' } , 'f841767ba5c92d4': { 'name': 'msi' , 'type': 'instrument' , 'parentHash': '56bf819406cae6b' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=msi' } , 'aca78422271631a': { 'name': 'INS-NOBS' , 'type': 'sensorMode' , 'parentHash': 'f841767ba5c92d4' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=INS-NOBS' } , 'e8f96b7c46c0d54': { 'name': 'Descending' , 'type': 'orbitDirection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Descending' } , 'a56dfb1210d361d': { 'name': 'Nominal' , 'type': 'realtime' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Nominal' } , 'd8c5d929951e445': { 'name': '2021' , 'type': 'year' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=2021' } , '77d492efa5681b6': { 'name': 'March' , 'type': 'month' , 'parentHash': 'd8c5d929951e445' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=March' } , '2255d84df307b80': { 'name': '28' , 'type': 'day' , 'parentHash': '77d492efa5681b6' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=28' } },
resolution: None,
organisationName: 'ESA',
publicationDate: '2023-08-19T00:30:36.297Z',
parentIdentifier: 'urn:ogc:def:EOP:ESA::SENTINEL-2:',
orbitNumber: 21198,
orbitDirection: 'descending',
cloudCover: 0,
snowCover: None,
creationDate: '2023-07-11T05:28:38.091Z',
modificationDate: '2023-08-19T00:30:36.297Z',
sensorMode: 'INS-NOBS',
startTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
completionTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
quicklook: 'https://peps.cnes.fr/quicklook/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834_quicklook.jpg',
downloadLink: 'https://peps.cnes.fr/resto/collections/S2ST/2d85d4c8-34c1-55dc-b43c-0ab0fe4c2b97/download',
tileIdentifier: '31TDH',
storageStatus: 'ONLINE',
thumbnail: None,
resourceSize: 857733600,
resourceChecksum: '69a48c370aaba228967a029ee9b073df',
visible: 1,
newVersion: None,
isNrt: 0,
realtime: 'Nominal',
relativeOrbitNumber: 8,
useDatalake: 1,
bucket: 'sentinel2-l1c',
prefix: '31/T/DH/2021/03/28',
s2TakeId: 'GS2B_20210328T103629_021198_N05.00',
bareSoil: None,
highProbaClouds: None,
mediumProbaClouds: None,
lowProbaClouds: None,
snowIce: None,
vegetation: None,
water: None,
isRefined: 1,
nrtResource: '/data/NRT/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834.zip',
storage: { 'mode': 'tier2' },
id: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834',
}
assets: (0)
geometry
1  EOProduct(id=S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834, provider=peps)
EOProduct
provider: 'peps',
product_type: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834',
properties["startTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties["completionTimeFromAscendingNode"]: '2021-03-28T10:36:29.024Z',
properties: (57){
eodag_product_type: 'S2_MSI_L1C',
eodag_provider: 'peps',
eodag_search_intersection: { 'type': 'Polygon' , 'coordinates': [[[1.888683 , 43.259392 ] , [1.489717 , 43.253156 ] , [1.521389 , 43.350609 ] , [1.569288 , 43.497595 ] , [1.617546 , 43.644509 ] , [1.665681 , 43.791439 ] , [1.714352 , 43.938173 ] , [1.734649 , 44.0 ] , [1.874862 , 44.0 ] , [1.888683 , 43.259392 ] ] ] },
abstract: None,
instrument: 'MSI',
platform: 'S2ST',
platformSerialIdentifier: 'S2B',
processingLevel: 'LEVEL1C',
keywords: 'MSI,SENTINEL,SENTINEL2,S2,S2A,S2B,L1,L1C,SAFE',
sensorType: 'OPTICAL',
license: 'other',
missionStartDate: '2015-06-23T00:00:00Z',
title: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834',
_id: 'S2_MSI_L1C',
productType: 'S2MSI1C',
uid: '8ac5e7cb-ed17-5867-a98a-b2ac79f28856',
keyword: { 'bce097de57d1ab7': { 'name': 'Europe' , 'normalized': 'europe' , 'type': 'continent' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Europe' } , '936bcbcf5c43fbd': { 'name': 'France' , 'normalized': 'france' , 'type': 'country' , 'parentHash': 'bce097de57d1ab7' , 'value': 99.99 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=France' } , 'fa018f4f7b20706': { 'name': 'Midi-Pyrénées' , 'normalized': 'midi-pyrenees' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 91.74 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Midi-Pyr%C3%A9n%C3%A9es' } , '638f34fab02f39d': { 'name': 'Haute-Garonne' , 'normalized': 'haute-garonne' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 45.62 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Haute-Garonne' } , 'e966218f208fcca': { 'name': 'Tarn' , 'normalized': 'tarn' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 40.7 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Tarn' } , '455ae3d75f982e8': { 'name': 'Languedoc-Roussillon' , 'normalized': 'languedoc-roussillon' , 'type': 'region' , 'parentHash': '936bcbcf5c43fbd' , 'value': 8.33 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Languedoc-Roussillon' } , '70db2751c3c6c3d': { 'name': 'Aude' , 'normalized': 'aude' , 'type': 'state' , 'parentHash': '455ae3d75f982e8' , 'value': 8.33 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Aude' } , 'c6319beaa1b6cdd': { 'name': 'Tarn-et-Garonne' , 'normalized': 'tarn-et-garonne' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 3.91 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Tarn-et-Garonne' } , 'b9f5eec8dcb2cb5': { 'name': 'Ariège' , 'normalized': 'ariege' , 'type': 'state' , 'parentHash': 'fa018f4f7b20706' , 'value': 1.41 , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Ari%C3%A8ge' } , 'a0e4a10aa754ab4': { 'name': 'Northern' , 'type': 'location' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Northern' } , 'b4de51064131332': { 'name': 'Spring' , 'type': 'season' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Spring' } , '45038f3c2322ea3': { 'name': 'S2ST' , 'type': 'collection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2ST' } , '6219554ecf5905c': { 'name': 'S2MSI1C' , 'type': 'productType' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=S2MSI1C' } , '44b15c0a6e62129': { 'name': 'LEVEL1C' , 'type': 'processingLevel' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=LEVEL1C' } , '56bf819406cae6b': { 'name': 's2B' , 'type': 'platform' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=s2B' } , 'f841767ba5c92d4': { 'name': 'msi' , 'type': 'instrument' , 'parentHash': '56bf819406cae6b' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=msi' } , 'aca78422271631a': { 'name': 'INS-NOBS' , 'type': 'sensorMode' , 'parentHash': 'f841767ba5c92d4' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=INS-NOBS' } , 'e8f96b7c46c0d54': { 'name': 'Descending' , 'type': 'orbitDirection' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Descending' } , 'a56dfb1210d361d': { 'name': 'Nominal' , 'type': 'realtime' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=Nominal' } , 'd8c5d929951e445': { 'name': '2021' , 'type': 'year' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=2021' } , '77d492efa5681b6': { 'name': 'March' , 'type': 'month' , 'parentHash': 'd8c5d929951e445' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=March' } , '2255d84df307b80': { 'name': '28' , 'type': 'day' , 'parentHash': '77d492efa5681b6' , 'href': 'https://peps.cnes.fr/resto/api/collections/S2ST/search.json?&lang=en&q=28' } },
resolution: None,
organisationName: 'ESA',
publicationDate: '2023-08-19T00:19:01.810Z',
parentIdentifier: 'urn:ogc:def:EOP:ESA::SENTINEL-2:',
orbitNumber: 21198,
orbitDirection: 'descending',
cloudCover: 0.332726867187601,
snowCover: None,
creationDate: '2023-07-11T04:58:24.885Z',
modificationDate: '2023-08-19T00:19:01.810Z',
sensorMode: 'INS-NOBS',
startTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
completionTimeFromAscendingNode: '2021-03-28T10:36:29.024Z',
quicklook: 'https://peps.cnes.fr/quicklook/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834_quicklook.jpg',
downloadLink: 'https://peps.cnes.fr/resto/collections/S2ST/8ac5e7cb-ed17-5867-a98a-b2ac79f28856/download',
tileIdentifier: '31TCJ',
storageStatus: 'ONLINE',
thumbnail: None,
resourceSize: 170212251,
resourceChecksum: 'c3ff135791a789140a7b22b01c7128a2',
visible: 1,
newVersion: None,
isNrt: 0,
realtime: 'Nominal',
relativeOrbitNumber: 8,
useDatalake: 1,
bucket: 'sentinel2-l1c',
prefix: '31/T/CJ/2021/03/28',
s2TakeId: 'GS2B_20210328T103629_021198_N05.00',
bareSoil: None,
highProbaClouds: None,
mediumProbaClouds: None,
lowProbaClouds: None,
snowIce: None,
vegetation: None,
water: None,
isRefined: 1,
nrtResource: '/data/NRT/2021/03/28/S2B/S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834.zip',
storage: { 'mode': 'tier2' },
id: 'S2B_MSIL1C_20210328T103629_N0500_R008_T31TCJ_20230602T033834',
}
assets: (0)
geometry
[10]:
product_path = deserialized_and_registered[0].download(
    output_dir=workspace,
)
2024-07-31 11:57:11,106 eodag.download.base              [INFO    ] Download url: https://peps.cnes.fr/resto/collections/S2ST/2d85d4c8-34c1-55dc-b43c-0ab0fe4c2b97/download
2024-07-31 12:00:13,652 eodag.download.base              [INFO    ] Extraction activated
2024-07-31 12:00:23,734 eodag.download.base              [INFO    ] Deleting archive S2B_MSIL1C_20210328T103629_N0500_R008_T31TDH_20230602T033834.zip
2024-07-31 12:00:23,822 eodag.product                    [INFO    ] Remote location of the product is still available through its 'remote_location' property: https://peps.cnes.fr/resto/collections/S2ST/2d85d4c8-34c1-55dc-b43c-0ab0fe4c2b97/download

Downloading the product with deserialize_and_register() works as expected.