
Author: EUMETSAT
Copyright: 2024 EUMETSAT
Licence: MIT
HDA PySTAC-Client Introduction#
This notebook shows the basic use of DestinE Data Lake Harmonised Data Access using pystac-client. It will include iterating through Collections and Items, and perform simple spatio-temporal searches.
Obtain DEDL Access Token to use the HDA service#
pip install --quiet --upgrade destinelab
Note: you may need to restart the kernel to use updated packages.
import requests
import json
import os
from getpass import getpass
import destinelab as deauth
DESP_USERNAME = input("Please input your DESP username or email: ")
DESP_PASSWORD = getpass("Please input your DESP password: ")
auth = deauth.AuthHandler(DESP_USERNAME, DESP_PASSWORD)
access_token = auth.get_token()
if access_token is not None:
print("DEDL/DESP Access Token Obtained Successfully")
else:
print("Failed to Obtain DEDL/DESP Access Token")
auth_headers = {"Authorization": f"Bearer {access_token}"}
Response code: 200
DEDL/DESP Access Token Obtained Successfully
Set username and password as environment variables to be used for DEDL data access#
import os
os.environ["EODAG__DEDL__AUTH__CREDENTIALS__USERNAME"] = DESP_USERNAME
os.environ["EODAG__DEDL__AUTH__CREDENTIALS__PASSWORD"] = DESP_PASSWORD
Create pystac client object for HDA STAC API#
We first connect to an API by retrieving the root catalog, or landing page, of the API with the Client.open function.
from pystac_client import Client
HDA_API_URL = "https://hda.data.destination-earth.eu/stac"
cat = Client.open(HDA_API_URL, headers=auth_headers)
Query all available collections#
As with a static catalog the get_collections function will iterate through the Collections in the Catalog. Notice that because this is an API it can get all the Collections through a single call, rather than having to fetch each one individually.
from rich.console import Console
import rich.table
console = Console()
hda_collections = cat.get_collections()
table = rich.table.Table(title="HDA collections", expand=True)
table.add_column("ID", style="cyan", justify="right",no_wrap=True)
table.add_column("Title", style="violet", no_wrap=True)
for collection in hda_collections:
table.add_row(collection.id, collection.title)
console.print(table)
HDA collections ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ID ┃ Title ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ EO.CLMS.DAT.CORINE │ CORINE Land Cover │ │ EO.CLMS.DAT.GLO.DMP300_V1 │ Dry Matter Productivity 2014-present (raster 300 m), global, 10-dail… │ │ EO.CLMS.DAT.GLO.FAPAR300_V1 │ Fraction of Absorbed Photosynthetically Active Radiation 2014-presen… │ │ EO.CLMS.DAT.GLO.FCOVER300_V1 │ Fraction of Green Vegetation Cover 2014-present (raster 300 m), glob… │ │ EO.CLMS.DAT.GLO.GDMP300_V1 │ Gross Dry Matter Productivity 2014-present (raster 300 m), global, 1… │ │ EO.CLMS.DAT.GLO.LAI300_V1 │ Leaf Area Index 2014-present (raster 300 m), global, 10-daily – vers… │ │ EO.CLMS.DAT.GLO.NDVI300_V1 │ Normalised Difference Vegetation Index 2014-2020 (raster 300 m), glo… │ │ EO.CLMS.DAT.GLO.NDVI_1KM_V2 │ Normalised Difference Vegetation Index 1998-2020 (raster 1 km), glob… │ │ EO.CLMS.DAT.SENTINEL-2.HRVPP.VI │ High Resolution Vegetation Phenology and Productivity: Vegetation In… │ │ EO.DEM.DAT.COP-DEM_GLO-30-DGED │ COPERNICUS Digital Elevation Model (DEM) 30 meters DGED │ │ EO.DEM.DAT.COP-DEM_GLO-30-DTED │ COPERNICUS Digital Elevation Model (DEM) 30 meters DTED │ │ EO.DEM.DAT.COP-DEM_GLO-90-DGED │ COPERNICUS Digital Elevation Model (DEM) 90 meters DGED │ │ EO.DEM.DAT.COP-DEM_GLO-90-DTED │ COPERNICUS Digital Elevation Model (DEM) 90 meters DTED │ │ EO.ECMWF.DAT.CAMS_EUROPE_AIR_QUALITY_F… │ CAMS European air quality forecasts │ │ EO.ECMWF.DAT.CAMS_EUROPE_AIR_QUALITY_R… │ CAMS European air quality reanalyses │ │ EO.ECMWF.DAT.CAMS_GLOBAL_ATMOSHERIC_CO… │ CAMS global atmospheric composition forecasts │ │ EO.ECMWF.DAT.CAMS_GLOBAL_EMISSION_INVE… │ CAMS global emission inventories │ │ EO.ECMWF.DAT.CAMS_GLOBAL_FIRE_EMISSION… │ CAMS global biomass burning emissions based on fire radiative power … │ │ EO.ECMWF.DAT.CAMS_GLOBAL_GREENHOUSE_GA… │ CAMS global greenhouse gas reanalysis (EGG4) │ │ EO.ECMWF.DAT.CAMS_GLOBAL_GREENHOUSE_GA… │ CAMS global greenhouse gas reanalysis (EGG4) monthly averaged fields │ │ EO.ECMWF.DAT.CAMS_GLOBAL_RADIATIVE_FOR… │ CAMS global radiative forcings │ │ EO.ECMWF.DAT.CAMS_GLOBAL_RADIATIVE_FOR… │ CAMS global radiative forcing - auxilliary variables │ │ EO.ECMWF.DAT.CAMS_GLOBAL_REANALYSIS_EA… │ CAMS global reanalysis (EAC4) │ │ EO.ECMWF.DAT.CAMS_GLOBAL_REANALYSIS_EA… │ CAMS global reanalysis (EAC4) monthly averaged fields │ │ EO.ECMWF.DAT.CAMS_GREENHOUSE_GAS_FLUXES │ CAMS global inversion-optimised greenhouse gas fluxes and concentrat… │ │ EO.ECMWF.DAT.CAMS_SOLAR_RADIATION_TIME… │ CAMS solar radiation time-series │ │ EO.ECMWF.DAT.CEMS_FIRE_HISTORICAL │ Fire danger indices historical data from the Copernicus Emergency Ma… │ │ EO.ECMWF.DAT.CEMS_GLOFAS_FORECAST │ River discharge and related forecasted data by the European Flood Aw… │ │ EO.ECMWF.DAT.CEMS_GLOFAS_HISTORICAL │ River discharge and related historical data from the Global Flood Aw… │ │ EO.ECMWF.DAT.CEMS_GLOFAS_REFORECAST │ Reforecasts of river discharge and related data by the Global Flood … │ │ EO.ECMWF.DAT.CEMS_GLOFAS_SEASONAL │ Seasonal forecasts of river discharge and related data by the Global… │ │ EO.ECMWF.DAT.CEMS_GLOFAS_SEASONAL_REFO… │ Seasonal reforecasts of river discharge and related data from the Gl… │ │ EO.ECMWF.DAT.CO2_DATA_FROM_SATELLITE_S… │ Carbon dioxide data from 2002 to present derived from satellite obse… │ │ EO.ECMWF.DAT.DERIVED_GRIDDED_GLACIER_M… │ │ │ EO.ECMWF.DAT.DT_CLIMATE_ADAPTATION │ Climate Change Adaptation Digital Twin (Climate Adaptation DT) │ │ EO.ECMWF.DAT.DT_EXTREMES │ DT Weather-Induced Extremes Digital Twin (Extremes DT) │ │ EO.ECMWF.DAT.EFAS_FORECAST │ River discharge and related forecasted data by the European Flood Aw… │ │ EO.ECMWF.DAT.EFAS_HISTORICAL │ River discharge and related historical data from the European Flood … │ │ EO.ECMWF.DAT.EFAS_REFORECAST │ Reforecasts of river discharge and related data by the European Floo… │ │ EO.ECMWF.DAT.EFAS_SEASONAL │ Seasonal forecasts of river discharge and related data by the Europe… │ │ EO.ECMWF.DAT.EFAS_SEASONAL_REFORECAST │ Seasonal reforecasts of river discharge and related data by the Euro… │ │ EO.ECMWF.DAT.ERA5_HOURLY_VARIABLES_ON_… │ ERA5 hourly data on pressure levels from 1940 to present │ │ EO.ECMWF.DAT.ERA5_LAND_HOURLY │ ERA5-Land hourly data from 1950 to present │ │ EO.ECMWF.DAT.ERA5_LAND_MONTHLY │ ERA5-Land monthly averaged data from 1950 to present │ │ EO.ECMWF.DAT.ERA5_MONTHLY_MEANS_VARIAB… │ ERA5 monthly averaged data on pressure levels from 1940 to present │ │ EO.ECMWF.DAT.GLACIERS_DISTRIBUTION_DAT… │ Glaciers distribution data from the Randolph Glacier Inventory for y… │ │ EO.ECMWF.DAT.METHANE_DATA_SATELLITE_SE… │ Methane data from 2002 to present derived from satellite observations │ │ EO.ECMWF.DAT.REANALYSIS_ERA5_SINGLE_LE… │ ERA5 hourly data on single levels from 1940 to present │ │ EO.ECMWF.DAT.REANALYSIS_ERA5_SINGLE_LE… │ ERA5 monthly averaged data on single levels from 1940 to present │ │ EO.ECMWF.DAT.REANALYSIS_UERRA_EUROPE_S… │ UERRA regional reanalysis for Europe on single levels from 1961 to 2… │ │ EO.ECMWF.DAT.SATELLITE_SEA_ICE_CONCENT… │ Sea ice concentration │ │ EO.ECMWF.DAT.SATELLITE_SEA_ICE_EDGE_TY… │ Sea ice edge and type │ │ EO.ECMWF.DAT.SATELLITE_SEA_ICE_THICKNE… │ Sea ice thickness │ │ EO.ECMWF.DAT.SEASONAL_FORECAST_ANOMALI… │ Seasonal forecast anomalies on pressure levels │ │ EO.ECMWF.DAT.SEASONAL_FORECAST_ANOMALI… │ Seasonal forecast anomalies on single levels │ │ EO.ECMWF.DAT.SEASONAL_FORECAST_DAILY_D… │ Seasonal forecast subdaily data on pressure levels │ │ EO.ECMWF.DAT.SEASONAL_FORECAST_DAILY_D… │ Seasonal forecast daily and subdaily data on single levels │ │ EO.ECMWF.DAT.SEASONAL_FORECAST_MONTHLY… │ Seasonal forecast monthly statistics on pressure levels │ │ EO.ECMWF.DAT.SEASONAL_FORECAST_MONTHLY… │ Seasonal forecast monthly statistics on single levels │ │ EO.ECMWF.DAT.SEA_LEVEL_DAILY_GRIDDED_D… │ Sea level gridded data from satellite observations for the global oc… │ │ EO.ECMWF.DAT.SIS_HYDROLOGY_METEOROLOGY… │ Temperature and precipitation climate impact indicators from 1970 to… │ │ EO.ESA.DAT.SENTINEL-1.L1_GRD │ SENTINEL-1 Level 1 Ground Range Detected (GRD) │ │ EO.ESA.DAT.SENTINEL-1.L1_SLC │ SENTINEL-1 Level 1 Single Look Complex (SLC) - EODC store │ │ EO.ESA.DAT.SENTINEL-2.MSI.L1C │ Sentinel 2 MSI Level 1C │ │ EO.ESA.DAT.SENTINEL-2.MSI.L2A │ Sentinel 2 MSI Level 2-A │ │ EO.ESA.DAT.SENTINEL-3.OL_2_LFR___ │ OLCI Land Colour Full Resolution - Sentinel-3 │ │ EO.ESA.DAT.SENTINEL-3.OL_2_LRR___ │ OLCI Land Colour Reduced Resolution - Sentinel-3 │ │ EO.ESA.DAT.SENTINEL-3.SL_2_LST___ │ Level 2 Land - SLSTR - Sentinel-3 │ │ EO.ESA.DAT.SENTINEL-3.SR_2_LAN___ │ Level 2 Land - SRAL/MWR - Sentinel-3 │ │ EO.ESA.DAT.SENTINEL-5P.TROPOMI.L1 │ SENTINEL-5P TROPOMI Level 1B │ │ EO.ESA.DAT.SENTINEL-5P.TROPOMI.L2 │ SENTINEL-5P TROPOMI Level 2 │ │ EO.EUM.CM.METOP.ASCSZFR02 │ ASCAT Level 1 SZF Climate Data Record Release 2 - Metop │ │ EO.EUM.CM.METOP.ASCSZOR02 │ ASCAT Level 1 SZO Climate Data Record Release 2 - Metop │ │ EO.EUM.CM.METOP.ASCSZRR02 │ ASCAT Level 1 SZR Climate Data Record Release 2 - Metop │ │ EO.EUM.DAT.METOP.AMSUL1 │ AMSU-A Level 1B - Metop - Global │ │ EO.EUM.DAT.METOP.ASCSZF1B │ ASCAT Level 1 Sigma0 Full Resolution - Metop - Global │ │ EO.EUM.DAT.METOP.ASCSZO1B │ ASCAT Level 1 Sigma0 resampled at 25 km Swath Grid - Metop - Global │ │ EO.EUM.DAT.METOP.ASCSZR1B │ ASCAT Level 1 Sigma0 resampled at 12.5 km Swath Grid - Metop - Global │ │ EO.EUM.DAT.METOP.AVHRRGACR02 │ AVHRR GAC Atmospheric Motion Vectors Climate Data Record Release 2 -… │ │ EO.EUM.DAT.METOP.AVHRRL1 │ AVHRR Level 1B - Metop - Global │ │ EO.EUM.DAT.METOP.GLB-SST-NC │ Global L3C AVHRR Sea Surface Temperature (GHRSST) - Metop │ │ EO.EUM.DAT.METOP.GOMEL1 │ GOME-2 Level 1B - Metop - Global │ │ EO.EUM.DAT.METOP.GOMEL1R03 │ GOME-2 Level 1B Fundamental Data Record Release 3 - Metop-A and -B │ │ EO.EUM.DAT.METOP.IASIL1C-ALL │ IASI Level 1C - All Spectral Samples - Metop - Global │ │ EO.EUM.DAT.METOP.IASSND02 │ IASI Combined Sounding Products - Metop │ │ EO.EUM.DAT.METOP.IASTHR011 │ IASI All Sky Temperature and Humidity Profiles - Climate Data Record… │ │ EO.EUM.DAT.METOP.LSA-002 │ Daily Land Surface Temperature - Metop │ │ EO.EUM.DAT.METOP.MHSL1 │ MHS Level 1B - Metop - Global │ │ EO.EUM.DAT.METOP.OSI-104 │ ASCAT Coastal Winds at 12.5 km Swath Grid - Metop │ │ EO.EUM.DAT.METOP.OSI-150-A │ ASCAT L2 25 km Winds Data Record Release 1 - Metop │ │ EO.EUM.DAT.METOP.OSI-150-B │ ASCAT L2 12.5 km Winds Data Record Release 1 - Metop │ │ EO.EUM.DAT.METOP.SOMO12 │ ASCAT Soil Moisture at 12.5 km Swath Grid in NRT - Metop │ │ EO.EUM.DAT.METOP.SOMO25 │ ASCAT Soil Moisture at 25 km Swath Grid in NRT - Metop │ │ EO.EUM.DAT.MULT.HIRSL1 │ HIRS Level 1B - Metop - Global │ │ EO.EUM.DAT.SENTINEL-3.AOD │ SLSTR Level 2 Aerosol Optical Depth - Sentinel-3 │ │ EO.EUM.DAT.SENTINEL-3.FRP │ SLSTR Level 2 Fire Radiative Power - Sentinel 3 │ │ EO.EUM.DAT.SENTINEL-3.OL_1_EFR___ │ OLCI Level 1B Full Resolution - Sentinel-3 │ │ EO.EUM.DAT.SENTINEL-3.OL_1_ERR___ │ OLCI Level 1B Reduced Resolution - Sentinel-3 │ │ EO.EUM.DAT.SENTINEL-3.OL_2_WFR___ │ OLCI Level 2 Ocean Colour Full Resolution - Sentinel-3 │ │ EO.EUM.DAT.SENTINEL-3.OL_2_WRR___ │ OLCI Level 2 Ocean Colour Reduced Resolution - Sentinel-3 │ │ EO.EUM.DAT.SENTINEL-3.SL_1_RBT___ │ SLSTR Level 1B Radiances and Brightness Temperatures - Sentinel-3 │ │ EO.EUM.DAT.SENTINEL-3.SL_2_WST___ │ SLSTR Level 2 Sea Surface Temperature (SST) - Sentinel-3 │ │ EO.EUM.DAT.SENTINEL-3.SR_1_SRA_A_ │ SRAL Level 1B - Sentinel-3 │ │ EO.EUM.DAT.SENTINEL-3.SR_1_SRA_BS │ SRAL Level 1B stack echoes - Sentinel-3 │ │ EO.EUM.DAT.SENTINEL-3.SR_1_SRA___ │ SRAL Level 1B - Sentinel-3 │ │ EO.EUM.DAT.SENTINEL-3.SR_2_WAT___ │ SRAL Level 2 Altimetry Global - Sentinel-3 │ │ EO.GSW.DAT.CHANGE │ Global Surface Water Occurrence Change Intensity 1984-2020 │ │ EO.GSW.DAT.EXTENT │ Global Surface Water Maximum Water Extent 1984-2021 │ │ EO.GSW.DAT.OCCURRENCE │ Global Surface Water Occurrence 1984-2021 │ │ EO.GSW.DAT.RECURRENCE │ Global Surface Water Recurrence 1984-2021 │ │ EO.GSW.DAT.SEASONALITY │ Global Surface Water Seasonality 2014-2020 │ │ EO.GSW.DAT.TRANSITIONS │ Global Surface Water Transitions 1984-2021 │ │ EO.MO.DAT.GLOBAL_ANALYSISFORECAST_BGC_… │ Global Ocean Biogeochemistry Analysis and Forecast │ │ EO.MO.DAT.GLOBAL_ANALYSISFORECAST_PHY_… │ Global Ocean Physics Analysis and Forecast │ │ EO.MO.DAT.GLOBAL_ANALYSISFORECAST_WAV_… │ Global Ocean Waves Analysis and Forecast │ │ EO.MO.DAT.GLOBAL_MULTIYEAR_BGC_001_033 │ Global ocean low and mid trophic levels biomass content hindcast │ │ EO.MO.DAT.GLOBAL_MULTIYEAR_PHY_ENS_001… │ Global Ocean Ensemble Physics Reanalysis │ │ EO.MO.DAT.GLOBAL_MULTIYEAR_WAV_001_032 │ Global Ocean Waves Reanalysis │ │ EO.MO.DAT.INSITU_GLO_PHY_TS_OA_MY_013_… │ Global Ocean- Delayed Mode gridded CORA- In-situ Observations object… │ │ EO.MO.DAT.INSITU_GLO_PHY_TS_OA_NRT_013… │ Global Ocean- Real time in-situ observations objective analysis │ │ EO.MO.DAT.INSITU_GLO_PHY_UV_DISCRETE_N… │ Global Ocean- in-situ Near real time observations of ocean currents │ │ EO.MO.DAT.MULTIOBS_GLO_BGC_NUTRIENTS_C… │ Nutrient and carbon profiles vertical distribution │ │ EO.MO.DAT.MULTIOBS_GLO_BIO_BGC_3D_REP_… │ Global Ocean 3D Chlorophyll-a concentration, Particulate Backscatter… │ │ EO.MO.DAT.MULTIOBS_GLO_BIO_CARBON_SURF… │ Global Ocean Surface Carbon │ │ EO.MO.DAT.MULTIOBS_GLO_PHY_MYNRT_015_0… │ Global Total (COPERNICUS-GLOBCURRENT), Ekman and Geostrophic current… │ │ EO.MO.DAT.MULTIOBS_GLO_PHY_S_SURFACE_M… │ Multi Observation Global Ocean Sea Surface Salinity and Sea Surface … │ │ EO.MO.DAT.MULTIOBS_GLO_PHY_TSUV_3D_MYN… │ Multi Observation Global Ocean 3D Temperature Salinity Height Geostr… │ │ EO.MO.DAT.MULTIOBS_GLO_PHY_W_3D_REP_01… │ Global Observed Ocean Physics 3D Quasi-Geostrophic Currents (OMEGA3D) │ │ EO.MO.DAT.OCEANCOLOUR_GLO_BGC_L3_MY_00… │ Global Ocean Colour (Copernicus-GlobColour), Bio-Geo-Chemical, L3 (d… │ │ EO.MO.DAT.OCEANCOLOUR_GLO_BGC_L3_MY_00… │ Global Ocean Colour Plankton and Reflectances MY L3 daily observatio… │ │ EO.MO.DAT.OCEANCOLOUR_GLO_BGC_L3_NRT_0… │ Global Ocean Colour (Copernicus-GlobColour), Bio-Geo-Chemical, L3 (d… │ │ EO.MO.DAT.OCEANCOLOUR_GLO_BGC_L4_MY_00… │ Global Ocean Colour (Copernicus-GlobColour), Bio-Geo-Chemical, L4 (m… │ │ EO.MO.DAT.OCEANCOLOUR_GLO_BGC_L4_MY_00… │ Global Ocean Colour Plankton MY L4 monthly observations │ │ EO.MO.DAT.OCEANCOLOUR_GLO_BGC_L4_NRT_0… │ Global Ocean Colour (Copernicus-GlobColour), Bio-Geo-Chemical, L4 (m… │ │ EO.MO.DAT.SEAICE_GLO_SEAICE_L4_NRT_OBS… │ Global Ocean - Arctic and Antarctic - Sea Ice Concentration, Edge, T… │ │ EO.MO.DAT.SEAICE_GLO_SEAICE_L4_NRT_OBS… │ Global Ocean - High Resolution SAR Sea Ice Drift │ │ EO.MO.DAT.SEAICE_GLO_SEAICE_L4_REP_OBS… │ Global Ocean Sea Ice Concentration Time Series REPROCESSED (OSI-SAF) │ │ EO.MO.DAT.SEALEVEL_GLO_PHY_L4_NRT_008_… │ GLOBAL OCEAN GRIDDED L4 SEA SURFACE HEIGHTS AND DERIVED VARIABLES NRT │ │ EO.MO.DAT.SEALEVEL_GLO_PHY_MDT_008_063 │ GLOBAL OCEAN MEAN DYNAMIC TOPOGRAPHY │ │ EO.MO.DAT.SST_GLO_SST_L3S_NRT_OBSERVAT… │ ODYSSEA Global Ocean - Sea Surface Temperature Multi-sensor L3 Obser… │ │ EO.MO.DAT.SST_GLO_SST_L4_NRT_OBSERVATI… │ Global Ocean OSTIA Sea Surface Temperature and Sea Ice Analysis │ │ EO.MO.DAT.SST_GLO_SST_L4_REP_OBSERVATI… │ Global Ocean OSTIA Sea Surface Temperature and Sea Ice Reprocessed │ │ EO.MO.DAT.SST_GLO_SST_L4_REP_OBSERVATI… │ ESA SST CCI and C3S reprocessed sea surface temperature analyses │ │ EO.MO.DAT.WAVE_GLO_PHY_SWH_L3_NRT_014_… │ GLOBAL OCEAN L3 SIGNIFICANT WAVE HEIGHT FROM NRT SATELLITE MEASUREME… │ │ EO.MO.DAT.WAVE_GLO_PHY_SWH_L4_NRT_014_… │ GLOBAL OCEAN L4 SIGNIFICANT WAVE HEIGHT FROM NRT SATELLITE MEASUREME… │ │ EO.MO.DAT.WAVE_GLO_WAV_L3_SPC_NRT_OBSE… │ GLOBAL OCEAN L3 SPECTRAL PARAMETERS FROM NRT SATELLITE MEASUREMENTS │ │ EO.MO.DAT.WIND_GLO_PHY_CLIMATE_L4_MY_0… │ Global Ocean Monthly Mean Sea Surface Wind and Stress from Scatterom… │ │ EO.MO.DAT.WIND_GLO_PHY_L3_MY_012_005 │ Global Ocean Daily Gridded Reprocessed L3 Sea Surface Winds from Sca… │ │ EO.MO.DAT.WIND_GLO_PHY_L3_NRT_012_002 │ Global Ocean Daily Gridded Sea Surface Winds from Scatterometer │ │ EO.MO.DAT.WIND_GLO_PHY_L4_MY_012_006 │ Global Ocean Hourly Reprocessed Sea Surface Wind and Stress from Sca… │ │ EO.MO.DAT.WIND_GLO_PHY_L4_NRT_012_004 │ Global Ocean Hourly Sea Surface Wind and Stress from Scatterometer a… │ │ EO.NASA.DAT.LANDSAT.C2_L1 │ Landsat Collection 2 Level-1 │ │ EO.NASA.DAT.LANDSAT.C2_L2 │ Landsat Collection 2 Level-2 │ │ STAT.EUSTAT.DAT.GREENHOUSE_GAS_EMISSIO… │ Eurostat - Greenhouse gas emissions from agriculture │ │ STAT.EUSTAT.DAT.POP_AGE_GROUP_SEX_NUTS3 │ Population on 1 January by age, sex and NUTS 3 region │ │ STAT.EUSTAT.DAT.POP_AGE_SEX_NUTS2 │ Population on 1 January by age, sex and NUTS 2 region │ │ STAT.EUSTAT.DAT.POP_CHANGE_DEMO_BALANC… │ Eurostat - Population change - Demographic balance and crude rates a… │ │ STAT.EUSTAT.DAT.SHARE_ENERGY_FROM_RENE… │ Eurostat - Share of energy from renewable sources │ └─────────────────────────────────────────┴───────────────────────────────────────────────────────────────────────┘
Obtain provider information for each individual collection#
table = rich.table.Table(title="HDA collections | Providers", expand=True)
table.add_column("Title", style="cyan", justify="right", no_wrap=True)
table.add_column("Provider", style="violet", no_wrap=True)
hda_collections = cat.get_collections()
for collection in hda_collections:
collection_details = cat.get_collection(collection.id)
provider = ','.join(str(x.name) for x in collection_details.providers)
table.add_row(collection_details.title, provider)
console.print(table)
HDA collections | Providers ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Title ┃ Provider ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ CORINE Land Cover │ European Environment Agency,wekeo │ │ Dry Matter Productivity 2014-present (raster 300 m), … │ VITO NV,European Commission Directorate-General for I… │ │ Fraction of Absorbed Photosynthetically Active Radiat… │ VITO NV,European Commission Directorate-General for I… │ │ Fraction of Green Vegetation Cover 2014-present (rast… │ VITO NV,European Commission Directorate-General for I… │ │ Gross Dry Matter Productivity 2014-present (raster 30… │ VITO NV,European Commission Directorate-General for I… │ │ Leaf Area Index 2014-present (raster 300 m), global, … │ VITO NV,European Commission Directorate-General for I… │ │ Normalised Difference Vegetation Index 2014-2020 (ras… │ VITO NV,European Commission Directorate-General for I… │ │ Normalised Difference Vegetation Index 1998-2020 (ras… │ VITO NV,European Commission Directorate-General for I… │ │ High Resolution Vegetation Phenology and Productivity… │ VITO NV,European Union represented by the European Co… │ │ COPERNICUS Digital Elevation Model (DEM) 30 meters DG… │ ESA,dedl,creodias,wekeo │ │ COPERNICUS Digital Elevation Model (DEM) 30 meters DT… │ ESA,dedl,creodias,wekeo │ │ COPERNICUS Digital Elevation Model (DEM) 90 meters DG… │ ESA,dedl,creodias,wekeo │ │ COPERNICUS Digital Elevation Model (DEM) 90 meters DT… │ ESA,dedl,creodias,wekeo │ │ CAMS European air quality forecasts │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS European air quality reanalyses │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS global atmospheric composition forecasts │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS global emission inventories │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS global biomass burning emissions based on fire r… │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS global greenhouse gas reanalysis (EGG4) │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS global greenhouse gas reanalysis (EGG4) monthly … │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS global radiative forcings │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS global radiative forcing - auxilliary variables │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS global reanalysis (EAC4) │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS global reanalysis (EAC4) monthly averaged fields │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS global inversion-optimised greenhouse gas fluxes… │ European Centre for Medium-Range Weather Forecasts (E… │ │ CAMS solar radiation time-series │ European Centre for Medium-Range Weather Forecasts (E… │ │ Fire danger indices historical data from the Copernic… │ European Centre for Medium-Range Weather Forecasts (E… │ │ River discharge and related forecasted data by the Eu… │ European Centre for Medium-Range Weather Forecasts (E… │ │ River discharge and related historical data from the … │ European Centre for Medium-Range Weather Forecasts (E… │ │ Reforecasts of river discharge and related data by th… │ European Centre for Medium-Range Weather Forecasts (E… │ │ Seasonal forecasts of river discharge and related dat… │ European Centre for Medium-Range Weather Forecasts (E… │ │ Seasonal reforecasts of river discharge and related d… │ European Centre for Medium-Range Weather Forecasts (E… │ │ Carbon dioxide data from 2002 to present derived from… │ European Centre for Medium-Range Weather Forecasts (E… │ │ │ copernicus_climate_data_store,wekeo │ │ Climate Change Adaptation Digital Twin (Climate Adapt… │ ECMWF,dedt_lumi │ │ DT Weather-Induced Extremes Digital Twin (Extremes DT) │ ECMWF,dedt_lumi │ │ River discharge and related forecasted data by the Eu… │ European Centre for Medium-Range Weather Forecasts (E… │ │ River discharge and related historical data from the … │ European Centre for Medium-Range Weather Forecasts (E… │ │ Reforecasts of river discharge and related data by th… │ European Centre for Medium-Range Weather Forecasts (E… │ │ Seasonal forecasts of river discharge and related dat… │ European Centre for Medium-Range Weather Forecasts (E… │ │ Seasonal reforecasts of river discharge and related d… │ European Centre for Medium-Range Weather Forecasts (E… │ │ ERA5 hourly data on pressure levels from 1940 to pres… │ European Centre for Medium-Range Weather Forecasts (E… │ │ ERA5-Land hourly data from 1950 to present │ European Centre for Medium-Range Weather Forecasts (E… │ │ ERA5-Land monthly averaged data from 1950 to present │ European Centre for Medium-Range Weather Forecasts (E… │ │ ERA5 monthly averaged data on pressure levels from 19… │ European Centre for Medium-Range Weather Forecasts (E… │ │ Glaciers distribution data from the Randolph Glacier … │ European Centre for Medium-Range Weather Forecasts (E… │ │ Methane data from 2002 to present derived from satell… │ European Centre for Medium-Range Weather Forecasts (E… │ │ ERA5 hourly data on single levels from 1940 to present │ European Centre for Medium-Range Weather Forecasts (E… │ │ ERA5 monthly averaged data on single levels from 1940… │ European Centre for Medium-Range Weather Forecasts (E… │ │ UERRA regional reanalysis for Europe on single levels… │ European Centre for Medium-Range Weather Forecasts (E… │ │ Sea ice concentration │ European Centre for Medium-Range Weather Forecasts (E… │ │ Sea ice edge and type │ European Centre for Medium-Range Weather Forecasts (E… │ │ Sea ice thickness │ European Centre for Medium-Range Weather Forecasts (E… │ │ Seasonal forecast anomalies on pressure levels │ European Centre for Medium-Range Weather Forecasts (E… │ │ Seasonal forecast anomalies on single levels │ European Centre for Medium-Range Weather Forecasts (E… │ │ Seasonal forecast subdaily data on pressure levels │ European Centre for Medium-Range Weather Forecasts (E… │ │ Seasonal forecast daily and subdaily data on single l… │ European Centre for Medium-Range Weather Forecasts (E… │ │ Seasonal forecast monthly statistics on pressure leve… │ European Centre for Medium-Range Weather Forecasts (E… │ │ Seasonal forecast monthly statistics on single levels │ European Centre for Medium-Range Weather Forecasts (E… │ │ Sea level gridded data from satellite observations fo… │ European Centre for Medium-Range Weather Forecasts (E… │ │ Temperature and precipitation climate impact indicato… │ European Centre for Medium-Range Weather Forecasts (E… │ │ SENTINEL-1 Level 1 Ground Range Detected (GRD) │ ESA,dedl,creodias,wekeo │ │ SENTINEL-1 Level 1 Single Look Complex (SLC) - EODC s… │ ESA,dedl,creodias,wekeo │ │ Sentinel 2 MSI Level 1C │ ESA,dedl,creodias,wekeo │ │ Sentinel 2 MSI Level 2-A │ ESA,dedl,creodias,wekeo │ │ OLCI Land Colour Full Resolution - Sentinel-3 │ ESA,dedl,creodias,wekeo │ │ OLCI Land Colour Reduced Resolution - Sentinel-3 │ ESA,dedl,creodias,wekeo │ │ Level 2 Land - SLSTR - Sentinel-3 │ ESA,dedl,creodias │ │ Level 2 Land - SRAL/MWR - Sentinel-3 │ ESA,dedl,creodias │ │ SENTINEL-5P TROPOMI Level 1B │ ESA,dedl,creodias,wekeo │ │ SENTINEL-5P TROPOMI Level 2 │ ESA,dedl,creodias,wekeo │ │ ASCAT Level 1 SZF Climate Data Record Release 2 - Met… │ eumetsat,eumetsat │ │ ASCAT Level 1 SZO Climate Data Record Release 2 - Met… │ eumetsat,eumetsat │ │ ASCAT Level 1 SZR Climate Data Record Release 2 - Met… │ eumetsat,eumetsat │ │ AMSU-A Level 1B - Metop - Global │ eumetsat,eumetsat │ │ ASCAT Level 1 Sigma0 Full Resolution - Metop - Global │ eumetsat,eumetsat │ │ ASCAT Level 1 Sigma0 resampled at 25 km Swath Grid - … │ eumetsat,eumetsat │ │ ASCAT Level 1 Sigma0 resampled at 12.5 km Swath Grid … │ eumetsat,eumetsat │ │ AVHRR GAC Atmospheric Motion Vectors Climate Data Rec… │ eumetsat,eumetsat │ │ AVHRR Level 1B - Metop - Global │ eumetsat,eumetsat │ │ Global L3C AVHRR Sea Surface Temperature (GHRSST) - M… │ eumetsat,eumetsat │ │ GOME-2 Level 1B - Metop - Global │ eumetsat,eumetsat │ │ GOME-2 Level 1B Fundamental Data Record Release 3 - M… │ eumetsat,eumetsat │ │ IASI Level 1C - All Spectral Samples - Metop - Global │ eumetsat,eumetsat │ │ IASI Combined Sounding Products - Metop │ eumetsat,eumetsat │ │ IASI All Sky Temperature and Humidity Profiles - Clim… │ eumetsat,eumetsat │ │ Daily Land Surface Temperature - Metop │ eumetsat,eumetsat │ │ MHS Level 1B - Metop - Global │ eumetsat,eumetsat │ │ ASCAT Coastal Winds at 12.5 km Swath Grid - Metop │ eumetsat,eumetsat │ │ ASCAT L2 25 km Winds Data Record Release 1 - Metop │ eumetsat,eumetsat │ │ ASCAT L2 12.5 km Winds Data Record Release 1 - Metop │ eumetsat,eumetsat │ │ ASCAT Soil Moisture at 12.5 km Swath Grid in NRT - Me… │ eumetsat,eumetsat │ │ ASCAT Soil Moisture at 25 km Swath Grid in NRT - Metop │ eumetsat,eumetsat │ │ HIRS Level 1B - Metop - Global │ EUMETSAT,eumetsat │ │ SLSTR Level 2 Aerosol Optical Depth - Sentinel-3 │ eumetsat,dedl,creodias,eumetsat │ │ SLSTR Level 2 Fire Radiative Power - Sentinel 3 │ eumetsat,dedl,creodias,eumetsat │ │ OLCI Level 1B Full Resolution - Sentinel-3 │ eumetsat,dedl,creodias,eumetsat,wekeo │ │ OLCI Level 1B Reduced Resolution - Sentinel-3 │ eumetsat,dedl,creodias,eumetsat,wekeo │ │ OLCI Level 2 Ocean Colour Full Resolution - Sentinel-3 │ eumetsat,dedl,creodias,eumetsat,wekeo │ │ OLCI Level 2 Ocean Colour Reduced Resolution - Sentin… │ eumetsat,dedl,creodias,eumetsat,wekeo │ │ SLSTR Level 1B Radiances and Brightness Temperatures … │ eumetsat,dedl,creodias,eumetsat,wekeo │ │ SLSTR Level 2 Sea Surface Temperature (SST) - Sentine… │ eumetsat,dedl,creodias,eumetsat │ │ SRAL Level 1B - Sentinel-3 │ eumetsat,dedl,creodias,eumetsat,wekeo │ │ SRAL Level 1B stack echoes - Sentinel-3 │ eumetsat,dedl,creodias,eumetsat,wekeo │ │ SRAL Level 1B - Sentinel-3 │ eumetsat,dedl,creodias,eumetsat,wekeo │ │ SRAL Level 2 Altimetry Global - Sentinel-3 │ eumetsat,dedl,creodias,eumetsat,wekeo │ │ Global Surface Water Occurrence Change Intensity 1984… │ EC JRC / Google,dedl,dedl │ │ Global Surface Water Maximum Water Extent 1984-2021 │ EC JRC / Google,dedl,dedl │ │ Global Surface Water Occurrence 1984-2021 │ EC JRC / Google,dedl,dedl │ │ Global Surface Water Recurrence 1984-2021 │ EC JRC / Google,dedl,dedl │ │ Global Surface Water Seasonality 2014-2020 │ EC JRC / Google,dedl,dedl │ │ Global Surface Water Transitions 1984-2021 │ EC JRC / Google,dedl,dedl │ │ Global Ocean Biogeochemistry Analysis and Forecast │ Mercator Océan International,Copernicus Marine Servic… │ │ Global Ocean Physics Analysis and Forecast │ Mercator Océan International,Copernicus Marine Servic… │ │ Global Ocean Waves Analysis and Forecast │ Mercator Océan International,Copernicus Marine Servic… │ │ Global ocean low and mid trophic levels biomass conte… │ Mercator Océan International,Copernicus Marine Servic… │ │ Global Ocean Ensemble Physics Reanalysis │ Mercator Océan International,Copernicus Marine Servic… │ │ Global Ocean Waves Reanalysis │ Mercator Océan International,Copernicus Marine Servic… │ │ Global Ocean- Delayed Mode gridded CORA- In-situ Obse… │ OceanScope (France),Copernicus Marine Service,cop_mar… │ │ Global Ocean- Real time in-situ observations objectiv… │ Ifremer (France),Copernicus Marine Service,cop_marine │ │ Global Ocean- in-situ Near real time observations of … │ Ifremer (France),Copernicus Marine Service,cop_marine │ │ Nutrient and carbon profiles vertical distribution │ LOV (France),Copernicus Marine Service,cop_marine │ │ Global Ocean 3D Chlorophyll-a concentration, Particul… │ LOV (France),Copernicus Marine Service,cop_marine │ │ Global Ocean Surface Carbon │ LSCE (France),Copernicus Marine Service,cop_marine │ │ Global Total (COPERNICUS-GLOBCURRENT), Ekman and Geos… │ CLS (France),Copernicus Marine Service,cop_marine │ │ Multi Observation Global Ocean Sea Surface Salinity a… │ CNR (Italy),Copernicus Marine Service,cop_marine │ │ Multi Observation Global Ocean 3D Temperature Salinit… │ CLS (France),Copernicus Marine Service,cop_marine │ │ Global Observed Ocean Physics 3D Quasi-Geostrophic Cu… │ CNR (Italy),Copernicus Marine Service,cop_marine │ │ Global Ocean Colour (Copernicus-GlobColour), Bio-Geo-… │ ACRI (France),Copernicus Marine Service,cop_marine │ │ Global Ocean Colour Plankton and Reflectances MY L3 d… │ BC (Germany),Copernicus Marine Service,cop_marine │ │ Global Ocean Colour (Copernicus-GlobColour), Bio-Geo-… │ ACRI (France),Copernicus Marine Service,cop_marine │ │ Global Ocean Colour (Copernicus-GlobColour), Bio-Geo-… │ ACRI (France),Copernicus Marine Service,cop_marine │ │ Global Ocean Colour Plankton MY L4 monthly observatio… │ BC (Germany),Copernicus Marine Service,cop_marine │ │ Global Ocean Colour (Copernicus-GlobColour), Bio-Geo-… │ ACRI (France),Copernicus Marine Service,cop_marine │ │ Global Ocean - Arctic and Antarctic - Sea Ice Concent… │ MET Norway,Copernicus Marine Service,cop_marine │ │ Global Ocean - High Resolution SAR Sea Ice Drift │ DTU Space (Denmark),Copernicus Marine Service,cop_mar… │ │ Global Ocean Sea Ice Concentration Time Series REPROC… │ MET Norway,Copernicus Marine Service,cop_marine │ │ GLOBAL OCEAN GRIDDED L4 SEA SURFACE HEIGHTS AND DERIV… │ CLS (France),Copernicus Marine Service,cop_marine │ │ GLOBAL OCEAN MEAN DYNAMIC TOPOGRAPHY │ CLS (France),Copernicus Marine Service,cop_marine │ │ ODYSSEA Global Ocean - Sea Surface Temperature Multi-… │ Ifremer (France),Copernicus Marine Service,cop_marine │ │ Global Ocean OSTIA Sea Surface Temperature and Sea Ic… │ Met Office (UK),Copernicus Marine Service,cop_marine │ │ Global Ocean OSTIA Sea Surface Temperature and Sea Ic… │ Met Office (UK),Copernicus Marine Service,cop_marine │ │ ESA SST CCI and C3S reprocessed sea surface temperatu… │ Met Office (UK),Copernicus Marine Service,cop_marine │ │ GLOBAL OCEAN L3 SIGNIFICANT WAVE HEIGHT FROM NRT SATE… │ CLS (France),Copernicus Marine Service,cop_marine │ │ GLOBAL OCEAN L4 SIGNIFICANT WAVE HEIGHT FROM NRT SATE… │ CLS (France),Copernicus Marine Service,cop_marine │ │ GLOBAL OCEAN L3 SPECTRAL PARAMETERS FROM NRT SATELLIT… │ CLS (France),Copernicus Marine Service,cop_marine │ │ Global Ocean Monthly Mean Sea Surface Wind and Stress… │ KNMI (The Netherlands),Copernicus Marine Service,cop_… │ │ Global Ocean Daily Gridded Reprocessed L3 Sea Surface… │ KNMI (The Netherlands),Copernicus Marine Service,cop_… │ │ Global Ocean Daily Gridded Sea Surface Winds from Sca… │ KNMI (The Netherlands),Copernicus Marine Service,cop_… │ │ Global Ocean Hourly Reprocessed Sea Surface Wind and … │ KNMI (The Netherlands),Copernicus Marine Service,cop_… │ │ Global Ocean Hourly Sea Surface Wind and Stress from … │ KNMI (The Netherlands),Copernicus Marine Service,cop_… │ │ Landsat Collection 2 Level-1 │ NASA,USGS,planetary_computer │ │ Landsat Collection 2 Level-2 │ NASA,USGS,planetary_computer │ │ Eurostat - Greenhouse gas emissions from agriculture │ Eurostat,dedl,dedl │ │ Population on 1 January by age, sex and NUTS 3 region │ Eurostat,dedl,dedl │ │ Population on 1 January by age, sex and NUTS 2 region │ Eurostat,dedl,dedl │ │ Eurostat - Population change - Demographic balance an… │ Eurostat,dedl,dedl │ │ Eurostat - Share of energy from renewable sources │ Eurostat,dedl,dedl │ └────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────┘
Inspect Items of a Collection#
The main functions for getting items return iterators, where pystac-client will handle retrieval of additional pages when needed. Note that one request is made for the first ten items, then a second request for the next ten.
coll_name = 'EO.ESA.DAT.SENTINEL-1.L1_GRD'
search = cat.search(
max_items=10,
collections=[coll_name],
bbox=[-72.5,40.5,-72,41],
datetime="2023-09-09T00:00:00Z/2023-09-20T23:59:59Z"
)
coll_items = search.item_collection()
console.print(f"For collection {coll_name} we found {len(coll_items)} items")
For collection EO.ESA.DAT.SENTINEL-1.L1_GRD we found 4 items
import geopandas
df = geopandas.GeoDataFrame.from_features(coll_items.to_dict(), crs="epsg:4326")
df.head()
| geometry | providers | datetime | start_datetime | end_datetime | updated | description | license | constellation | platform | ... | dedl:productComposition | dedl:processorVersion | dedl:totalSlices | dedl:timeliness | dedl:productIdentifier | dedl:segmentStartTime | dedl:beginningDateTime | dedl:datatakeID | dedl:sliceProductFlag | dedl:uid | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | POLYGON ((-72.73724 38.96255, -69.78494 39.365... | [{'name': 'dedl', 'description': 'DestineE Dat... | 2023-09-09T22:43:00.442715Z | 2023-09-09T22:43:00.442715Z | 2023-09-09T22:43:25.441630Z | 2023-09-10T03:08:53.951840Z | The [Sentinel-1](https://sentinel.esa.int/web/... | proprietary | SENTINEL-1 | A | ... | Slice | 3.61 | 16 | Fast-24h | /eodata/Sentinel-1/SAR/IW_GRDH_1S/2023/09/09/S... | 2023-09-09T22:41:16.742000+00:00 | 2023-09-09T22:43:00.442715Z | 396478 | False | 64caac74-8c5b-4f4d-9d3d-2d029b6e1ddc |
| 1 | POLYGON ((-73.11689 40.46453, -70.09798 40.866... | [{'name': 'dedl', 'description': 'DestineE Dat... | 2023-09-09T22:43:25.443129Z | 2023-09-09T22:43:25.443129Z | 2023-09-09T22:43:50.442045Z | 2023-09-10T02:57:33.550132Z | The [Sentinel-1](https://sentinel.esa.int/web/... | proprietary | SENTINEL-1 | A | ... | Slice | 3.61 | 16 | Fast-24h | /eodata/Sentinel-1/SAR/IW_GRDH_1S/2023/09/09/S... | 2023-09-09T22:41:16.742000+00:00 | 2023-09-09T22:43:25.443129Z | 396478 | False | f97e0469-9ecc-466e-9706-f3a0a98a8426 |
| 2 | POLYGON ((-74.73586 38.73753, -71.84171 39.134... | [{'name': 'dedl', 'description': 'DestineE Dat... | 2023-09-14T22:51:10.454096Z | 2023-09-14T22:51:10.454096Z | 2023-09-14T22:51:35.452004Z | 2023-09-15T01:30:12.125014Z | The [Sentinel-1](https://sentinel.esa.int/web/... | proprietary | SENTINEL-1 | A | ... | Slice | 3.61 | 7 | Fast-24h | /eodata/Sentinel-1/SAR/IW_GRDH_1S/2023/09/14/S... | 2023-09-14T22:49:26.753000+00:00 | 2023-09-14T22:51:10.454096Z | 397120 | False | e81554b4-5784-4f0b-ad69-ef984b489b52 |
| 3 | POLYGON ((-75.11328 40.2397, -72.15421 40.6353... | [{'name': 'dedl', 'description': 'DestineE Dat... | 2023-09-14T22:51:35.453501Z | 2023-09-14T22:51:35.453501Z | 2023-09-14T22:52:00.452905Z | 2023-09-15T01:28:26.349235Z | The [Sentinel-1](https://sentinel.esa.int/web/... | proprietary | SENTINEL-1 | A | ... | Slice | 3.61 | 7 | Fast-24h | /eodata/Sentinel-1/SAR/IW_GRDH_1S/2023/09/14/S... | 2023-09-14T22:49:26.753000+00:00 | 2023-09-14T22:51:35.453501Z | 397120 | False | ac9a45a9-e210-4d84-824c-f1fe12e7a4ca |
4 rows × 38 columns
Inspect STAC assets of an item#
import rich.table
selected_item = coll_items[3]
table = rich.table.Table(title="Assets in STAC Item")
table.add_column("Asset Key", style="cyan", no_wrap=True)
table.add_column("Description")
for asset_key, asset in selected_item.assets.items():
table.add_row(asset_key, asset.title)
console.print(table)
Assets in STAC Item ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓ ┃ Asset Key ┃ Descript… ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩ │ downloadLink │ Download │ │ │ link │ │ S1A_IW_GRDH_1SDV_20230914T225135_20230914T225200_050330_060F40_9F54.SAFE-report-20230915T011838.pdf │ S1A_IW_G… │ │ calibration-s1a-iw-grd-vh-20230914t225135-20230914t225200-050330-060f40-002.xml │ calibrat… │ │ calibration-s1a-iw-grd-vv-20230914t225135-20230914t225200-050330-060f40-001.xml │ calibrat… │ │ noise-s1a-iw-grd-vh-20230914t225135-20230914t225200-050330-060f40-002.xml │ noise-s1… │ │ noise-s1a-iw-grd-vv-20230914t225135-20230914t225200-050330-060f40-001.xml │ noise-s1… │ │ rfi-s1a-iw-grd-vh-20230914t225135-20230914t225200-050330-060f40-002.xml │ rfi-s1a-… │ │ rfi-s1a-iw-grd-vv-20230914t225135-20230914t225200-050330-060f40-001.xml │ rfi-s1a-… │ │ s1a-iw-grd-vh-20230914t225135-20230914t225200-050330-060f40-002.xml │ s1a-iw-g… │ │ s1a-iw-grd-vv-20230914t225135-20230914t225200-050330-060f40-001.xml │ s1a-iw-g… │ │ manifest.safe │ manifest… │ │ s1a-iw-grd-vh-20230914t225135-20230914t225200-050330-060f40-002.tiff │ s1a-iw-g… │ │ s1a-iw-grd-vv-20230914t225135-20230914t225200-050330-060f40-001.tiff │ s1a-iw-g… │ │ logo.png │ logo.png │ │ map-overlay.kml │ map-over… │ │ product-preview.html │ product-… │ │ quick-look.png │ quick-lo… │ │ thumbnail.png │ thumbnai… │ │ s1-level-1-calibration.xsd │ s1-level… │ │ s1-level-1-measurement.xsd │ s1-level… │ │ s1-level-1-noise.xsd │ s1-level… │ │ s1-level-1-product.xsd │ s1-level… │ │ s1-level-1-quicklook.xsd │ s1-level… │ │ s1-level-1-rfi.xsd │ s1-level… │ │ s1-map-overlay.xsd │ s1-map-o… │ │ s1-object-types.xsd │ s1-objec… │ │ s1-product-preview.xsd │ s1-produ… │ │ thumbnail │ Thumbnail │ └─────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────┘
from IPython.display import Image
Image(url=selected_item.assets["thumbnail"].href, width=500)
down_uri = selected_item.assets["downloadLink"].href
console.print(f"Download link of asset is {down_uri}")
Download link of asset is https://hda.data.destination-earth.eu/stac/collections/EO.ESA.DAT.SENTINEL-1.L1_GRD/items/S1A_IW_GRDH_1SDV_20230914 T225135_20230914T225200_050330_060F40_9F54/download?provider=dedl
Download asset to JupyterLab#
selected_item.id
'S1A_IW_GRDH_1SDV_20230914T225135_20230914T225200_050330_060F40_9F54'
selected_item.assets["downloadLink"]
- href "https://hda.data.destination-earth.eu/stac/collections/EO.ESA.DAT.SENTINEL-1.L1_GRD/items/S1A_IW_GRDH_1SDV_20230914T225135_20230914T225200_050330_060F40_9F54/download?provider=dedl"
- type "application/zip"
- title "Download link"
alternate
origin
- title "Origin asset link"
- href "https://zipper.creodias.eu/odata/v1/Products(ac9a45a9-e210-4d84-824c-f1fe12e7a4ca)/$value"
- storage:tier "ONLINE"
# Make http request for remote file data
data = requests.get(selected_item.assets["downloadLink"].href,
headers=auth_headers)
mtype = selected_item.assets["downloadLink"].media_type.split("/")[1]
# Save file data to local copy
with open(f"{selected_item.id}.{mtype}", 'wb')as file:
file.write(data.content)