Skip to main content

ecaio - Read-only access to EarthCARE data product files

Synopsis

from ecaio import EcaioFilename, EcaioOpen, EcaioTime

# ecaio can work with .zip-compressed files directly:
my_msi_file = "ECA_EXAF_MSI_RGR_1C_20250219T114658Z_20250219T133232Z_04147D.ZIP"

# Or you can locate files by glob(). The following will try and locate the
# unique file that matches the following components, regardless of their
# extension, processing start time, or anything else that was not specified
# explicitly. If that doesn't work, an exception is raised.
my_msi_file = EcaioFilename.glob_unique(
    root_directory="/my/data/directory",
    baseline="AF",
    file_type="MSI_RGR_1C",
    frame="4147D",
)

# EcaioOpen automatically dispatches to the right subclass, if it recognizes
# the file type (currently, only M-NOM, M-RGR, and B-SNG); otherwise it opens
# the file as a generic EarthCARE file.
with EcaioOpen(my_msi_file) as msi:

    # access any header property (here, from the Main Product Header)
    description = msi.mph.description

    # access fields from /ScienceData with the following convenient syntax
    elevation = msi.surface_elevation

    # ecaio has built-in recipes for some quantities, like MSI TIR thermal
    # radiances (converted from brightness temperatures)
    thermal_radiance = msi.thermal_radiance

    # use EcaioTime to convert times in EarthCARE format to another format
    # (here, to Python standard library ‘datetime’)
    line_acquisition_times = EcaioTime.from_float(msi.time).to_datetime()

Description

ecaio is a Python library for convenient access to the data stored in EarthCARE data product files, together with derived quantities that can be computed from those data products. The data within .zip-compressed data product archives can be accessed transparently. Currently, access is read-only. ecaio strives to be fast, by caching and performing vector operations where possible, and convenient to use, by allowing you to retrieve data in few lines of code, with a syntax that is (hopefully) easy to remember.

ecaio is not a library for plotting or analysis of EarthCARE data. There are other libraries that are better suited for that (e.g., pandas, matplotlib, and the tools listed under "See also" below), but ecaio strives to make it easy to prepare your data for subsequent analysis and plotting with other packages.

Features

  • Work with .zip-compressed data product files directly
  • Convenient syntax for access to datasets under /ScienceData: values = msi_rgr.pixel_values
  • Data are cached to avoid the time penalty when re-using the same data
  • Recipes for a few derived quantities are already implemented, such as VNS reflectances from radiances, TIR radiances from brightness temperatures, RGB composites for MSI, narrowband-to-broadband conversion for MSI, computation of frame margins, etc.
  • Mask values from bad BBR detectors
  • Correct and convenient conversion of time stamps to and from EarthCARE format (i.e., float)
  • Generic file opening with EcaioOpen()
  • Convenient and fast spatial subsetting of data with .subset_rectangle()
  • Conversion to GDAL raster datasets with geolocation metadata, to process the data with the GDAL library

Project development status and interface stability

ecaio is still under development, and its interface may change in the future. Some features have not been implemented yet, and not all EarthCARE file types are fully supported yet.

Homepage

ecaio can be found at https://gitlab.com/ebaudrez/ecaio.

Installation instructions

ecaio is in the Python Package Index, so the easiest way to install it, is to do

pip install ecaio

Bugs and known issues

No bugs have been reported so far. Please report bugs or feature requests at https://gitlab.com/ebaudrez/ecaio/-/issues.

See also

There are a number of other libraries that can ingest and process EarthCARE data, with a different focus than ecaio:

  • ectools is a set of open tools for searching, loading, plotting, intercomparing and analysing EarthCARE data products, licensed under Apache 2.0
  • earthcarekit is a comprehensive toolkit for downloading, reading, analysing and visualizing data from EarthCARE, licensed under Apache 2.0

Copyright (C) 2025, 2026 Edward Baudrez edward.baudrez@meteo.be

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

Metadata

Release files for ecaio 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ecaio 0.4.2
File Size Uploaded Provenance Actions
ecaio-0.4.2.tar.gz 44.0 kB Without provenance Details for ecaio-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ecaio 0.4.2
File Interpreter ABI Platform Actions
ecaio-0.4.2-py3-none-any.whl Python 3 none any Details for ecaio-0.4.2-py3-none-any.whl

Total release size: 90.5 kB

Release files / ecaio-0.4.2.tar.gz

Download URL ecaio-0.4.2.tar.gz
Size 44.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f52119d8e3fa070aa0e41f4ede2ded64f32687528b7a480fde6a6e656c706b5c
BLAKE2b-256 checksum
How to use checksums
2ee114a1d312a4b9a8fde4ed6ebf229af72c9b556fea1d0d488fba4d20b49000
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Release files / ecaio-0.4.2-py3-none-any.whl

Download URL ecaio-0.4.2-py3-none-any.whl
Size 46.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffbecd3f5c002ef05ef325b9c7f7b6f81ab36113f3ece991ba9e23914a6f02c2
BLAKE2b-256 checksum
How to use checksums
ade41503f4af2a9033bc0c7081d3b4af5ebc2a85b836a4a896a8a195991bc638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Security for ecaio 0.4.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page