Skip to main content

A Python package to simplify working with EarthCARE satellite data.

Project description

earthcarekit

GitHub License GitHub Tag PyPI - Latest Version GitHub commits since latest

A Python package to simplify working with EarthCARE satellite data.

⚠️ Project Status: In Development

This project is still under active development. It is not yet feature-complete, and parts of the user documentation are missing or incomplete. Use at your own risk and expect breaking changes. Feedback and contributions are welcome!

Key Features

  • ⬇️ Download - Access EarthCARE data from ESA's dissemination platfroms OADS or MAAP via the command line or your Python scripts.
  • 🔍 Search & Read - Search your local EarthCARE products and open them as xarray.Dataset objects with unified dimension names.
  • ⚙️ Process - Filter data by time or geographic location, extract vertical profile statistics, rebin to common grids, interpolate along-track vertical cross sections from X-MET files and merge datasets from consecutive EarthCARE frames.
  • 📊 Visualize - Create quicklooks and plot vertical and across-track time series using a set of preset matplotlib/cartopy-based figure objects - while allowing customization.
  • 💻 Command-line interface tools:
    • ecdownload - Search, select, and download EarthCARE data from a terminal.
    • ecquicklook - Create fast quicklooks of your local EarthCARE products from a terminal.

Getting Started

Step 1 - Installation

Set up a Python 3.11+ environment with pip available, then install the latest version from PyPI:

pip install earthcarekit

💡 Note: To update the package to the latest version run:

pip install earthcarekit --upgrade

Check the installed version with:

python -c "import earthcarekit; print(earthcarekit.__version__)"

Alternatively, install the latest development version from GitHub with:

pip install -U git+https://github.com/TROPOS-RSD/earthcarekit.git

Or, install manually from a local clone:

pip install .

Step 2 - Configuration

An initial configuration step is required to specify default paths for storing data and created images, as well as to set up access to the supported data dissemination platforms for downloading. This involves creating and editing a configuration file. Once applied via Python code, your settings will be saved to ~/.config/earthcarekit/default_config.toml.

Below, the configuration process is shown using the Python command line interpreter:

  1. Open the Python interpreter and generate an example configuration file in your current directory:

    $ python
    >>> import earthcarekit as eck
    >>> eck.create_example_config()
    
  2. Edit the generated file.

    Follow the instructions in the inline comments of the exsample file to customize your settings. You may rename and save your file to any location.

  3. Go back to the Python Interpreter and apply your configuration file as default:

    >>> eck.set_config(path_to_file)
    >>> exit()
    

You can later view or manually edit the saved configuration at ~/.config/earthcarekit/default_config.toml. To update your settings, you can also simply repeat the steps above.

Tutorials

See usage examples:

Author

Developed and maintained by Leonard König (TROPOS).

Contact

For questions, suggestions, or bug reports, please create an issue or reach out via email: koenig@tropos.de

License

This project is licensed under the MIT License - see the LICENSE file for details.

Third-Party Licenses

This project relies on several open-source packages. Their licenses include:

  • MIT License: plotly, cmcrameri, vedo, netcdf4, tomli-w
  • BSD License: numpy, pandas, scipy, seaborn, owslib, jupyterlab, h5netcdf
  • Apache 2.0 License: xarray
  • LGPL License: cartopy
  • PSF License: matplotlib

Please refer to each project's repository for detailed license information.

Acknowledgments

Colormap definitions for calipso and chiljet2 were adapted from the exellent ectools repository by Shannon Mason (ECMWF).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

earthcarekit-0.2.0.tar.gz (179.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

earthcarekit-0.2.0-py3-none-any.whl (251.4 kB view details)

Uploaded Python 3

File details

Details for the file earthcarekit-0.2.0.tar.gz.

File metadata

  • Download URL: earthcarekit-0.2.0.tar.gz
  • Upload date:
  • Size: 179.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for earthcarekit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4d4dd347b0a5b9ee19a12ca4b62a90334d5476c15d8c075cf259626b5ed904c0
MD5 8e6ab1dd2ad737ee746f61201b7c858d
BLAKE2b-256 1a0fcc687953fa720295ee3f845c595d18c39f750e0cc0a43dc37f010d1afde6

See more details on using hashes here.

Provenance

The following attestation bundles were made for earthcarekit-0.2.0.tar.gz:

Publisher: release.yaml on TROPOS-RSD/earthcarekit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file earthcarekit-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: earthcarekit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 251.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for earthcarekit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a20dcac3eedf935c5916f2c5836254413ff441c0a3099f3a5b55b98f183b803
MD5 eedab12dd226052d33060f6a489a5f17
BLAKE2b-256 4c183d793440c8f32ce3a70521dce47a6966f0f70982cdc8baa9528e66edf530

See more details on using hashes here.

Provenance

The following attestation bundles were made for earthcarekit-0.2.0-py3-none-any.whl:

Publisher: release.yaml on TROPOS-RSD/earthcarekit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page