Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Accessing the ESA Mediterranean Sea Datacube

ESA

Explore Data · Explore Data · Explore Data · Explore Data

This notebook opens the four online stores of the ESA Mediterranean Sea Datacube and plots selected variables. Group 0 provides full resolution; groups 1 and 2 provide coarser spatial summaries.

The example uses a small Alboran Sea ROI. Change ROI_CENTER_LON_LAT or ROI_HALF_WIDTH_CELLS to explore another area. Reads happen at the Zarr chunk level, so a small selection may still read a larger stored chunk.

Setup

Set CUBE_LEVEL to "0" for full resolution, "1" for 1/6°, or "2" for 1/3°. Each cube is opened with xr.open_zarr when it is needed below. The examples use June 2019.

Open the Daily Surface Cube

Start with the daily surface cube for the region map, salinity, density, and sea-level examples.

Loading...

Select A Small Region Of Interest

Select a region from the daily surface cube. The code snaps the requested point to the nearest grid cell and clips the slices at the cube edges. All four stores share the same horizontal grid, so the later examples reuse these slices.

Loading...
<Figure size 1000x400 with 1 Axes>

Plot 1: Sea-Surface Salinity And Density

[########################################] | 100% Completed | 202.01 ms
<Figure size 1200x400 with 4 Axes>

Plot 2: Sea Level And Geostrophic Currents

[########################################] | 100% Completed | 201.62 ms
<Figure size 800x500 with 2 Axes>

Plot 3: Phytoplankton And Carbonate Chemistry

[########################################] | 100% Completed | 403.09 ms
<Figure size 1200x400 with 4 Axes>

Plot 4: Primary Production And Temperature At A Selected Depth

[########################################] | 100% Completed | 1.21 ss
<Figure size 1200x400 with 4 Axes>

Plot 5: Hourly Total Currents At 15 m

[########################################] | 100% Completed | 201.39 ms
<Figure size 800x500 with 2 Axes>

Inspect Variable Metadata

Check the units, provenance, and processing metadata before combining products. The overview explains source naming, coverage gaps, and aggregation.

{'processing_steps': {'regrid_func': 'regrid_kdtree_pyresample', 'roi_m': 4000, 'epsilon': 0}, 'standard_name': 'net_primary_production_of_biomass_expressed_as_carbon_per_unit_volume_in_sea_water', 'long_name': 'Primary Production field estimated from chlorophyll and temperature 3D fields [spatial resolution = 1/24 deg]', 'description': 'Primary Production field estimated from chlorophyll and temperature 3D fields [spatial resolution = 1/24 deg]', 'units': 'mg m-3 d-1', 'source': 'https://esa-earthcode.github.io/open-science-catalog-metadata/products/4dmed-3d-prim-prod-150/collection', 'reference': 'https://4dmed.artov.ismar.cnr.it/thredds/catalog/4dmed/catalog_PP.html', 'original_spatial_resolution': [0.04166666478007059, 0.0416666683530934], 'original_temporal_resolution': '1 days 00:00:00', 'file_type': 'area', 'is_mask': False, 'data_meaning': 'continuous', 'valid_range': [3.0095383730446977e-25, 923.970458984375], 'visualization_range': [4.001231412887574, 14.316554222106928], 'aggregation_method': 'mean'}

Close The Datasets