Name | xvec JSON |
Version |
0.5.1
JSON |
| download |
home_page | None |
Summary | Vector data cubes for Xarray |
upload_time | 2025-08-22 08:39:30 |
maintainer | Xvec contributors |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT |
keywords |
gis
cartography
pandas
shapely
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Vector data cubes for Xarray
In geospatial analysis, data cubes can be of two sorts. The first is a raster data cube, typically represented by an [Xarray](https://docs.xarray.dev/en/stable/) DataArray indexed either by `x` or `y` dimensions or `latitude` and `longitude`. The second is a vector data cube, which is an n-D array that has either at least one dimension indexed by a 2-D array of vector geometries ([Pebesma, 2022](https://r-spatial.org/r/2022/09/12/vdc.html)) or contains geometries as variables (e.g. moving features or time-evolving shapes), possibly both.
We can distinguish between two types of geometries in a DataArray or Dataset:
- **coordinate geometry** - an array (typically one dimensional) is used as coordinates along one or more dimensions. A typical example would be an outcome of zonal statistics of a multi-dimensional raster, avoiding the need for _flattenning_ of the array to a data frame.
- **variable geometry** - an array (typicially multi-dimensional) is used as a variable within a DataArray. This may encode evolving shapes of lava flows in time, trajectories, or growth of city limits.
The Xvec package brings support for both of these to the Xarray ecosystem. It uses [Shapely](https://shapely.readthedocs.io/en/stable/) package, allowing a seamless interface between Xvec and [GeoPandas](https://geopandas.org/). See [this post](https://r-spatial.org/r/2022/09/12/vdc.html) by Edzer Pebesma on an introduction of the concept of coordinate geometry or [introduction](https://xvec.readthedocs.io/en/latest/intro.html) page in Xvec documentation.
## Project status
The project is in the early stage of development and its API may still change.
## Installing
You can install Xvec from PyPI using `pip` or from conda-forge using `mamba` or `conda`:
```sh
pip install xvec
```
Or (recommended):
```sh
mamba install xvec -c conda-forge
```
### Development version
The development version can be installed from GitHub.
```sh
pip install git+https://github.com/xarray-contrib/xvec.git
```
We recommend installing its dependencies using `mamba` or `conda` before.
```sh
mamba install xarray shapely pyproj -c conda-forge
```
Raw data
{
"_id": null,
"home_page": null,
"name": "xvec",
"maintainer": "Xvec contributors",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "GIS, cartography, pandas, shapely",
"author": null,
"author_email": "Martin Fleischmann <martin@martinfleischmann.net>, Beno\u00eet Bovy <benbovy@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/a2/2b/e79d62126f672cc8a397c64225ac7aa349f7b2267e95088a518e39fa13e3/xvec-0.5.1.tar.gz",
"platform": null,
"description": "# Vector data cubes for Xarray\n\nIn geospatial analysis, data cubes can be of two sorts. The first is a raster data cube, typically represented by an [Xarray](https://docs.xarray.dev/en/stable/) DataArray indexed either by `x` or `y` dimensions or `latitude` and `longitude`. The second is a vector data cube, which is an n-D array that has either at least one dimension indexed by a 2-D array of vector geometries ([Pebesma, 2022](https://r-spatial.org/r/2022/09/12/vdc.html)) or contains geometries as variables (e.g. moving features or time-evolving shapes), possibly both.\n\nWe can distinguish between two types of geometries in a DataArray or Dataset:\n\n- **coordinate geometry** - an array (typically one dimensional) is used as coordinates along one or more dimensions. A typical example would be an outcome of zonal statistics of a multi-dimensional raster, avoiding the need for _flattenning_ of the array to a data frame.\n- **variable geometry** - an array (typicially multi-dimensional) is used as a variable within a DataArray. This may encode evolving shapes of lava flows in time, trajectories, or growth of city limits.\n\nThe Xvec package brings support for both of these to the Xarray ecosystem. It uses [Shapely](https://shapely.readthedocs.io/en/stable/) package, allowing a seamless interface between Xvec and [GeoPandas](https://geopandas.org/). See [this post](https://r-spatial.org/r/2022/09/12/vdc.html) by Edzer Pebesma on an introduction of the concept of coordinate geometry or [introduction](https://xvec.readthedocs.io/en/latest/intro.html) page in Xvec documentation.\n\n## Project status\n\nThe project is in the early stage of development and its API may still change.\n\n## Installing\n\nYou can install Xvec from PyPI using `pip` or from conda-forge using `mamba` or `conda`:\n\n```sh\npip install xvec\n```\n\nOr (recommended):\n\n```sh\nmamba install xvec -c conda-forge\n```\n\n### Development version\n\nThe development version can be installed from GitHub.\n\n```sh\npip install git+https://github.com/xarray-contrib/xvec.git\n```\n\nWe recommend installing its dependencies using `mamba` or `conda` before.\n\n```sh\nmamba install xarray shapely pyproj -c conda-forge\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Vector data cubes for Xarray",
"version": "0.5.1",
"project_urls": {
"Home": "https://xvec.readthedocs.io",
"Repository": "https://github.com/xarray-contrib/xvec"
},
"split_keywords": [
"gis",
" cartography",
" pandas",
" shapely"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "9e7855c7ed1be12286c1245fbc0a7c01fe6ebbae4f67276e0d1f7b57ef2ea22e",
"md5": "420679bcc4c7d2ea8a58952452a2a14e",
"sha256": "d285aab6266b50d5496da5d9f664820e3ef286bc21f5c4e8bb218be48737a1ad"
},
"downloads": -1,
"filename": "xvec-0.5.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "420679bcc4c7d2ea8a58952452a2a14e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 784627,
"upload_time": "2025-08-22T08:39:28",
"upload_time_iso_8601": "2025-08-22T08:39:28.523658Z",
"url": "https://files.pythonhosted.org/packages/9e/78/55c7ed1be12286c1245fbc0a7c01fe6ebbae4f67276e0d1f7b57ef2ea22e/xvec-0.5.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "a22be79d62126f672cc8a397c64225ac7aa349f7b2267e95088a518e39fa13e3",
"md5": "d47915febdfad049722790de4970f984",
"sha256": "ac4af0e4a5ffd3fadcc4fcf927746b528872dc851378dd431a683de1584e0a14"
},
"downloads": -1,
"filename": "xvec-0.5.1.tar.gz",
"has_sig": false,
"md5_digest": "d47915febdfad049722790de4970f984",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 2519992,
"upload_time": "2025-08-22T08:39:30",
"upload_time_iso_8601": "2025-08-22T08:39:30.302680Z",
"url": "https://files.pythonhosted.org/packages/a2/2b/e79d62126f672cc8a397c64225ac7aa349f7b2267e95088a518e39fa13e3/xvec-0.5.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-22 08:39:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "xarray-contrib",
"github_project": "xvec",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "xvec"
}