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 `_) .. code-block:: console $ conda create -n $ conda activate () $ conda install pip () $ pip install git+https://github.com/pabloduran016/Spy4Cast .. To get the latest stable version: .. code-block:: console $ pip install spy4cast Use cfgrib ---------- To use cfgrib you need to install the cfgrib package that depends on the eccodes package On Linux ++++++++ .. code-block:: console () $ sudo apt-get install libeccodes0 () $ pip install cfgrib findlibs==0.0.5 On Mac ++++++ .. code-block:: console () $ brew install eccodes () $ 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 --------------- .. code-block:: console () $ pip uninstall spy4cast () $ 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 (:code:`pip uninstall spy4cast`)