Skip to content

Installation de la Boîte à Outils

1. Prérequis

2. Téléchargement du répertoire

git clone https://github.com/meteofrance/meteonet.git

3. Installation des dépendances

```sh tab="Conda (Recommended)"

only if you start from an empty virtual environment

conda install -c anaconda numpy>=1.14.0

conda install -c anaconda pandas>=0.24.0

conda install -c anaconda scipy

conda install -c conda-forge matplotlib

conda install -c conda-forge eccodes conda install -c conda-forge cfgrib conda install -c anaconda xarray

```sh tab="Pip"
pip install -r requirements.txt 

4. Installation du paquet

pip install -e .

5. Installation de Jupyter Notebook

```sh tab="Conda (Recommended)" conda install -c conda-forge notebook

```sh tab="Pip"
pip install jupyter

6. (Optionnel) Installation de Cartopy (branche master)

```sh tab="Conda (Recommended)" conda install -c conda-forge cartopy

```sh tab="Pip"
pip install Cartopy

7. (Optionnel) Installation de Basemap (branche basemap)

Warning

Attention

conda install -c anaconda basemap
conda install basemap-data-hires

8. Problèmes fréquents

Note

Eccodes

ECCODES ERROR : Unable to find boot.def, the environment variable ECCODES_DEFINITION_PATH is defined but incorrect

The solution is to indicate the path to the file boot.def by adding an ECCODES_DEFINITION_PATH environment variable. See example of configuration in meteonet_toolbox/user_configuration.py.

KeyError : 'PROJ_LIB'

The solution is to indicate the path to the file epsg by adding a PROJ_LIB environment variable. See example of configuration in meteonet_toolbox/user_configuration.py.