Installation

Dependencies

Dependencies of PyGeoHydro are as listed below:

The following optional libraries are recommended to improve performance of xarray:

Additionally, CartoPy can be installed to support more projections when plotting geospatial data with matplotlib. This library is specifically useful for plotting Daymet data.

Stable release

You can install PyGeoHydro using pip:

$ pip install pygeohydro

Please note that installationa with pip fails if libgdal is not installed on your system. You should install this package manually beforehand. For example, on Ubuntu-based distros the required package is libgdal-dev. If this package is installed on your system you should be able to run gdal-config --version successfully.

Alternatively, PyGeoHydro and all its dependencies can be installed from conda-forge using Conda:

$ conda install -c conda-forge pygeohydro

From sources

The sources for PyGeoHydro can be downloaded from its Github repo.

You can either clone this public repository:

$ git clone https://github.com/cheginit/pygeohydro.git

Or download the tarball:

$ curl -OJL https://github.com/cheginit/pygeohydro/tarball/master

Once you have a copy of the source, you can install it with:

$ python -m pip install .

Please refer to the note for installation with pip above, regarding the libgdal requirement.