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 STAC Item-Collection GeoJSON or to load a STAC Item-Collection GeoJSON file to a SearchResult. These methods come in handy to save the state of a search and restore it later.

You will learn how to:

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

[1]:
import os

# os.environ["EODAG__COP_DATASPACE__AUTH__CREDENTIALS__USERNAME"] = "PLEASE_CHANGE_ME"
# os.environ["EODAG__COP_DATASPACE__AUTH__CREDENTIALS__PASSWORD"] = "PLEASE_CHANGE_ME"

# Switch to minimal mode for the exception handlers
%xmode Minimal
Exception reporting mode: Minimal
[2]:
from eodag import EODataAccessGateway, EOProduct, SearchResult

dag = EODataAccessGateway()

Serialize#

From EODataAccessGateway#

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

[3]:
search_results = dag.search(
    provider="cop_dataspace",
    collection="S2_MSI_L1C",
    start="2024-07-03",
    end="2024-07-31",
    geom={"lonmin": 3, "latmin": 43.5, "lonmax": 3.5, "latmax": 44},
    grid_code="MGRS-31TEJ",
    limit=2
)
search_results
[3]:
SearchResult (2)
0  EOProduct(id=S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
properties["start_datetime"]: '2024-07-03T10:46:29.024000Z',
properties["end_datetime"]: '2024-07-03T10:46:29.024000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-03T10:46:29.024000Z',
end_datetime: '2024-07-03T10:46:29.024000Z',
id: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
instruments: ['MSI' ],
platform: 'S2B',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ],
published: '2024-07-03T12:42:14.249198Z',
start_datetime: '2024-07-03T10:46:29.024000Z',
title: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
uid: 'c010825a-c3a6-46a0-948e-005521edf124',
updated: '2024-11-09T03:15:32.907273Z',
cop_dataspace:sourceProduct: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z',
eo:cloud_cover: 14.423965639102,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-03T11:43:18.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10',
s2:datatake_id: 'GS2B_20240703T104629_038258_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10',
sat:absolute_orbit: 38258,
sat:relative_orbit: 51,
}
assets: (0)
geometry
thumbnail
1  EOProduct(id=S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
properties["start_datetime"]: '2024-07-05T10:40:21.025000Z',
properties["end_datetime"]: '2024-07-05T10:40:21.025000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-05T10:40:21.025000Z',
end_datetime: '2024-07-05T10:40:21.025000Z',
id: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
instruments: ['MSI' ],
platform: 'S2A',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ],
published: '2024-07-05T16:44:47.318744Z',
start_datetime: '2024-07-05T10:40:21.025000Z',
title: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
uid: '5193fc1e-6e68-40ab-8e0f-fc1c55cb01da',
updated: '2024-11-08T21:39:34.502029Z',
cop_dataspace:sourceProduct: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10,S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10,S2A_OPER_MSI_L1C_TC_2APS_20240705T142137_A047195_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-05T16:33:16Z,2024-07-05T16:32:39Z,2024-07-05T16:33:18Z',
eo:cloud_cover: 59.366657708501,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(5193fc1e-6e68-40ab-8e0f-fc1c55cb01da)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-05T14:21:37.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10',
s2:datatake_id: 'GS2A_20240705T104021_047195_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10',
sat:absolute_orbit: 47195,
sat:relative_orbit: 8,
}
assets: (0)
geometry
thumbnail

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

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

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

Serialization created the expected search_results.geojson associated to a S2_MSI_L1C.json to store collection information. Associated collections are generated together with the Item-Collection as recommended by the STAC specification.

[6]:
! tree {workspace}
eodag_workspace_serialize_deserialize
├── S2_MSI_L1C.json
└── search_results.geojson

1 directory, 2 files
[7]:
# basic JSON rendering
import json
from IPython.display import HTML
from pathlib import Path

def collapsible_json(data, title="JSON"):
    content = json.dumps(data, indent=2)
    return HTML(f"<details><summary>{title}</summary><pre>{content}</pre></details>")
[8]:
with open(output_file) as f:
    serialized = json.load(f)
collapsible_json(serialized, "search_results.geojson")
[8]:
search_results.geojson
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              3.112156425319443,
              44.25274117552566
            ],
            [
              2.999749474120944,
              44.25341758107761
            ],
            [
              2.999750647054511,
              43.96999464368005
            ],
            [
              3.022834986511477,
              44.02854789058796
            ],
            [
              3.08123279285096,
              44.17410646003805
            ],
            [
              3.112156425319443,
              44.25274117552566
            ]
          ]
        ]
      },
      "bbox": [
        2.999749474120944,
        43.96999464368005,
        3.112156425319443,
        44.25341758107761
      ],
      "id": "S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318",
      "assets": {},
      "properties": {
        "constellation": "SENTINEL-2",
        "datetime": "2024-07-03T10:46:29.024000Z",
        "end_datetime": "2024-07-03T10:46:29.024000Z",
        "instruments": [
          "MSI"
        ],
        "platform": "S2B",
        "providers": [
          {
            "name": "ESA",
            "roles": [
              "producer"
            ]
          },
          {
            "name": "cop_dataspace",
            "roles": [
              "host"
            ]
          }
        ],
        "published": "2024-07-03T12:42:14.249198Z",
        "start_datetime": "2024-07-03T10:46:29.024000Z",
        "title": "S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318",
        "uid": "c010825a-c3a6-46a0-948e-005521edf124",
        "updated": "2024-11-09T03:15:32.907273Z",
        "cop_dataspace:sourceProduct": "S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2",
        "cop_dataspace:sourceProductOriginDate": "2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z",
        "eo:cloud_cover": 14.423965639102,
        "eodag:download_link": "https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value",
        "eodag:quicklook": "https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value",
        "eodag:thumbnail": "https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value",
        "grid:code": "MGRS-31TEJ",
        "order:status": "succeeded",
        "processing:datetime": "2024-07-03T11:43:18.000000Z",
        "processing:level": "S2MSI1C",
        "processing:version": "05.10",
        "product:type": "S2MSI1C",
        "s2:datastrip_id": "S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10",
        "s2:datatake_id": "GS2B_20240703T104629_038258_N05.10",
        "s2:datatake_type": "INS-NOBS",
        "s2:tile_id": "S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10",
        "sat:absolute_orbit": 38258,
        "sat:relative_orbit": 51,
        "eodag:provider": "cop_dataspace",
        "eodag:search_intersection": {
          "type": "Polygon",
          "coordinates": [
            [
              [
                3.0,
                43.97062712548061
              ],
              [
                3.0,
                44.0
              ],
              [
                3.0115801162538247,
                44.0
              ],
              [
                3.0,
                43.97062712548061
              ]
            ]
          ]
        }
      },
      "links": [
        {
          "rel": "collection",
          "href": "S2_MSI_L1C.json",
          "type": "application/json"
        }
      ],
      "stac_extensions": [
        "https://stac-extensions.github.io/product/v1.0.0/schema.json",
        "https://stac-extensions.github.io/order/v1.1.0/schema.json",
        "https://stac-extensions.github.io/grid/v1.1.0/schema.json",
        "https://stac-extensions.github.io/sat/v1.1.0/schema.json",
        "https://stac-extensions.github.io/eo/v2.0.0/schema.json",
        "https://stac-extensions.github.io/processing/v1.2.0/schema.json"
      ],
      "stac_version": "1.1.0",
      "collection": "S2_MSI_L1C"
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              2.999749474120944,
              44.25341758107761
            ],
            [
              2.999753565511865,
              43.26479037737325
            ],
            [
              4.352494032483418,
              43.2567942942016
            ],
            [
              4.374940058749246,
              44.24514241182411
            ],
            [
              2.999749474120944,
              44.25341758107761
            ]
          ]
        ]
      },
      "bbox": [
        2.999749474120944,
        43.2567942942016,
        4.374940058749246,
        44.25341758107761
      ],
      "id": "S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137",
      "assets": {},
      "properties": {
        "constellation": "SENTINEL-2",
        "datetime": "2024-07-05T10:40:21.025000Z",
        "end_datetime": "2024-07-05T10:40:21.025000Z",
        "instruments": [
          "MSI"
        ],
        "platform": "S2A",
        "providers": [
          {
            "name": "ESA",
            "roles": [
              "producer"
            ]
          },
          {
            "name": "cop_dataspace",
            "roles": [
              "host"
            ]
          }
        ],
        "published": "2024-07-05T16:44:47.318744Z",
        "start_datetime": "2024-07-05T10:40:21.025000Z",
        "title": "S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137",
        "uid": "5193fc1e-6e68-40ab-8e0f-fc1c55cb01da",
        "updated": "2024-11-08T21:39:34.502029Z",
        "cop_dataspace:sourceProduct": "S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10,S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10,S2A_OPER_MSI_L1C_TC_2APS_20240705T142137_A047195_T31TEJ_N05.10.jp2",
        "cop_dataspace:sourceProductOriginDate": "2024-07-05T16:33:16Z,2024-07-05T16:32:39Z,2024-07-05T16:33:18Z",
        "eo:cloud_cover": 59.366657708501,
        "eodag:download_link": "https://catalogue.dataspace.copernicus.eu/odata/v1/Products(5193fc1e-6e68-40ab-8e0f-fc1c55cb01da)/$value",
        "eodag:quicklook": "https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value",
        "eodag:thumbnail": "https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value",
        "grid:code": "MGRS-31TEJ",
        "order:status": "succeeded",
        "processing:datetime": "2024-07-05T14:21:37.000000Z",
        "processing:level": "S2MSI1C",
        "processing:version": "05.10",
        "product:type": "S2MSI1C",
        "s2:datastrip_id": "S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10",
        "s2:datatake_id": "GS2A_20240705T104021_047195_N05.10",
        "s2:datatake_type": "INS-NOBS",
        "s2:tile_id": "S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10",
        "sat:absolute_orbit": 47195,
        "sat:relative_orbit": 8,
        "eodag:provider": "cop_dataspace",
        "eodag:search_intersection": {
          "type": "Polygon",
          "coordinates": [
            [
              [
                3.0,
                44.0
              ],
              [
                3.5,
                44.0
              ],
              [
                3.5,
                43.5
              ],
              [
                3.0,
                43.5
              ],
              [
                3.0,
                44.0
              ]
            ]
          ]
        }
      },
      "links": [
        {
          "rel": "collection",
          "href": "S2_MSI_L1C.json",
          "type": "application/json"
        }
      ],
      "stac_extensions": [
        "https://stac-extensions.github.io/product/v1.0.0/schema.json",
        "https://stac-extensions.github.io/order/v1.1.0/schema.json",
        "https://stac-extensions.github.io/grid/v1.1.0/schema.json",
        "https://stac-extensions.github.io/sat/v1.1.0/schema.json",
        "https://stac-extensions.github.io/eo/v2.0.0/schema.json",
        "https://stac-extensions.github.io/processing/v1.2.0/schema.json"
      ],
      "stac_version": "1.1.0",
      "collection": "S2_MSI_L1C"
    }
  ],
  "metadata": {
    "eodag:number_matched": null,
    "eodag:next_page_token": "2",
    "eodag:next_page_token_key": null,
    "eodag:search_params": {
      "collection": "S2_MSI_L1C",
      "grid:code": "MGRS-31TEJ",
      "start_datetime": "2024-07-03",
      "end_datetime": "2024-07-31",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              3.0,
              43.5
            ],
            [
              3.0,
              44.0
            ],
            [
              3.5,
              44.0
            ],
            [
              3.5,
              43.5
            ],
            [
              3.0,
              43.5
            ]
          ]
        ]
      },
      "limit": 2
    },
    "eodag:raise_errors": false
  },
  "links": [
    {
      "rel": "self",
      "href": "eodag_workspace_serialize_deserialize/search_results.geojson",
      "type": "application/json"
    }
  ],
  "stac_extensions": [],
  "stac_version": "1.1.0"
}
[9]:
with open(Path(workspace) / "S2_MSI_L1C.json") as f:
    collection_dict = json.load(f)
collapsible_json(collection_dict, "S2_MSI_L1C.json")
[9]:
S2_MSI_L1C.json
{
  "stac_version": "1.1.0",
  "type": "Collection",
  "id": "S2_MSI_L1C",
  "title": "SENTINEL2 Level-1C",
  "description": "The Level-1C product is composed of 100x100 km2 tiles (ortho-images in UTM/WGS84 projection). It results from\nusing a Digital Elevation Model (DEM) to project the image in cartographic geometry. Per-pixel radiometric\nmeasurements are provided in Top Of Atmosphere (TOA) reflectances along with the parameters to transform them\ninto radiances. Level-1C products are resampled with a constant Ground Sampling Distance (GSD) of 10, 20 and 60\nmeters depending on the native resolution of the different spectral bands. In Level-1C  products, pixel\ncoordinates refer to the upper left corner of the pixel. Level-1C products will additionally include Cloud Masks\nand ECMWF data (total column of ozone, total column of water vapour and mean sea level pressure).\nSAFE formatted product, see https://sentinel.esa.int/web/sentinel/user-guides/sentinel-2-msi/data-formats\n",
  "extent": {
    "spatial": {
      "bbox": [
        [
          -180.0,
          -90.0,
          180.0,
          90.0
        ]
      ]
    },
    "temporal": {
      "interval": [
        [
          "2015-06-23T00:00:00Z",
          null
        ]
      ]
    }
  },
  "keywords": [
    "MSI",
    "SENTINEL",
    "SENTINEL2",
    "S2",
    "S2A",
    "S2B",
    "S2C",
    "L1",
    "L1C",
    "SAFE"
  ],
  "license": "other",
  "providers": [
    {
      "name": "European Space Agency (ESA)",
      "roles": [
        "producer",
        "processor",
        "licensor"
      ],
      "url": "https://earth.esa.int"
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "S2_MSI_L1C.json",
      "type": "application/json"
    }
  ],
  "summaries": {
    "constellation": [
      "SENTINEL2"
    ],
    "instruments": [
      "MSI"
    ],
    "platform": [
      "S2A",
      "S2B",
      "S2C"
    ],
    "processing:level": [
      "L1"
    ],
    "eodag:sensor_type": [
      "OPTICAL"
    ]
  },
  "stac_extensions": [
    "https://stac-extensions.github.io/processing/v1.2.0/schema.json"
  ]
}

SearchResult.as_dict#

SearchResult.as_dict() allows to directly convert search results to a serialized dictionary.

[10]:
search_results_dict = search_results.as_dict()
collapsible_json(search_results_dict, "search_results_dict")
[10]:
search_results_dict
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              3.112156425319443,
              44.25274117552566
            ],
            [
              2.999749474120944,
              44.25341758107761
            ],
            [
              2.999750647054511,
              43.96999464368005
            ],
            [
              3.022834986511477,
              44.02854789058796
            ],
            [
              3.08123279285096,
              44.17410646003805
            ],
            [
              3.112156425319443,
              44.25274117552566
            ]
          ]
        ]
      },
      "bbox": [
        2.999749474120944,
        43.96999464368005,
        3.112156425319443,
        44.25341758107761
      ],
      "id": "S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318",
      "assets": {},
      "properties": {
        "constellation": "SENTINEL-2",
        "datetime": "2024-07-03T10:46:29.024000Z",
        "end_datetime": "2024-07-03T10:46:29.024000Z",
        "instruments": [
          "MSI"
        ],
        "platform": "S2B",
        "providers": [
          {
            "name": "ESA",
            "roles": [
              "producer"
            ]
          },
          {
            "name": "cop_dataspace",
            "roles": [
              "host"
            ]
          }
        ],
        "published": "2024-07-03T12:42:14.249198Z",
        "start_datetime": "2024-07-03T10:46:29.024000Z",
        "title": "S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318",
        "uid": "c010825a-c3a6-46a0-948e-005521edf124",
        "updated": "2024-11-09T03:15:32.907273Z",
        "cop_dataspace:sourceProduct": "S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2",
        "cop_dataspace:sourceProductOriginDate": "2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z",
        "eo:cloud_cover": 14.423965639102,
        "eodag:download_link": "https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value",
        "eodag:quicklook": "https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value",
        "eodag:thumbnail": "https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value",
        "grid:code": "MGRS-31TEJ",
        "order:status": "succeeded",
        "processing:datetime": "2024-07-03T11:43:18.000000Z",
        "processing:level": "S2MSI1C",
        "processing:version": "05.10",
        "product:type": "S2MSI1C",
        "s2:datastrip_id": "S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10",
        "s2:datatake_id": "GS2B_20240703T104629_038258_N05.10",
        "s2:datatake_type": "INS-NOBS",
        "s2:tile_id": "S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10",
        "sat:absolute_orbit": 38258,
        "sat:relative_orbit": 51,
        "eodag:provider": "cop_dataspace",
        "eodag:search_intersection": {
          "type": "Polygon",
          "coordinates": [
            [
              [
                3.0,
                43.97062712548061
              ],
              [
                3.0,
                44.0
              ],
              [
                3.0115801162538247,
                44.0
              ],
              [
                3.0,
                43.97062712548061
              ]
            ]
          ]
        }
      },
      "links": [
        {
          "rel": "collection",
          "href": "S2_MSI_L1C.json",
          "type": "application/json"
        }
      ],
      "stac_extensions": [
        "https://stac-extensions.github.io/product/v1.0.0/schema.json",
        "https://stac-extensions.github.io/order/v1.1.0/schema.json",
        "https://stac-extensions.github.io/grid/v1.1.0/schema.json",
        "https://stac-extensions.github.io/sat/v1.1.0/schema.json",
        "https://stac-extensions.github.io/eo/v2.0.0/schema.json",
        "https://stac-extensions.github.io/processing/v1.2.0/schema.json"
      ],
      "stac_version": "1.1.0",
      "collection": "S2_MSI_L1C"
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              2.999749474120944,
              44.25341758107761
            ],
            [
              2.999753565511865,
              43.26479037737325
            ],
            [
              4.352494032483418,
              43.2567942942016
            ],
            [
              4.374940058749246,
              44.24514241182411
            ],
            [
              2.999749474120944,
              44.25341758107761
            ]
          ]
        ]
      },
      "bbox": [
        2.999749474120944,
        43.2567942942016,
        4.374940058749246,
        44.25341758107761
      ],
      "id": "S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137",
      "assets": {},
      "properties": {
        "constellation": "SENTINEL-2",
        "datetime": "2024-07-05T10:40:21.025000Z",
        "end_datetime": "2024-07-05T10:40:21.025000Z",
        "instruments": [
          "MSI"
        ],
        "platform": "S2A",
        "providers": [
          {
            "name": "ESA",
            "roles": [
              "producer"
            ]
          },
          {
            "name": "cop_dataspace",
            "roles": [
              "host"
            ]
          }
        ],
        "published": "2024-07-05T16:44:47.318744Z",
        "start_datetime": "2024-07-05T10:40:21.025000Z",
        "title": "S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137",
        "uid": "5193fc1e-6e68-40ab-8e0f-fc1c55cb01da",
        "updated": "2024-11-08T21:39:34.502029Z",
        "cop_dataspace:sourceProduct": "S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10,S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10,S2A_OPER_MSI_L1C_TC_2APS_20240705T142137_A047195_T31TEJ_N05.10.jp2",
        "cop_dataspace:sourceProductOriginDate": "2024-07-05T16:33:16Z,2024-07-05T16:32:39Z,2024-07-05T16:33:18Z",
        "eo:cloud_cover": 59.366657708501,
        "eodag:download_link": "https://catalogue.dataspace.copernicus.eu/odata/v1/Products(5193fc1e-6e68-40ab-8e0f-fc1c55cb01da)/$value",
        "eodag:quicklook": "https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value",
        "eodag:thumbnail": "https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value",
        "grid:code": "MGRS-31TEJ",
        "order:status": "succeeded",
        "processing:datetime": "2024-07-05T14:21:37.000000Z",
        "processing:level": "S2MSI1C",
        "processing:version": "05.10",
        "product:type": "S2MSI1C",
        "s2:datastrip_id": "S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10",
        "s2:datatake_id": "GS2A_20240705T104021_047195_N05.10",
        "s2:datatake_type": "INS-NOBS",
        "s2:tile_id": "S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10",
        "sat:absolute_orbit": 47195,
        "sat:relative_orbit": 8,
        "eodag:provider": "cop_dataspace",
        "eodag:search_intersection": {
          "type": "Polygon",
          "coordinates": [
            [
              [
                3.0,
                44.0
              ],
              [
                3.5,
                44.0
              ],
              [
                3.5,
                43.5
              ],
              [
                3.0,
                43.5
              ],
              [
                3.0,
                44.0
              ]
            ]
          ]
        }
      },
      "links": [
        {
          "rel": "collection",
          "href": "S2_MSI_L1C.json",
          "type": "application/json"
        }
      ],
      "stac_extensions": [
        "https://stac-extensions.github.io/product/v1.0.0/schema.json",
        "https://stac-extensions.github.io/order/v1.1.0/schema.json",
        "https://stac-extensions.github.io/grid/v1.1.0/schema.json",
        "https://stac-extensions.github.io/sat/v1.1.0/schema.json",
        "https://stac-extensions.github.io/eo/v2.0.0/schema.json",
        "https://stac-extensions.github.io/processing/v1.2.0/schema.json"
      ],
      "stac_version": "1.1.0",
      "collection": "S2_MSI_L1C"
    }
  ],
  "metadata": {
    "eodag:number_matched": null,
    "eodag:next_page_token": "2",
    "eodag:next_page_token_key": null,
    "eodag:search_params": {
      "collection": "S2_MSI_L1C",
      "grid:code": "MGRS-31TEJ",
      "start_datetime": "2024-07-03",
      "end_datetime": "2024-07-31",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              3.0,
              43.5
            ],
            [
              3.0,
              44.0
            ],
            [
              3.5,
              44.0
            ],
            [
              3.5,
              43.5
            ],
            [
              3.0,
              43.5
            ]
          ]
        ]
      },
      "limit": 2
    },
    "eodag:raise_errors": false
  },
  "links": [],
  "stac_extensions": [],
  "stac_version": "1.1.0"
}

SearchResult.as_shapely_geometry_object#

SearchResult.as_shapely_geometry_object() will return a shapely.GeometryCollection containing the results geometries.

[11]:
search_results.as_shapely_geometry_object()
[11]:
../../_images/notebooks_api_user_guide_5_serialize_deserialize_18_0.svg

SearchResult.as_wkt_object#

SearchResult.as_shapely_geometry_object() will return the WKT representation of results geometries.

[12]:
search_results.as_wkt_object()
[12]:
'GEOMETRYCOLLECTION (POLYGON ((3.112156425319443 44.25274117552566, 3.08123279285096 44.17410646003805, 3.022834986511477 44.02854789058796, 2.999750647054511 43.96999464368005, 2.999749474120944 44.25341758107761, 3.112156425319443 44.25274117552566)), POLYGON ((2.999749474120944 44.25341758107761, 4.374940058749246 44.24514241182411, 4.352494032483418 43.2567942942016, 2.999753565511865 43.26479037737325, 2.999749474120944 44.25341758107761)))'

SearchResult.as_pystac_object#

SearchResult.as_pystac_object() will return a pystac.ItemCollection.

[13]:
pystac_item_collection = search_results.as_pystac_object()
pystac_item_collection
[13]:
<pystac.item_collection.ItemCollection object at 0x706755bb1a90>

EOProduct.as_dict#

EOProduct.as_dict() allows to directly convert a single product to a serialized dictionary.

[14]:
product_dict = search_results[0].as_dict()
collapsible_json(product_dict, "product_dict")
[14]:
product_dict
{
  "type": "Feature",
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          3.112156425319443,
          44.25274117552566
        ],
        [
          2.999749474120944,
          44.25341758107761
        ],
        [
          2.999750647054511,
          43.96999464368005
        ],
        [
          3.022834986511477,
          44.02854789058796
        ],
        [
          3.08123279285096,
          44.17410646003805
        ],
        [
          3.112156425319443,
          44.25274117552566
        ]
      ]
    ]
  },
  "bbox": [
    2.999749474120944,
    43.96999464368005,
    3.112156425319443,
    44.25341758107761
  ],
  "id": "S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318",
  "assets": {},
  "properties": {
    "constellation": "SENTINEL-2",
    "datetime": "2024-07-03T10:46:29.024000Z",
    "end_datetime": "2024-07-03T10:46:29.024000Z",
    "instruments": [
      "MSI"
    ],
    "platform": "S2B",
    "providers": [
      {
        "name": "ESA",
        "roles": [
          "producer"
        ]
      },
      {
        "name": "cop_dataspace",
        "roles": [
          "host"
        ]
      }
    ],
    "published": "2024-07-03T12:42:14.249198Z",
    "start_datetime": "2024-07-03T10:46:29.024000Z",
    "title": "S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318",
    "uid": "c010825a-c3a6-46a0-948e-005521edf124",
    "updated": "2024-11-09T03:15:32.907273Z",
    "cop_dataspace:sourceProduct": "S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2",
    "cop_dataspace:sourceProductOriginDate": "2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z",
    "eo:cloud_cover": 14.423965639102,
    "eodag:download_link": "https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value",
    "eodag:quicklook": "https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value",
    "eodag:thumbnail": "https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value",
    "grid:code": "MGRS-31TEJ",
    "order:status": "succeeded",
    "processing:datetime": "2024-07-03T11:43:18.000000Z",
    "processing:level": "S2MSI1C",
    "processing:version": "05.10",
    "product:type": "S2MSI1C",
    "s2:datastrip_id": "S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10",
    "s2:datatake_id": "GS2B_20240703T104629_038258_N05.10",
    "s2:datatake_type": "INS-NOBS",
    "s2:tile_id": "S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10",
    "sat:absolute_orbit": 38258,
    "sat:relative_orbit": 51,
    "eodag:provider": "cop_dataspace",
    "eodag:search_intersection": {
      "type": "Polygon",
      "coordinates": [
        [
          [
            3.0,
            43.97062712548061
          ],
          [
            3.0,
            44.0
          ],
          [
            3.0115801162538247,
            44.0
          ],
          [
            3.0,
            43.97062712548061
          ]
        ]
      ]
    }
  },
  "links": [
    {
      "rel": "collection",
      "href": "S2_MSI_L1C.json",
      "type": "application/json"
    }
  ],
  "stac_extensions": [
    "https://stac-extensions.github.io/product/v1.0.0/schema.json",
    "https://stac-extensions.github.io/order/v1.1.0/schema.json",
    "https://stac-extensions.github.io/grid/v1.1.0/schema.json",
    "https://stac-extensions.github.io/sat/v1.1.0/schema.json",
    "https://stac-extensions.github.io/eo/v2.0.0/schema.json",
    "https://stac-extensions.github.io/processing/v1.2.0/schema.json"
  ],
  "stac_version": "1.1.0",
  "collection": "S2_MSI_L1C"
}

EOProduct.as_pystac_object#

EOProduct.as_pystac_object() allows to directly convert a single product to a pystac.Item.

[15]:
pystac_item = search_results[0].as_pystac_object()
pystac_item
[15]:
<Item id=S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318>

Deserialize#

From EODataAccessGateway#

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

  • deserialize(): it simply recreates a SearchResult and the EOProduct objects it contained. Can be used without EODataAccessGateway instance, but object will not be downloadable.

  • deserialize_and_register(): it also recreates a SearchResult but additionally registers for each EOProduct the information it requires to download itself and enables pagination if available by attaching the gateway instance to the products.

[16]:
deserialized_search_results = dag.deserialize(output_file)
deserialized_search_results
[16]:
SearchResult (2)
0  EOProduct(id=S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
properties["start_datetime"]: '2024-07-03T10:46:29.024000Z',
properties["end_datetime"]: '2024-07-03T10:46:29.024000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-03T10:46:29.024000Z',
end_datetime: '2024-07-03T10:46:29.024000Z',
id: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
instruments: ['MSI' ],
platform: 'S2B',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-03T12:42:14.249198Z',
start_datetime: '2024-07-03T10:46:29.024000Z',
title: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
uid: 'c010825a-c3a6-46a0-948e-005521edf124',
updated: '2024-11-09T03:15:32.907273Z',
cop_dataspace:sourceProduct: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z',
eo:cloud_cover: 14.423965639102,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-03T11:43:18.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10',
s2:datatake_id: 'GS2B_20240703T104629_038258_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10',
sat:absolute_orbit: 38258,
sat:relative_orbit: 51,
}
assets: (0)
geometry
thumbnail
1  EOProduct(id=S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
properties["start_datetime"]: '2024-07-05T10:40:21.025000Z',
properties["end_datetime"]: '2024-07-05T10:40:21.025000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-05T10:40:21.025000Z',
end_datetime: '2024-07-05T10:40:21.025000Z',
id: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
instruments: ['MSI' ],
platform: 'S2A',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-05T16:44:47.318744Z',
start_datetime: '2024-07-05T10:40:21.025000Z',
title: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
uid: '5193fc1e-6e68-40ab-8e0f-fc1c55cb01da',
updated: '2024-11-08T21:39:34.502029Z',
cop_dataspace:sourceProduct: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10,S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10,S2A_OPER_MSI_L1C_TC_2APS_20240705T142137_A047195_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-05T16:33:16Z,2024-07-05T16:32:39Z,2024-07-05T16:33:18Z',
eo:cloud_cover: 59.366657708501,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(5193fc1e-6e68-40ab-8e0f-fc1c55cb01da)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-05T14:21:37.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10',
s2:datatake_id: 'GS2A_20240705T104021_047195_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10',
sat:absolute_orbit: 47195,
sat:relative_orbit: 8,
}
assets: (0)
geometry
thumbnail
[17]:
deserialized_search_results[0].download()
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.

[18]:
deserialized_and_registered = dag.deserialize_and_register(output_file)
deserialized_and_registered
[18]:
SearchResult (2)
0  EOProduct(id=S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
properties["start_datetime"]: '2024-07-03T10:46:29.024000Z',
properties["end_datetime"]: '2024-07-03T10:46:29.024000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-03T10:46:29.024000Z',
end_datetime: '2024-07-03T10:46:29.024000Z',
id: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
instruments: ['MSI' ],
platform: 'S2B',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-03T12:42:14.249198Z',
start_datetime: '2024-07-03T10:46:29.024000Z',
title: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
uid: 'c010825a-c3a6-46a0-948e-005521edf124',
updated: '2024-11-09T03:15:32.907273Z',
cop_dataspace:sourceProduct: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z',
eo:cloud_cover: 14.423965639102,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-03T11:43:18.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10',
s2:datatake_id: 'GS2B_20240703T104629_038258_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10',
sat:absolute_orbit: 38258,
sat:relative_orbit: 51,
}
assets: (0)
geometry
thumbnail
1  EOProduct(id=S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
properties["start_datetime"]: '2024-07-05T10:40:21.025000Z',
properties["end_datetime"]: '2024-07-05T10:40:21.025000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-05T10:40:21.025000Z',
end_datetime: '2024-07-05T10:40:21.025000Z',
id: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
instruments: ['MSI' ],
platform: 'S2A',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-05T16:44:47.318744Z',
start_datetime: '2024-07-05T10:40:21.025000Z',
title: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
uid: '5193fc1e-6e68-40ab-8e0f-fc1c55cb01da',
updated: '2024-11-08T21:39:34.502029Z',
cop_dataspace:sourceProduct: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10,S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10,S2A_OPER_MSI_L1C_TC_2APS_20240705T142137_A047195_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-05T16:33:16Z,2024-07-05T16:32:39Z,2024-07-05T16:33:18Z',
eo:cloud_cover: 59.366657708501,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(5193fc1e-6e68-40ab-8e0f-fc1c55cb01da)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-05T14:21:37.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10',
s2:datatake_id: 'GS2A_20240705T104021_047195_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10',
sat:absolute_orbit: 47195,
sat:relative_orbit: 8,
}
assets: (0)
geometry
thumbnail
[19]:
product_path = deserialized_and_registered[0].download(
    output_dir=workspace,
)

Downloading the product with deserialize_and_register() works as expected.

After using deserialize_and_register, you can access the next page of results (if available):

[20]:
next_page = deserialized_and_registered.next_page()
results_page_2 = next(next_page)
results_page_2
[20]:
SearchResult (2)
0  EOProduct(id=S2A_MSIL1C_20240708T105031_N0510_R051_T31TEJ_20240708T125024, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2A_MSIL1C_20240708T105031_N0510_R051_T31TEJ_20240708T125024',
properties["start_datetime"]: '2024-07-08T10:50:31.024000Z',
properties["end_datetime"]: '2024-07-08T10:50:31.024000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-08T10:50:31.024000Z',
end_datetime: '2024-07-08T10:50:31.024000Z',
id: 'S2A_MSIL1C_20240708T105031_N0510_R051_T31TEJ_20240708T125024',
instruments: ['MSI' ],
platform: 'S2A',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ],
published: '2024-07-08T15:06:53.189989Z',
start_datetime: '2024-07-08T10:50:31.024000Z',
title: 'S2A_MSIL1C_20240708T105031_N0510_R051_T31TEJ_20240708T125024',
uid: 'cb65260d-58b9-471a-8aa9-3263e97d6bd4',
updated: '2024-11-08T13:10:28.998813Z',
cop_dataspace:sourceProduct: 'S2A_OPER_MSI_L1C_TL_2APS_20240708T125024_A047238_T31TEJ_N05.10,S2A_OPER_MSI_L1C_DS_2APS_20240708T125024_S20240708T105028_N05.10,S2A_OPER_MSI_L1C_TC_2APS_20240708T125024_A047238_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-08T14:59:09Z,2024-07-08T14:59:04Z,2024-07-08T14:59:10Z',
eo:cloud_cover: 0.0,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(cb65260d-58b9-471a-8aa9-3263e97d6bd4)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(2456fc96-b92b-4310-a088-8932f1db0095)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(2456fc96-b92b-4310-a088-8932f1db0095)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-08T12:50:24.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2A_OPER_MSI_L1C_DS_2APS_20240708T125024_S20240708T105028_N05.10',
s2:datatake_id: 'GS2A_20240708T105031_047238_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2A_OPER_MSI_L1C_TL_2APS_20240708T125024_A047238_T31TEJ_N05.10',
sat:absolute_orbit: 47238,
sat:relative_orbit: 51,
}
assets: (0)
geometry
thumbnail
1  EOProduct(id=S2B_MSIL1C_20240710T103629_N0510_R008_T31TEJ_20240710T131044, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20240710T103629_N0510_R008_T31TEJ_20240710T131044',
properties["start_datetime"]: '2024-07-10T10:36:29.024000Z',
properties["end_datetime"]: '2024-07-10T10:36:29.024000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-10T10:36:29.024000Z',
end_datetime: '2024-07-10T10:36:29.024000Z',
id: 'S2B_MSIL1C_20240710T103629_N0510_R008_T31TEJ_20240710T131044',
instruments: ['MSI' ],
platform: 'S2B',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ],
published: '2024-07-10T14:34:08.835998Z',
start_datetime: '2024-07-10T10:36:29.024000Z',
title: 'S2B_MSIL1C_20240710T103629_N0510_R008_T31TEJ_20240710T131044',
uid: 'ed2523a6-143b-48e0-a663-a572a0bf8a6e',
updated: '2024-11-07T15:13:13.209267Z',
cop_dataspace:sourceProduct: 'S2B_OPER_MSI_L1C_TL_2BPS_20240710T131044_A038358_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240710T131044_S20240710T103819_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240710T131044_A038358_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-10T14:21:50Z,2024-07-10T13:50:48Z,2024-07-10T14:21:40Z',
eo:cloud_cover: 0.058048911583,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(ed2523a6-143b-48e0-a663-a572a0bf8a6e)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(0e6919dd-86b8-4a71-83c7-af156ae7838b)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(0e6919dd-86b8-4a71-83c7-af156ae7838b)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-10T13:10:44.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2B_OPER_MSI_L1C_DS_2BPS_20240710T131044_S20240710T103819_N05.10',
s2:datatake_id: 'GS2B_20240710T103629_038358_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2B_OPER_MSI_L1C_TL_2BPS_20240710T131044_A038358_T31TEJ_N05.10',
sat:absolute_orbit: 38358,
sat:relative_orbit: 8,
}
assets: (0)
geometry
thumbnail

import_stac_items#

import_stac_items() will import STAC items from a list of URLs and convert them to a SearchResult.

  • Origin provider and download links will be set if item comes from an EODAG server (see stac-fastapi-eodag).

  • If item comes from a known EODAG provider, result will be registered to it, ready to download and its metadata normalized.

  • If item comes from an unknown provider, a generic STAC provider will be used.

[21]:
dag.import_stac_items(
    [
        "https://earth-search.aws.element84.com/v1/collections/sentinel-2-l1c/items/S2B_27VWK_20240206_0_L1C",
        "https://stac.sage.uvt.ro/collections/sentinel-2-l1c/items/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847",
    ]
)
[21]:
SearchResult (2)
0  EOProduct(id=S2B_27VWK_20240206_0_L1C, provider=earth_search)
EOProduct
provider: 'earth_search',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2B_27VWK_20240206_0_L1C',
properties: (33){
constellation: 'sentinel-2',
datetime: '2024-02-06T13:14:11.918000Z',
id: 'S2B_27VWK_20240206_0_L1C',
instruments: ['msi' ],
platform: 'sentinel-2b',
title: 'S2B_27VWK_20240206_0_L1C',
earth_search:created: '2024-02-06T15:02:12.605Z',
earth_search:updated: '2024-02-06T15:02:12.605Z',
earthsearch:payload_id: 'roda-sentinel2/workflow-sentinel2-to-stac/3a593207fb50a145677c300bf92b974f',
earthsearch:s3_path: 's3://earthsearch-data/sentinel-2-l1c/27/V/WK/2024/2/S2B_27VWK_20240206_0_L1C',
eo:cloud_cover: 9.93604802923519,
eodag:download_link: 'https://earth-search.aws.element84.com/v1/collections/sentinel-2-l1c/items/S2B_27VWK_20240206_0_L1C',
eodag:thumbnail: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/preview.jpg',
grid:code: 'MGRS-27VWK',
mgrs:grid_square: 'WK',
mgrs:latitude_band: 'V',
mgrs:utm_zone: 27,
order:status: 'succeeded',
processing:software: { 'sentinel2-to-stac': '0.1.1' },
proj:code: 'EPSG:32627',
s2:datastrip_id: 'S2B_OPER_MSI_L1C_DS_2BPS_20240206T133903_S20240206T131359_N05.10',
s2:datatake_id: 'GS2B_20240206T131259_036143_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:degraded_msi_data_percentage: 0,
s2:generation_time: '2024-02-06T13:39:03.000000Z',
s2:granule_id: 'S2B_OPER_MSI_L1C_TL_2BPS_20240206T133903_A036143_T27VWK_N05.10',
s2:processing_baseline: 5.1,
s2:product_type: 'S2MSI1C',
s2:product_uri: 'S2B_MSIL1C_20240206T131259_N0510_R081_T27VWK_20240206T133903.SAFE',
s2:reflectance_conversion_factor: 1.02982763156509,
s2:sequence: 0,
view:sun_azimuth: 175.230754104899,
view:sun_elevation: 11.604167707198599,
}
assets: (17)
'B01':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B01',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B01.jp2',
type: 'image/jp2',
title: 'B01',
eo:bands: [{ 'name': 'coastal' , 'common_name': 'coastal' , 'description': 'Coastal aerosol (band 1)' , 'center_wavelength': 0.443 , 'full_width_half_max': 0.027 } ],
gsd: 60,
proj:shape: [1830 , 1830 ],
proj:transform: [60 , 0 , 499980 , 0 , -60 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 60 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B02':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B02',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B02.jp2',
type: 'image/jp2',
title: 'B02',
eo:bands: [{ 'name': 'blue' , 'common_name': 'blue' , 'description': 'Blue (band 2)' , 'center_wavelength': 0.49 , 'full_width_half_max': 0.098 } ],
gsd: 10,
proj:shape: [10980 , 10980 ],
proj:transform: [10 , 0 , 499980 , 0 , -10 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 10 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B03':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B03',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B03.jp2',
type: 'image/jp2',
title: 'B03',
eo:bands: [{ 'name': 'green' , 'common_name': 'green' , 'description': 'Green (band 3)' , 'center_wavelength': 0.56 , 'full_width_half_max': 0.045 } ],
gsd: 10,
proj:shape: [10980 , 10980 ],
proj:transform: [10 , 0 , 499980 , 0 , -10 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 10 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B04':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B04',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B04.jp2',
type: 'image/jp2',
title: 'B04',
eo:bands: [{ 'name': 'red' , 'common_name': 'red' , 'description': 'Red (band 4)' , 'center_wavelength': 0.665 , 'full_width_half_max': 0.038 } ],
gsd: 10,
proj:shape: [10980 , 10980 ],
proj:transform: [10 , 0 , 499980 , 0 , -10 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 10 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B05':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B05',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B05.jp2',
type: 'image/jp2',
title: 'B05',
eo:bands: [{ 'name': 'rededge1' , 'common_name': 'rededge' , 'description': 'Red edge 1 (band 5)' , 'center_wavelength': 0.704 , 'full_width_half_max': 0.019 } ],
gsd: 20,
proj:shape: [5490 , 5490 ],
proj:transform: [20 , 0 , 499980 , 0 , -20 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 20 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B06':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B06',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B06.jp2',
type: 'image/jp2',
title: 'B06',
eo:bands: [{ 'name': 'rededge2' , 'common_name': 'rededge' , 'description': 'Red edge 2 (band 6)' , 'center_wavelength': 0.74 , 'full_width_half_max': 0.018 } ],
gsd: 20,
proj:shape: [5490 , 5490 ],
proj:transform: [20 , 0 , 499980 , 0 , -20 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 20 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B07':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B07',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B07.jp2',
type: 'image/jp2',
title: 'B07',
eo:bands: [{ 'name': 'rededge3' , 'common_name': 'rededge' , 'description': 'Red edge 3 (band 7)' , 'center_wavelength': 0.783 , 'full_width_half_max': 0.028 } ],
gsd: 20,
proj:shape: [5490 , 5490 ],
proj:transform: [20 , 0 , 499980 , 0 , -20 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 20 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B08':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B08',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B08.jp2',
type: 'image/jp2',
title: 'B08',
eo:bands: [{ 'name': 'nir' , 'common_name': 'nir' , 'description': 'NIR 1 (band 8)' , 'center_wavelength': 0.842 , 'full_width_half_max': 0.145 } ],
gsd: 10,
proj:shape: [10980 , 10980 ],
proj:transform: [10 , 0 , 499980 , 0 , -10 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 10 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B09':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B09',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B09.jp2',
type: 'image/jp2',
title: 'B09',
eo:bands: [{ 'name': 'nir09' , 'common_name': 'nir09' , 'description': 'NIR 3 (band 9)' , 'center_wavelength': 0.945 , 'full_width_half_max': 0.026 } ],
gsd: 60,
proj:shape: [1830 , 1830 ],
proj:transform: [60 , 0 , 499980 , 0 , -60 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 60 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B10':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B10',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B10.jp2',
type: 'image/jp2',
title: 'B10',
eo:bands: [{ 'name': 'cirrus' , 'common_name': 'cirrus' , 'description': 'Cirrus (band 10)' , 'center_wavelength': 1.3735 , 'full_width_half_max': 0.075 } ],
gsd: 60,
proj:shape: [1830 , 1830 ],
proj:transform: [60 , 0 , 499980 , 0 , -60 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 60 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B11':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B11',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B11.jp2',
type: 'image/jp2',
title: 'B11',
eo:bands: [{ 'name': 'swir16' , 'common_name': 'swir16' , 'description': 'SWIR 1 (band 11)' , 'center_wavelength': 1.61 , 'full_width_half_max': 0.143 } ],
gsd: 20,
proj:shape: [5490 , 5490 ],
proj:transform: [20 , 0 , 499980 , 0 , -20 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 20 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B12':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B12',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B12.jp2',
type: 'image/jp2',
title: 'B12',
eo:bands: [{ 'name': 'swir22' , 'common_name': 'swir22' , 'description': 'SWIR 2 (band 12)' , 'center_wavelength': 2.19 , 'full_width_half_max': 0.242 } ],
gsd: 20,
proj:shape: [5490 , 5490 ],
proj:transform: [20 , 0 , 499980 , 0 , -20 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 20 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'B8A':  { 'roles': '['data']',  'type': 'image/jp2',  'title': 'B8A',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/B8A.jp2',
type: 'image/jp2',
title: 'B8A',
eo:bands: [{ 'name': 'nir08' , 'common_name': 'nir08' , 'description': 'NIR 2 (band 8A)' , 'center_wavelength': 0.865 , 'full_width_half_max': 0.033 } ],
gsd: 20,
proj:shape: [5490 , 5490 ],
proj:transform: [20 , 0 , 499980 , 0 , -20 , 7000020 ],
raster:bands: [{ 'nodata': 0 , 'data_type': 'uint16' , 'bits_per_sample': 15 , 'spatial_resolution': 20 , 'scale': 0.0001 , 'offset': -0.1 } ],
roles: ['data' ],
}
'TCI':  { 'roles': '['visual']',  'type': 'image/jp2',  'title': 'TCI',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/TCI.jp2',
type: 'image/jp2',
title: 'TCI',
eo:bands: [{ 'name': 'red' , 'common_name': 'red' , 'description': 'Red (band 4)' , 'center_wavelength': 0.665 , 'full_width_half_max': 0.038 } ,
{ 'name': 'green' , 'common_name': 'green' , 'description': 'Green (band 3)' , 'center_wavelength': 0.56 , 'full_width_half_max': 0.045 } ,
{ 'name': 'blue' , 'common_name': 'blue' , 'description': 'Blue (band 2)' , 'center_wavelength': 0.49 , 'full_width_half_max': 0.098 } ],
proj:shape: [10980 , 10980 ],
proj:transform: [10 , 0 , 499980 , 0 , -10 , 7000020 ],
roles: ['visual' ],
}
'metadata.xml':  { 'roles': '['metadata']',  'type': 'application/xml',  'title': 'metadata.xml',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/metadata.xml',
type: 'application/xml',
roles: ['metadata' ],
title: 'metadata.xml',
}
'preview.jpg':  { 'roles': '['auxiliary']',  'type': 'image/jpeg',  'title': 'preview.jpg',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/preview.jpg',
type: 'image/jpeg',
title: 'preview.jpg',
roles: ['auxiliary' ],
}
'tileInfo.json':  { 'roles': '['metadata']',  'type': 'application/json',  'title': 'tileInfo.json',  ... } {
href: 's3://sentinel-s2-l1c/tiles/27/V/WK/2024/2/6/0/tileInfo.json',
type: 'application/json',
roles: ['metadata' ],
title: 'tileInfo.json',
}
geometry
1  EOProduct(id=S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847, provider=generic_stac_provider)
EOProduct
provider: 'generic_stac_provider',
collection: 'sentinel-2-l1c',
properties["id"]: 'S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847',
properties: (25){
constellation: 'Sentinel 2',
datetime: '2025-05-10T09:48:47Z',
id: 'S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847',
instruments: ['msi' ],
platform: 'Sentinel-2A',
title: 'S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847',
eo:cloud_cover: 99.495267102631,
eodag:download_link: 'https://stac.sage.uvt.ro/collections/sentinel-2-l1c/items/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847',
order:status: 'succeeded',
proj:code: 'EPSG:32636',
s2:datastrip_id: 'S2A_OPER_MSI_L1C_DS_2APS_20250510T094847_S20250510T085645_N05.11',
s2:datatake_id: 'GS2A_20250510T084731_051613_N05.11',
s2:datatake_type: 'INS-NOBS',
s2:degraded_msi_data_percentage: 0.0,
s2:generation_time: '2025-05-10T09:48:47+00:00',
s2:granule_id: 'S2A_OPER_MSI_L1C_TL_2APS_20250510T094847_A051613_T36TUR_N05.11',
s2:mean_solar_azimuth: 153.62398533626,
s2:mean_solar_zenith: 29.9947762743748,
s2:mgrs_tile: 'T36TUR',
s2:processing_baseline: 5.11,
s2:product_type: 'S2MSI1C',
s2:product_uri: 'S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE',
s2:snow_ice_percentage: 0.0,
sat:orbit_state: 'descending',
sat:relative_orbit: 107,
}
assets: (22)
'B01':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B01',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B01.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B01',
eo:bands: [{ 'name': 'B01' , 'common_name': 'coastal' , 'description': 'Band 1 - Coastal aerosol' , 'center_wavelength': 0.443 , 'full_width_half_max': 0.027 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [1830 , 1830 ],
proj:transform: [60.0 , 0.0 , 300000.0 , 0.0 , -60.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B02':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B02',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B02.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B02',
eo:bands: [{ 'name': 'B02' , 'common_name': 'blue' , 'description': 'Band 2 - Blue' , 'center_wavelength': 0.49 , 'full_width_half_max': 0.098 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [10980 , 10980 ],
proj:transform: [10.0 , 0.0 , 300000.0 , 0.0 , -10.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B03':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B03',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B03.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B03',
eo:bands: [{ 'name': 'B03' , 'common_name': 'green' , 'description': 'Band 3 - Green' , 'center_wavelength': 0.56 , 'full_width_half_max': 0.045 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [10980 , 10980 ],
proj:transform: [10.0 , 0.0 , 300000.0 , 0.0 , -10.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B04':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B04',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B04.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B04',
eo:bands: [{ 'name': 'B04' , 'common_name': 'red' , 'description': 'Band 4 - Red' , 'center_wavelength': 0.665 , 'full_width_half_max': 0.038 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [10980 , 10980 ],
proj:transform: [10.0 , 0.0 , 300000.0 , 0.0 , -10.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B05':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B05',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B05.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B05',
eo:bands: [{ 'name': 'B05' , 'common_name': 'rededge' , 'description': 'Band 5 - Vegetation red edge 1' , 'center_wavelength': 0.704 , 'full_width_half_max': 0.019 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [5490 , 5490 ],
proj:transform: [20.0 , 0.0 , 300000.0 , 0.0 , -20.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B06':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B06',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B06.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B06',
eo:bands: [{ 'name': 'B06' , 'common_name': 'rededge' , 'description': 'Band 6 - Vegetation red edge 2' , 'center_wavelength': 0.74 , 'full_width_half_max': 0.018 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [5490 , 5490 ],
proj:transform: [20.0 , 0.0 , 300000.0 , 0.0 , -20.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B07':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B07',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B07.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B07',
eo:bands: [{ 'name': 'B07' , 'common_name': 'rededge' , 'description': 'Band 7 - Vegetation red edge 3' , 'center_wavelength': 0.783 , 'full_width_half_max': 0.028 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [5490 , 5490 ],
proj:transform: [20.0 , 0.0 , 300000.0 , 0.0 , -20.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B08':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B08',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B08.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B08',
eo:bands: [{ 'name': 'B08' , 'common_name': 'nir' , 'description': 'Band 8 - NIR' , 'center_wavelength': 0.842 , 'full_width_half_max': 0.145 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [10980 , 10980 ],
proj:transform: [10.0 , 0.0 , 300000.0 , 0.0 , -10.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B09':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B09',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B09.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B09',
eo:bands: [{ 'name': 'B09' , 'description': 'Band 9 - Water vapor' , 'center_wavelength': 0.945 , 'full_width_half_max': 0.026 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [1830 , 1830 ],
proj:transform: [60.0 , 0.0 , 300000.0 , 0.0 , -60.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B10':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B10',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B10.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B10',
eo:bands: [{ 'name': 'B10' , 'common_name': 'cirrus' , 'description': 'Band 11 - SWIR (1.3)' , 'center_wavelength': 1.375 , 'full_width_half_max': 0.075 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [1830 , 1830 ],
proj:transform: [60.0 , 0.0 , 300000.0 , 0.0 , -60.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B11':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B11',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B11.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B11',
eo:bands: [{ 'name': 'B11' , 'common_name': 'swir16' , 'description': 'Band 11 - SWIR (1.6)' , 'center_wavelength': 1.61 , 'full_width_half_max': 0.143 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [5490 , 5490 ],
proj:transform: [20.0 , 0.0 , 300000.0 , 0.0 , -20.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B12':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B12',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B12.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B12',
eo:bands: [{ 'name': 'B12' , 'common_name': 'swir22' , 'description': 'Band 12 - SWIR (2.2)' , 'center_wavelength': 2.19 , 'full_width_half_max': 0.242 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [5490 , 5490 ],
proj:transform: [20.0 , 0.0 , 300000.0 , 0.0 , -20.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'B8A':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'B8A',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_B8A.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'B8A',
eo:bands: [{ 'name': 'B8A' , 'common_name': 'rededge' , 'description': 'Band 8A - Vegetation red edge 4' , 'center_wavelength': 0.865 , 'full_width_half_max': 0.033 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [5490 , 5490 ],
proj:transform: [20.0 , 0.0 , 300000.0 , 0.0 , -20.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'CLDFMASK':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'CLDFMASK',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_CLDFMASK.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'CLDFMASK',
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [5490 , 5490 ],
proj:transform: [20.0 , 0.0 , 300000.0 , 0.0 , -20.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['data' ],
}
'INSPIRE.xml':  { 'roles': '['metadata']',  'type': 'application/xml',  'title': 'INSPIRE.xml',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/INSPIRE.xml',
type: 'application/xml',
title: 'INSPIRE.xml',
roles: ['metadata' ],
}
'MTD_DS.xml':  { 'roles': '['metadata']',  'type': 'application/xml',  'title': 'MTD_DS.xml',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/DATASTRIP/DS_2APS_20250510T094847_S20250510T085645/MTD_DS.xml',
type: 'application/xml',
title: 'MTD_DS.xml',
roles: ['metadata' ],
}
'MTD_MSIL1C.xml':  { 'roles': '['metadata']',  'type': 'application/xml',  'title': 'MTD_MSIL1C.xml',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/MTD_MSIL1C.xml',
type: 'application/xml',
title: 'MTD_MSIL1C.xml',
roles: ['metadata' ],
}
'MTD_TL.xml':  { 'roles': '['metadata']',  'type': 'application/xml',  'title': 'MTD_TL.xml',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/MTD_TL.xml',
type: 'application/xml',
title: 'MTD_TL.xml',
roles: ['metadata' ],
}
'PVI':  { 'roles': '['data']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'PVI',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/QI_DATA/T36TUR_20250510T084731_PVI.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'PVI',
roles: ['data' ],
}
'TCI':  { 'roles': '['visual']',  'type': 'image/tiff; application=geotiff; profile=cloud-optimized',  'title': 'TCI',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/GRANULE/L1C_T36TUR_A051613_20250510T085645/IMG_DATA/T36TUR_20250510T084731_TCI.tif',
type: 'image/tiff; application=geotiff; profile=cloud-optimized',
title: 'TCI',
eo:bands: [{ 'name': 'B04' , 'common_name': 'red' , 'description': 'Band 4 - Red' , 'center_wavelength': 0.665 , 'full_width_half_max': 0.038 } ,
{ 'name': 'B03' , 'common_name': 'green' , 'description': 'Band 3 - Green' , 'center_wavelength': 0.56 , 'full_width_half_max': 0.045 } ,
{ 'name': 'B02' , 'common_name': 'blue' , 'description': 'Band 2 - Blue' , 'center_wavelength': 0.49 , 'full_width_half_max': 0.098 } ],
proj:bbox: [300000.0 , 4990200.0 , 409800.0 , 5100000.0 ],
proj:shape: [10980 , 10980 ],
proj:transform: [10.0 , 0.0 , 300000.0 , 0.0 , -10.0 , 5100000.0 , 0.0 , 0.0 , 1.0 ],
proj:code: 'EPSG:32636',
roles: ['visual' ],
}
'manifest.safe':  { 'roles': '['metadata']',  'type': 'application/xml',  'title': 'manifest.safe',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/manifest.safe',
type: 'application/xml',
title: 'manifest.safe',
roles: ['metadata' ],
}
'ql.jpg':  { 'roles': '['overview']',  'type': 'image/jpeg',  'title': 'ql.jpg',  ... } {
href: 'https://storage.info.uvt.ro/eodata/Sentinel-2/2025/5/10/T36TUR/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847.SAFE/S2A_MSIL1C_20250510T084731_N0511_R107_T36TUR_20250510T094847-ql.jpg',
type: 'image/jpeg',
title: 'ql.jpg',
roles: ['overview' ],
}
geometry

SearchResult.from_dict#

SearchResult.from_dict() will build a SearchResult from a given dictionary. If dag parameter is given, the method will use it to register products downloader. If not provided, the downloader and authenticator will not be registered.

[22]:
SearchResult.from_dict(search_results_dict, dag=dag)
[22]:
SearchResult (2)
0  EOProduct(id=S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
properties["start_datetime"]: '2024-07-03T10:46:29.024000Z',
properties["end_datetime"]: '2024-07-03T10:46:29.024000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-03T10:46:29.024000Z',
end_datetime: '2024-07-03T10:46:29.024000Z',
id: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
instruments: ['MSI' ],
platform: 'S2B',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-03T12:42:14.249198Z',
start_datetime: '2024-07-03T10:46:29.024000Z',
title: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
uid: 'c010825a-c3a6-46a0-948e-005521edf124',
updated: '2024-11-09T03:15:32.907273Z',
cop_dataspace:sourceProduct: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z',
eo:cloud_cover: 14.423965639102,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-03T11:43:18.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10',
s2:datatake_id: 'GS2B_20240703T104629_038258_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10',
sat:absolute_orbit: 38258,
sat:relative_orbit: 51,
}
assets: (0)
geometry
thumbnail
1  EOProduct(id=S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
properties["start_datetime"]: '2024-07-05T10:40:21.025000Z',
properties["end_datetime"]: '2024-07-05T10:40:21.025000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-05T10:40:21.025000Z',
end_datetime: '2024-07-05T10:40:21.025000Z',
id: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
instruments: ['MSI' ],
platform: 'S2A',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-05T16:44:47.318744Z',
start_datetime: '2024-07-05T10:40:21.025000Z',
title: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
uid: '5193fc1e-6e68-40ab-8e0f-fc1c55cb01da',
updated: '2024-11-08T21:39:34.502029Z',
cop_dataspace:sourceProduct: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10,S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10,S2A_OPER_MSI_L1C_TC_2APS_20240705T142137_A047195_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-05T16:33:16Z,2024-07-05T16:32:39Z,2024-07-05T16:33:18Z',
eo:cloud_cover: 59.366657708501,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(5193fc1e-6e68-40ab-8e0f-fc1c55cb01da)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-05T14:21:37.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10',
s2:datatake_id: 'GS2A_20240705T104021_047195_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10',
sat:absolute_orbit: 47195,
sat:relative_orbit: 8,
}
assets: (0)
geometry
thumbnail

SearchResult.from_file#

SearchResult.from_dict() will build a SearchResult from a serialized Features Collection file. If dag parameter is given, the method will use it to register products downloader. If not provided, the downloader and authenticator will not be registered.

[23]:
SearchResult.from_file(output_file, dag=dag)
[23]:
SearchResult (2)
0  EOProduct(id=S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
properties["start_datetime"]: '2024-07-03T10:46:29.024000Z',
properties["end_datetime"]: '2024-07-03T10:46:29.024000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-03T10:46:29.024000Z',
end_datetime: '2024-07-03T10:46:29.024000Z',
id: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
instruments: ['MSI' ],
platform: 'S2B',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-03T12:42:14.249198Z',
start_datetime: '2024-07-03T10:46:29.024000Z',
title: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
uid: 'c010825a-c3a6-46a0-948e-005521edf124',
updated: '2024-11-09T03:15:32.907273Z',
cop_dataspace:sourceProduct: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z',
eo:cloud_cover: 14.423965639102,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-03T11:43:18.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10',
s2:datatake_id: 'GS2B_20240703T104629_038258_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10',
sat:absolute_orbit: 38258,
sat:relative_orbit: 51,
}
assets: (0)
geometry
thumbnail
1  EOProduct(id=S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
properties["start_datetime"]: '2024-07-05T10:40:21.025000Z',
properties["end_datetime"]: '2024-07-05T10:40:21.025000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-05T10:40:21.025000Z',
end_datetime: '2024-07-05T10:40:21.025000Z',
id: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
instruments: ['MSI' ],
platform: 'S2A',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-05T16:44:47.318744Z',
start_datetime: '2024-07-05T10:40:21.025000Z',
title: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
uid: '5193fc1e-6e68-40ab-8e0f-fc1c55cb01da',
updated: '2024-11-08T21:39:34.502029Z',
cop_dataspace:sourceProduct: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10,S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10,S2A_OPER_MSI_L1C_TC_2APS_20240705T142137_A047195_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-05T16:33:16Z,2024-07-05T16:32:39Z,2024-07-05T16:33:18Z',
eo:cloud_cover: 59.366657708501,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(5193fc1e-6e68-40ab-8e0f-fc1c55cb01da)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-05T14:21:37.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10',
s2:datatake_id: 'GS2A_20240705T104021_047195_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10',
sat:absolute_orbit: 47195,
sat:relative_orbit: 8,
}
assets: (0)
geometry
thumbnail

SearchResult.from_pystac#

SearchResult.from_pystac() will build a SearchResult from a pystac.ItemCollection. If dag parameter is given, the method will use it to register products downloader. If not provided, the downloader and authenticator will not be registered.

[24]:
SearchResult.from_pystac(pystac_item_collection, dag=dag)
[24]:
SearchResult (2)
0  EOProduct(id=S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
properties["start_datetime"]: '2024-07-03T10:46:29.024000Z',
properties["end_datetime"]: '2024-07-03T10:46:29.024000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-03T10:46:29.024000Z',
end_datetime: '2024-07-03T10:46:29.024000Z',
id: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
instruments: ['MSI' ],
platform: 'S2B',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-03T12:42:14.249198Z',
start_datetime: '2024-07-03T10:46:29.024000Z',
title: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
uid: 'c010825a-c3a6-46a0-948e-005521edf124',
updated: '2024-11-09T03:15:32.907273Z',
cop_dataspace:sourceProduct: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z',
eo:cloud_cover: 14.423965639102,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-03T11:43:18.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10',
s2:datatake_id: 'GS2B_20240703T104629_038258_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10',
sat:absolute_orbit: 38258,
sat:relative_orbit: 51,
}
assets: (0)
geometry
thumbnail
1  EOProduct(id=S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137, provider=cop_dataspace)
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
properties["start_datetime"]: '2024-07-05T10:40:21.025000Z',
properties["end_datetime"]: '2024-07-05T10:40:21.025000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-05T10:40:21.025000Z',
end_datetime: '2024-07-05T10:40:21.025000Z',
id: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
instruments: ['MSI' ],
platform: 'S2A',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-05T16:44:47.318744Z',
start_datetime: '2024-07-05T10:40:21.025000Z',
title: 'S2A_MSIL1C_20240705T104021_N0510_R008_T31TEJ_20240705T142137',
uid: '5193fc1e-6e68-40ab-8e0f-fc1c55cb01da',
updated: '2024-11-08T21:39:34.502029Z',
cop_dataspace:sourceProduct: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10,S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10,S2A_OPER_MSI_L1C_TC_2APS_20240705T142137_A047195_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-05T16:33:16Z,2024-07-05T16:32:39Z,2024-07-05T16:33:18Z',
eo:cloud_cover: 59.366657708501,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(5193fc1e-6e68-40ab-8e0f-fc1c55cb01da)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(afbc766b-b6cd-448c-a01a-872cff8fce36)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-05T14:21:37.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2A_OPER_MSI_L1C_DS_2APS_20240705T142137_S20240705T104024_N05.10',
s2:datatake_id: 'GS2A_20240705T104021_047195_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2A_OPER_MSI_L1C_TL_2APS_20240705T142137_A047195_T31TEJ_N05.10',
sat:absolute_orbit: 47195,
sat:relative_orbit: 8,
}
assets: (0)
geometry
thumbnail

EOProduct.from_dict#

EOProduct.from_dict() will build a EOProduct from a given dictionary. If dag parameter is given, the method will use it to register the product downloader. If not provided, the downloader and authenticator will not be registered.

[25]:
EOProduct.from_dict(product_dict, dag=dag)
[25]:
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
properties["start_datetime"]: '2024-07-03T10:46:29.024000Z',
properties["end_datetime"]: '2024-07-03T10:46:29.024000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-03T10:46:29.024000Z',
end_datetime: '2024-07-03T10:46:29.024000Z',
id: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
instruments: ['MSI' ],
platform: 'S2B',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-03T12:42:14.249198Z',
start_datetime: '2024-07-03T10:46:29.024000Z',
title: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
uid: 'c010825a-c3a6-46a0-948e-005521edf124',
updated: '2024-11-09T03:15:32.907273Z',
cop_dataspace:sourceProduct: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z',
eo:cloud_cover: 14.423965639102,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-03T11:43:18.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10',
s2:datatake_id: 'GS2B_20240703T104629_038258_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10',
sat:absolute_orbit: 38258,
sat:relative_orbit: 51,
}
assets: (0)
geometry
thumbnail

EOProduct.from_file#

EOProduct.from_file() will build a EOProduct from a serialized Feature / STAC item file. If dag parameter is given, the method will use it to register the product downloader. If not provided, the downloader and authenticator will not be registered.

[26]:
# save serialized to file
product_filepath = Path(workspace) / "product.json"
with open(product_filepath, "w") as f:
    json.dump(product_dict, f)

# build EOProduct from file
EOProduct.from_file(product_filepath, dag=dag)
[26]:
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
properties["start_datetime"]: '2024-07-03T10:46:29.024000Z',
properties["end_datetime"]: '2024-07-03T10:46:29.024000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-03T10:46:29.024000Z',
end_datetime: '2024-07-03T10:46:29.024000Z',
id: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
instruments: ['MSI' ],
platform: 'S2B',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-03T12:42:14.249198Z',
start_datetime: '2024-07-03T10:46:29.024000Z',
title: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
uid: 'c010825a-c3a6-46a0-948e-005521edf124',
updated: '2024-11-09T03:15:32.907273Z',
cop_dataspace:sourceProduct: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z',
eo:cloud_cover: 14.423965639102,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-03T11:43:18.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10',
s2:datatake_id: 'GS2B_20240703T104629_038258_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10',
sat:absolute_orbit: 38258,
sat:relative_orbit: 51,
}
assets: (0)
geometry
thumbnail

EOProduct.from_pystac#

EOProduct.from_pystac() will build a EOProduct from a pystac.Item. If dag parameter is given, the method will use it to register the product downloader. If not provided, the downloader and authenticator will not be registered.

[27]:
EOProduct.from_pystac(pystac_item, dag=dag)
[27]:
EOProduct
provider: 'cop_dataspace',
collection: 'S2_MSI_L1C',
properties["id"]: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
properties["start_datetime"]: '2024-07-03T10:46:29.024000Z',
properties["end_datetime"]: '2024-07-03T10:46:29.024000Z',
properties: (30){
constellation: 'SENTINEL-2',
datetime: '2024-07-03T10:46:29.024000Z',
end_datetime: '2024-07-03T10:46:29.024000Z',
id: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
instruments: ['MSI' ],
platform: 'S2B',
providers: [{ 'name': 'ESA' , 'roles': ['producer' ] } ,
{ 'name': 'cop_dataspace' , 'roles': ['host' ] } ],
published: '2024-07-03T12:42:14.249198Z',
start_datetime: '2024-07-03T10:46:29.024000Z',
title: 'S2B_MSIL1C_20240703T104629_N0510_R051_T31TEJ_20240703T114318',
uid: 'c010825a-c3a6-46a0-948e-005521edf124',
updated: '2024-11-09T03:15:32.907273Z',
cop_dataspace:sourceProduct: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10,S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10,S2B_OPER_MSI_L1C_TC_2BPS_20240703T114318_A038258_T31TEJ_N05.10.jp2',
cop_dataspace:sourceProductOriginDate: '2024-07-03T12:35:09Z,2024-07-03T12:23:12Z,2024-07-03T12:35:09Z',
eo:cloud_cover: 14.423965639102,
eodag:download_link: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Products(c010825a-c3a6-46a0-948e-005521edf124)/$value',
eodag:quicklook: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
eodag:thumbnail: 'https://catalogue.dataspace.copernicus.eu/odata/v1/Assets(396a9522-3f07-4645-9196-a65c349ad8e9)/$value',
grid:code: 'MGRS-31TEJ',
order:status: 'succeeded',
processing:datetime: '2024-07-03T11:43:18.000000Z',
processing:level: 'S2MSI1C',
processing:version: '05.10',
product:type: 'S2MSI1C',
s2:datastrip_id: 'S2B_OPER_MSI_L1C_DS_2BPS_20240703T114318_S20240703T104623_N05.10',
s2:datatake_id: 'GS2B_20240703T104629_038258_N05.10',
s2:datatake_type: 'INS-NOBS',
s2:tile_id: 'S2B_OPER_MSI_L1C_TL_2BPS_20240703T114318_A038258_T31TEJ_N05.10',
sat:absolute_orbit: 38258,
sat:relative_orbit: 51,
}
assets: (0)
geometry
thumbnail