Metadata-Version: 2.4
Name: wass2s
Version: 0.5.0
Summary: wass2s: A python-based tool for seasonal agro-hydro-climatic forecasts
Author-email: "HOUNGNIBO C. M. Mandela" <hmandelahmadiba@gmail.com>
License-Expression: GPL-3.0-or-later
Project-URL: Homepage, https://pypi.org/project/wass2s/
Project-URL: Documentation, https://wass2s-readthedocs.readthedocs.io/en/latest/
Project-URL: Repository, https://github.com/hmandela/WASS2S
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE.txt
License-File: COPYING_TELNET_GPL3.txt
License-File: THIRD_PARTY_RISE.md
Requires-Dist: packaging>=23
Requires-Dist: numpy>=1.26
Requires-Dist: pandas>=2.0
Requires-Dist: xarray>=2024.1
Requires-Dist: scipy>=1.11
Requires-Dist: scikit-learn>=1.4
Requires-Dist: joblib>=1.3
Requires-Dist: threadpoolctl>=3.1
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: bottleneck>=1.5
Requires-Dist: cca-zoo<4,>=3.1
Requires-Dist: matplotlib>=3.8
Requires-Dist: cartopy>=0.22
Requires-Dist: rioxarray>=0.15
Requires-Dist: rasterio>=1.3
Requires-Dist: dask[array,distributed]>=2024.1
Requires-Dist: netCDF4>=1.6
Requires-Dist: cftime>=1.6.4
Requires-Dist: h5netcdf>=1.3
Requires-Dist: h5py>=3.10
Requires-Dist: numba>=0.59
Requires-Dist: xeofs<4,>=3.0
Requires-Dist: fitter>=1.7
Requires-Dist: tqdm>=4.66
Requires-Dist: requests>=2.31
Requires-Dist: urllib3>=2.0
Requires-Dist: cdsapi>=0.7.7
Requires-Dist: cfgrib>=0.9.10
Requires-Dist: eccodes>=1.6
Requires-Dist: optuna>=3.6
Requires-Dist: properscoring>=0.1
Requires-Dist: xskillscore>=0.0.26
Requires-Dist: statsmodels>=0.14
Requires-Dist: minisom>=2.3
Requires-Dist: seaborn>=0.13
Requires-Dist: xgboost>=2.0
Requires-Dist: lightgbm>=4.0
Requires-Dist: torch>=2.2
Requires-Dist: pykrige>=1.7
Requires-Dist: SkillMetrics>=1.2
Requires-Dist: geopandas>=0.14
Requires-Dist: shapely>=2.0
Requires-Dist: pyproj>=3.6
Requires-Dist: regionmask>=0.12
Requires-Dist: networkx>=3.0
Requires-Dist: PyYAML>=6.0
Requires-Dist: earthkit-data>=0.10
Requires-Dist: ipywidgets>=8.0
Requires-Dist: ipython>=8.0
Provides-Extra: science
Provides-Extra: geo
Provides-Extra: hydro
Provides-Extra: ml
Provides-Extra: kernel
Provides-Extra: neural
Provides-Extra: cli
Provides-Extra: bayes
Requires-Dist: pymc<6,>=5.0; extra == "bayes"
Requires-Dist: arviz<1,>=0.22; extra == "bayes"
Provides-Extra: notebooks
Requires-Dist: jupyterlab>=4; extra == "notebooks"
Requires-Dist: ipykernel>=6; extra == "notebooks"
Provides-Extra: sftp
Requires-Dist: paramiko>=3.0; extra == "sftp"
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: wheel>=0.43; extra == "dev"
Provides-Extra: all
Requires-Dist: pymc<6,>=5.0; extra == "all"
Requires-Dist: arviz<1,>=0.22; extra == "all"
Requires-Dist: jupyterlab>=4; extra == "all"
Requires-Dist: ipykernel>=6; extra == "all"
Requires-Dist: paramiko>=3.0; extra == "all"
Dynamic: license-file

# wass2s: A python-based tool for seasonal agro-hydro-climatic forecasts 

**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

**wass2s** is an open-source Python tool for seasonal climate forecast calibration, statistical downscaling, and prediction. It combines statistical and machine learning methods.
The tool helps forecasters download and preprocess data, calibrate climate model outputs against observations, train predictive models, generate forecasts, and evaluate forecast skill through cross-validation and verification. User-friendly **JupyterLab notebooks** guide users through the workflow, while **command-line interfaces (CLIs)** support automated processing and operational forecasting. Both options support reproducible analyses.

## 🚀 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](https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe)

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

    ``` bash
    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
    ```
2. Create an environment and activate
- For Windows: download yaml [here](https://github.com/hmandela/WASS2S/blob/main/WAS_S2S_windows.yml) and run
```bash
conda env create -f WAS_S2S_windows.yml
conda activate WASS2S
```
- For Linux: download yaml [here](https://github.com/hmandela/WASS2S/blob/main/WAS_S2S_linux.yml) and run
```bash
conda env create -f WAS_S2S_linux.yml
conda activate WASS2S
```

3. Install wass2s
```bash
pip install wass2s
```

4. Download notebooks for simulation
```bash
git clone https://github.com/hmandela/WASS2S_notebooks.git
```
5. 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](https://cds.climate.copernicus.eu/datasets)

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

```python
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:
```bash
pip install --upgrade wass2s
```

### Potential Issues
If you encounter other issues during installation or usage, please refer to the [Troubleshooting Guide](https://github.com/hmandela/WASS2S/blob/main/TROUBLESHOOTING.md).

## ⚙️ Usage

Comprehensive usage guidelines, including data preparation, model configuration, and execution steps, are available in the [wass2s documentation](https://wass2s-readthedocs.readthedocs.io/en/latest/index.html), [wass2S Training Documentation](https://hmandela.github.io/WAS_S2S_Training/).

## 🤝 Contributing

We welcome contributions from the community to enhance the `WAS_S2S` tool. Please refer to our [contribution guidelines](CONTRIBUTING.md) for more information.

## 📜 License

This project is licensed under the [GPL-3 License](https://github.com/hmandela/WASS2S/blob/main/LICENSE.txt).

## Contact

For questions or support, please open a [Github issue](https://github.com/hmandela/WAS_S2S/issues).

## Credits

- scikit-learn: [scikit-learn](https://scikit-learn.org/stable/)
- EOF analysis: [xeofs](https://github.com/xarray-contrib/xeofs/tree/main) 
- xcast: [xcast](https://github.com/kjhall01/xcast/)
- xskillscore: [xskillscore](https://github.com/xarray-contrib/xskillscore)
- ... and many more!

## 🙌 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](https://hmandela.github.io/WAS_S2S_Training/).

- [WAS_S2S Training Documentation](https://wass2s-readthedocs.readthedocs.io/en/latest/).
