Installation¶
To use Spy4Cast, first install it using git:
To get the latest version:
Warning
The environment must be compatible with all the dependencies and Cartopy may need python version to be 3.9 or lower
Note
You have to have installed git (Install Git)
Note
You have to have installed anaconda (Install Anaconda)
$ conda create -n <your-env-name>
$ conda activate <your-env-name>
(<your-env-name>) $ conda install pip
(<your-env-name>) $ pip install git+https://github.com/pabloduran016/Spy4Cast
Use cfgrib¶
To use cfgrib you need to install the cfgrib package that depends on the eccodes package
On Linux¶
(<your-env-name>) $ sudo apt-get install libeccodes0
(<your-env-name>) $ pip install cfgrib findlibs==0.0.5
On Mac¶
(<your-env-name>) $ brew install eccodes
(<your-env-name>) $ pip install cfgrib findlibs==0.0.5
Note
eccodes depends on findlibs, whose newer version does not work with python3.9 so make
sure to specify the version number.
Upgrade Version¶
(<your-env-name>) $ pip uninstall spy4cast
(<your-env-name>) $ pip install --upgrade --no-cache-dir git+https://github.com/pabloduran016/Spy4Cast
Warning
Sometimes the command above is not enough and you need to uninstall spy4cast
before upgrading (pip uninstall spy4cast)