Skip to main content

A Python package for seasonal climate forecast.

Project description

wass2s: A python-based tool for seasonal climate forecast

Modules in WAS_S2S

wass2s is a comprehensive tool developed to enhance the accuracy and reproducibility of seasonal forecasts in West Africa and the Sahel. This initiative aligns with the World Meteorological Organization's (WMO) guidelines for objective, operational, and scientifically rigorous seasonal forecasting methods.

Overview

The wass2s tool is designed to facilitate the generation of seasonal forecasts using various statistical and machine learning methods including the Exploration of AI methods. It helps forecaster to download data, build models, verify the models, and forecast. A user-friendly jupyter-lab notebook streaming the process of prevision.

🚀 Features

  • Automated Forecasting: Streamlines the seasonal forecasting process, reducing manual interventions.
  • 🔄 Reproducibility: Ensures that forecasts can be consistently reproduced and evaluated.
  • 📊 Modularity: Highly modular tool. Users can easily customize and extend the tool to meet their specific needs.
  • 🤖 Exploration of AI and Machine Learning: Investigates the use of advanced technologies to further improve forecasting accuracy.

📥 Installation

  1. Download and Install miniconda
  • For Windows, download the executable here

  • For Linux (Ubuntu), in the terminal run:

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install wget
    wget -c -r https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh --no-check-certificate
    bash Miniconda3-latest-Linux-x86_64.sh
    
  1. Create an environment and activate
  • For Windows: download yaml here and run
conda env create -f WAS_S2S_windows.yml
conda activate WASS2S
  • For Linux: download yaml here and run
conda env create -f WAS_S2S_linux.yml
conda activate WASS2S
  1. Install wass2s
pip install wass2s
  1. Download notebooks for simulation
git clone https://github.com/hmandela/WASS2S_notebooks.git
  1. Create CDS API key and use it to download NMME and C3S models data from the Climate Data Store (CDS) and IRI Data Library.
  • Create an account with Copernicus by signing up here

  • Once you successfully create an account, kindly log in to your Copernicus account and click on your name at the top right corner of the page. Note your "UID" and "Personal Access Token key".

  • Configure .cdsapirc file.

In your activated terminal, kindly initiate the Python interpreter by entering the command python3. Subsequently, carefully copy and paste the below code, ensuring to replace "Personal Access Token" with yours.

import os

config_data = '''url: https://cds.climate.copernicus.eu/api
key: Personal Access Token
verify: 0
'''

path_to_home = "/".join([os.path.expanduser('~'),".cdsapirc"])

if not os.path.exists(path_to_home):
    with open(path_to_home, 'w') as file:
        file.write(config_data)
        
print("Configuration file created successfully!")

Upgrade wass2s

If you want to upgrade wass2s to a newer version, use the following command:

pip install --upgrade wass2s

Potential Issues

If you encounter matplotlib errors, try the following steps:

  1. Install this version of matplotlib:
    pip install matplotlib==3.7.3
    
  2. Install the latest version of cartopy:
    conda install -c conda-forge -c hallkjc01 xcast
    

If you encounter other issues during installation or usage, please refer to the Troubleshooting Guide.

⚙️ Usage

Comprehensive usage guidelines, including data preparation, model configuration, and execution steps, are available in the wass2s documentation, wass2S Training Documentation.

🤝 Contributing

We welcome contributions from the community to enhance the WAS_S2S tool. Please refer to our contribution guidelines for more information.

📜 License

This project is licensed under the GPL-3 License.

Contact

For questions or support, please open a Github issue.

Credits

🙌 Acknowledgments

I would like to express my sincere gratitude to all the participants of the job-training on the new generation of seasonal forecasts in West Africa and the Sahel.
Your valuable feedback has significantly contributed to the improvement of this tool. I look forward to continuing to receive your insights and, where possible, your contributions.
A seed has been planted within you—now, let’s grow it together.

We also extend our heartfelt thanks to the AICCRA project for supporting this development, and to Dr. Abdou ALI, Head of the Climate-Water-Meteorology Department at AGRHYMET RCC-WAS, for his guidance and support.

📖 For more detailed information, tutorials, and support, please visit the WAS_S2S Training Documentation.

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

wass2s-0.4.4.tar.gz (846.4 kB view details)

Uploaded Source

Built Distribution

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

wass2s-0.4.4-py3-none-any.whl (872.4 kB view details)

Uploaded Python 3

File details

Details for the file wass2s-0.4.4.tar.gz.

File metadata

  • Download URL: wass2s-0.4.4.tar.gz
  • Upload date:
  • Size: 846.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for wass2s-0.4.4.tar.gz
Algorithm Hash digest
SHA256 49a3f9e0ad8e88c06a60cf4218c58b3e32e5b5341090ecf9d5c86a91fd5bcf78
MD5 5948b702c7e4146f01efabeace2bae3d
BLAKE2b-256 988ab4ade3c2b635ddafa91ae22b66c73be97695acc0de194c8421ae0349b029

See more details on using hashes here.

File details

Details for the file wass2s-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: wass2s-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 872.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for wass2s-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 22c91bbb1ac89d88218401a9b90e3b20e74e77e0e3d4f043f7258ab755e1003a
MD5 2fee5c57443de418420310052ac8eef3
BLAKE2b-256 ffcb217092e7b66bfb75dd6aad2667ede5a90907d54e86e2b2211b54efb5d206

See more details on using hashes here.

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