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.1.tar.gz (179.5 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.1-py3-none-any.whl (251.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: earthcarekit-0.2.1.tar.gz
  • Upload date:
  • Size: 179.5 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.1.tar.gz
Algorithm Hash digest
SHA256 23c9793f57d65172ae627c4040bbdaf9cdf08cdcfb2942ce0e1cf3a0081ff86d
MD5 ec892d438d84678aefc7283038d0463e
BLAKE2b-256 6da6bced665e659416e212a6bcaf6508fad9dcd387065b968e36b2e11ce890b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for earthcarekit-0.2.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: earthcarekit-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 251.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6fb665fbf7128e61fc9dc36e08229915f325d743aad856a35cc9dcf8e2b84696
MD5 522465d75673756c7ba165f6e4c42c69
BLAKE2b-256 cea35c70f9072d0b63024829f7440d4c6848041297b3214dc8776f84c4b6d6a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for earthcarekit-0.2.1-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