Installation¶
Required dependencies¶
For plotting on geographical maps:
To open Natural Earth datasets (shapefiles):
Instructions¶
regionmask itself is a pure Python package, but its dependencies are not. The easiest way to get them installed is to use conda.
$ conda install numpy cartopy xarray
If you don’t use conda, be sure you have the required dependencies. You can then install regionmask via pip (it is not (yet) available on PyPi and on conda):
pip install git+https://github.com/mathause/regionmask
To run the test suite after installing xarray, install
py.test and run py.test regionmask
.