Where raster data cubes refer to data cubes with raster (x- and y-, or lon- and lat-) dimensions, vector data cubes are n-D arrays that have (at least) a single spatial dimension that maps to a set of (2-D) vector geometries. (Edzer Pebesma)
Xvec combines Xarray n-D arrays and shapely 2 planar vector geometries to create a support for vector data cubes in Python. See this post by Edzer Pebesma on an introduction of the concept or the introduction of their implementation in Xvec in our documentation.
The project is in the early stage of development and its API may still change.
You can install Xvec from PyPI using pip
or from conda-forge using mamba
or conda
:
pip install xvec
Or (recommended):
mamba install xvec -c conda-forge
The development version can be installed from GitHub.
pip install git+https://github.com/xarray-contrib/xvec.git
We recommend installing its dependencies using mamba
or conda
before.
mamba install xarray shapely pyproj -c conda-forge