eopf-geozarr — the GeoZarr driver for EOPF CPM
eopf-geozarr is the GeoZarr driver for ESA's EOPF CPM, the Core Python
Modules of the Copernicus
Earth Observation Processing Framework
(Python package eopf). It converts
Sentinel-1, Sentinel-2 and Sentinel-3 products into cloud-optimized
GeoZarr: Zarr v3 stores with multiscale pyramids, native projections and
the OGC GeoZarr conventions (multiscales, geo-proj, spatial). Use it as a
CPM driver (eopf convert-geozarr) or on its own (eopf-geozarr convert).
📖 Documentation: https://eopf-explorer.github.io/data-model/
Two ways to convert
| CPM driver | Standalone converter | |
|---|---|---|
| Input | Native products (for example .SAFE) or any product CPM can read |
EOPF Zarr products (for example from the EOPF Sentinel Zarr Samples Service) |
| Install | pip install "eopf-geozarr[cpm]" (Python ≥ 3.13) |
pip install eopf-geozarr (Python ≥ 3.12) |
| Command | eopf convert-geozarr S2B_MSIL2A_….SAFE out.zarr |
eopf-geozarr convert S2B_MSIL2A_….zarr out.zarr |
| Python | write_datatree(dtree, "out.zarr", engine="geozarr") |
convert_s2_optimized(dt, output_path="out.zarr", …) |
Both paths run the same conversion pipelines and write the same GeoZarr output. The standalone converter reads the EOPF Zarr products published by the EOPF Sentinel Zarr Samples Service, hosted by EODC, directly from their URLs.
CPM driver
Installing the cpm extra registers the geozarr engine in CPM's writer
registry and adds the eopf convert-geozarr command to the eopf CLI:
pip install "eopf-geozarr[cpm]"
eopf convert-geozarr S2B_MSIL2A_20250113T103309_N0511_R108_T32TLQ.SAFE out.zarr
# S3 targets: write locally, then upload
eopf convert-geozarr S2B_MSIL2A_….SAFE s3://bucket/out.zarr --stage-output
import eopf_geozarr.cpm.writer # registers the "geozarr" engine
from eopf.store.convert import convert
convert("S2B_MSIL2A_….SAFE", "out.zarr", target_store_kwargs={"engine": "geozarr"})
See the CPM driver guide for all options, the product routing and the Python API.
Standalone converter
pip install eopf-geozarr
eopf-geozarr convert S2B_MSIL2A_….zarr out.zarr # auto-detects S2 and S3 OLCI
eopf-geozarr convert S2B_MSIL2A_….zarr s3://bucket/out.zarr
eopf-geozarr validate out.zarr # check GeoZarr compliance
See the standalone converter guide for every command, including Sentinel-1 GRD RTC ingestion.
Supported products
| Mission | Product | CPM product:type |
Pipeline |
|---|---|---|---|
| Sentinel-2 MSI | L1C, L2A | S02MSIL1C, S02MSIL2A |
S2 optimized: native r10m/r20m/r60m levels plus r120m/r360m/r720m overviews |
| Sentinel-3 OLCI | L1 EFR, L1 ERR | S03OLCEFR, S03OLCERR |
OLCI optimized: native swath geometry, or a regular grid with --output-grid |
| Sentinel-1 | GRD | — | Generic pipeline with ground control points (--groups, --gcp-group) |
| Sentinel-1 | GRD RTC (S1Tiling / Orfeo ToolBox COGs) | — | eopf-geozarr ingest-s1 and related commands (standalone only) |
| Sentinel-1 and other products CPM reads | for example SLC | for example S01SIWSLC |
Generic rechunker (CPM driver only, --generic-rechunker): rechunked, optionally sharded, no multiscales |
Output
- GeoZarr conventions on every georeferenced node:
zarr_conventions,geo-proj(proj:code),spatial(spatial:transform,spatial:bbox) andmultiscales, as described in the GeoZarr mini spec. - Native projections: no reprojection to Web Mercator.
- Multiscale pyramids for fast visualization at every zoom level.
- Source packing kept: reflectance stays as packed integers with CF
scale_factor/add_offset/_FillValue, as in the ESA products.--scale-offset-codecstores the packing with the Zarrscale_offset+cast_valuecodecs instead, so Zarr readers get decoded values. - Validation:
eopf-geozarr validatechecks a store against the mini spec.
GeoZarr is a set of modular Zarr conventions from the OGC GeoZarr Standards Working Group. GeoZarr V1 is not released yet (see the roadmap), so this driver follows the current conventions.
Development
git clone https://github.com/EOPF-Explorer/data-model.git
cd data-model
uv sync # add --extra cpm on Python 3.13+ for the CPM driver
uv run pre-commit install
uv run pytest -m "not network"
uv run mkdocs serve # documentation
Contributions are welcome: open an
issue or a pull request
against main.
License and acknowledgments
Apache License 2.0, see LICENSE.
eopf-geozarr is developed for the ESA EOPF Sentinel Explorer by Development Seed and EODC (Earth Observation Data Centre), which also hosts the EOPF Sentinel Zarr Samples Service. It is built on xarray, zarr-python and EOPF CPM.
Metadata
Release files for eopf-geozarr 0.13.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eopf_geozarr-0.13.2.tar.gz | 315.5 kB | With provenance | Details for eopf_geozarr-0.13.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eopf_geozarr-0.13.2-py3-none-any.whl | Python 3 | none | any | Details for eopf_geozarr-0.13.2-py3-none-any.whl |
Total release size: 525.0 kB
Release files / eopf_geozarr-0.13.2.tar.gz
| Download URL | eopf_geozarr-0.13.2.tar.gz |
|---|---|
| Size | 315.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab6639e9dc4feef25cbc76392fed6e0c64e5ba7902f47023c8002c1237d2ad6f
|
|
BLAKE2b-256 checksum How to use checksums |
92f4504c84e811438e9c6ac0613a0a038f84394d93c7b04a7d202bc0dd0b49c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / eopf_geozarr-0.13.2-py3-none-any.whl
| Download URL | eopf_geozarr-0.13.2-py3-none-any.whl |
|---|---|
| Size | 209.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d11857217e2b33f622d3873d3799e5942abe5af63f9f26d195b81704b16117d
|
|
BLAKE2b-256 checksum How to use checksums |
571790235b01afbba799e4171410b0f4c71c8c826a029a9a86f426f66974e5cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for eopf-geozarr 0.13.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for eopf_geozarr-0.13.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.