Skip to main content
Project Logos

Copernicus Seasonal Forecast Tools

GitHub repo License PyPI version Python Downloads Documentation Status

Repository QR Code

This repository hosts the copernicus-seasonal-forecast-tools, a Python package developed to manage seasonal forecast data from the Copernicus Climate Data Store (CDS) as part of the U-CLIMADAPT project.

It offers comprehensive tools for downloading, processing, computing climate indices, and generating hazard objects based on seasonal forecast datasets, particularly Seasonal forecast daily and subdaily data on single levels. The packge is tailored to integrate seamlessly with the CLIMADA (CLIMate ADAptation) platform, supporting climate risk assessment and the development of effective adaptation strategies.

Users can:

  • Automatically download of high-resolution seasonal forecast data via the CDS API
  • Preprocess sub-daily fields into daily aggregates
  • Compute heat-related indices (e.g., heatwave days, tropical nights, TX30)
  • Generate CLIMADA hazard objects
  • Benefit from the modular design for extending to new indices or forecast products

Documentation

For full documentation of all features and functions, please refer to the Copernicus Seasonal Forecast Tools documentation on ReadTheDocs.

Getting Started

To use this package, you must first configure access to the Copernicus Climate Data Store (CDS), which provides the seasonal forecast datasets.

We've prepared a comprehensive CDS API setup guide to walk you through each step of the process. Once configured, you'll be ready to explore and analyze seasonal forecast data.

Installation

The package requires Python 3.10, but versions 3.11 and 3.12 are also supported. Make sure your environment is using a compatible Python version before installation.

You can install copernicus-seasonal-forecast-tools in three ways, depending on your setup and preferences.

Note: If you want to generate CLIMADA hazard objects, you must install the optional CLIMADA dependency.
For full installation instructions, see the online documentation.

1. Install via pip (recommended for most users)

pip install copernicus-seasonal-forecast-tools
git clone https://github.com/DahyannAraya/copernicus-seasonal-forecast-tools.git (optional)
pip install -r docs/requirements.txt (optional)

2. Install via environment.yml (Conda or Mamba):

git clone https://github.com/DahyannAraya/copernicus-seasonal-forecast-tools.git
conda env create -f environment.yml
conda activate venv_forecast

3. Install directly from GitHub

git clone https://github.com/DahyannAraya/copernicus-seasonal-forecast-tools.git
cd copernicus-seasonal-forecast-tools
pip install .
pip install -r docs/requirements.txt (optional)

CLIMADA Installation

CLIMADA is required to generate hazard layers.

  • If you installed via environment.yml, CLIMADA is already included.
  • If you installed from PyPI and then ran pip install -r docs/requirements.txt, CLIMADA is also installed.

Note
If you want to have all the functionalities of CLIMADA, you must install the full version.
👉 For detailed instructions, follow the official CLIMADA installation guide:
CLIMADA Installation Guide

Example of use

This section provides practical example to help users understand how to work with the copernicus-seasonal-forecast-tools package. The notebooks demonstrate key steps including downloading data, computing climate indices, and generating CLIMADA hazard objects.

  • DEMO_copernicus_forecast_seasonal.ipynb: This is the first notebook to run. It demonstrates how to install and use the seasonal_forecast_tools to download, process, and convert seasonal forecast data into a CLIMADA hazard object.

Notebooks

Notebook Open in Colab GitHub (Documentation)
DEMO Copernicus Seasonal Forecast Open In Colab View in Docs
Download and Process Data Open In Colab View in Docs
Calculate Climate Indices Open In Colab View in Docs
Calculate a Hazard Object Open In Colab View in Docs
Example for Reading and Plotting Hazard Open In Colab View in Docs

You can find further material in Open In Colab, where we provide an extended demonstration.

License

GPL-3.0 license

Resources

Metadata

Release files for copernicus-seasonal-forecast-tools 0.1.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 copernicus-seasonal-forecast-tools 0.1.2
File Size Uploaded Provenance Actions
copernicus_seasonal_forecast_tools-0.1.2.tar.gz 52.3 kB Without provenance Details for copernicus_seasonal_forecast_tools-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for copernicus-seasonal-forecast-tools 0.1.2
File Interpreter ABI Platform Actions
copernicus_seasonal_forecast_tools-0.1.2-py3-none-any.whl Python 3 none any Details for copernicus_seasonal_forecast_tools-0.1.2-py3-none-any.whl

Total release size: 106.0 kB

Release files / copernicus_seasonal_forecast_tools-0.1.2.tar.gz

Download URL copernicus_seasonal_forecast_tools-0.1.2.tar.gz
Size 52.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9f3329aab554ed8ce19a3b218570b36bb19b26facd9c2ca70d6e63f5493097b4
BLAKE2b-256 checksum
How to use checksums
d8555b4317011cb1febe347d1172ed9918c9d1bfd218075c167534fb7c59b6d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / copernicus_seasonal_forecast_tools-0.1.2-py3-none-any.whl

Download URL copernicus_seasonal_forecast_tools-0.1.2-py3-none-any.whl
Size 53.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
796afec079d7a77d7cafda3cf70a10adbcffff63a985e2010ac61410f734e16f
BLAKE2b-256 checksum
How to use checksums
2215cf0eea82951f5cb144ab5594f71b62995eb0b289bd4d492e75bb9862795d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Security for copernicus-seasonal-forecast-tools 0.1.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