xproj
Xarray extension for projections and coordinate reference systems
Decision gist · record as of 2026-08-14
Yes, if you are building or using Xarray-based geospatial extensions and want a lightweight, centralized CRS management layer. The low install friction, permissive license, and active maintenance make it a reasonable foundation dependency. However, treat it as experimental—the API may change, and it is not yet proven in production workflows. Not necessary for simple one-off geospatial scripts; most value accrues when building reusable libraries.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; xarray and pyproj must be installed as runtime dependencies.
- Low install friction; pure Python wheel with only two runtime dependencies (xarray and pyproj).
- Actively maintained with recent commits, though the project is explicitly marked experimental and proof-of-concept in its early releases.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice.
last release 2025-07-07 (403 days) · last repo commit 2026-03-01 · 43 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 136,340 downloads/mo, #11,398 on PyPI
Alternatives
Verify before relying
pip install xproj
import xarray as xr
import xproj
# Access CRS tools via xarray accessor
ds = xr.Dataset()
ds.xproj.crs # Interact with CRS through the extension- Whether the CRSIndex feature for comparing and aligning datasets by CRS is production-ready or still experimental.
- What specific CRS operations (parse, reset, formatting, equality checking) are currently exposed in the public API.
- Whether the package is suitable for production geospatial workflows or primarily for development/prototyping.
What it is and what it does
XProj is a lightweight Xarray extension designed to centralize coordinate reference system (CRS) handling for geospatial data. It wraps Pyproj functionality and exposes it through Xarray accessors, allowing you to work with CRS metadata consistently across Xarray datasets and dataarrays. The package aims to prevent duplication of CRS logic across the Xarray geospatial ecosystem by providing a common, reusable foundation.
The extension focuses narrowly on CRS management—parsing, formatting, equality checking, and comparison—rather than on data reprojection or spatial operations, which are left to specialized downstream packages. It leverages Xarray's custom indexes feature to enable alignment and combination of datasets based on their CRS. The project is currently experimental and proof-of-concept, with active development but no guarantee of API stability.
Use it for
- Standardize CRS representation and comparison across multiple Xarray-based geospatial libraries in a single project.
- Build Xarray extensions that need CRS handling without reimplementing PROJ parsing and validation logic.
- Align or combine Xarray datasets based on their coordinate reference systems using CRSIndex.
- Consolidate CRS metadata operations (checking equality, formatting, resetting) in geospatial workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building or using Xarray-based geospatial extensions and want a lightweight, centralized CRS management layer.
The low install friction, permissive license, and active maintenance make it a reasonable foundation dependency. However, treat it as experimental—the API may change, and it is not yet proven in production workflows. Not necessary for simple one-off geospatial scripts; most value accrues when building reusable libraries.
Install
xproj on PyPI
Before you install
Low install friction; pure Python wheel with only two runtime dependencies (xarray and pyproj). Actively maintained with recent commits, though the project is explicitly marked experimental and proof-of-concept in its early releases.
Requires Python 3.10 or later; xarray and pyproj must be installed as runtime dependencies.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install xproj
import xarray as xr
import xproj
# Access CRS tools via xarray accessor
ds = xr.Dataset()
ds.xproj.crs # Interact with CRS through the extension
Verify before relying
- Whether the CRSIndex feature for comparing and aligning datasets by CRS is production-ready or still experimental.
- What specific CRS operations (parse, reset, formatting, equality checking) are currently exposed in the public API.
- Whether the package is suitable for production geospatial workflows or primarily for development/prototyping.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesxarraypyproj |
| Maintenance | Actively maintained 403 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 136,340 / month, #11,398 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: GIS |
Evidence: xproj-0.2.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “xarray coordinate reference system”
- xprojXProj is an Xarray extension that provides tools for managing…
- rioxarrayrioxarray extends xarray with geospatial and raster operations…
- cf-xarraycf-xarray adds a `.cf` accessor to xarray objects that lets you…
Give your agent the search over MCP, or paste the wish link into any chat.
More GIS packages
Shapely provides Python tools for creating, manipulating, and analyzing 2D geometric objects (points, lines, polygons) using the GEOS library, with both scalar and vectorized NumPy-based operations.
pyproj provides a Python interface to PROJ, enabling cartographic projections and coordinate system transformations for geospatial applications.
GeoPandas extends pandas DataFrames to handle geographic data, combining pandas operations with shapely geometry and spatial analysis capabilities that would otherwise require a spatial database.
Install it if you work with geographic data in Python and want to avoid setting up a spatial database or learning a separate GIS tool.
geopy is a Python client for geocoding and distance calculation that converts addresses to coordinates and vice versa using multiple web-based geocoding services, and computes geodesic and great-circle distances between geographic points.
Install it if you need geocoding or distance calculations in your application.
Pyogrio provides fast, bulk-oriented read and write access to vector spatial data formats (Shapefile, GeoPackage, GeoJSON, etc.) via GDAL/OGR bindings, typically for use with GeoPandas GeoDataFrames.
h3 provides Python bindings to Uber's H3 geospatial indexing library, converting geographic coordinates into hierarchical hexagonal grid cells and performing spatial operations on them.
See also odc-geo · reproj · rioxarray · odc-loader · cf-xarray · xee · rasterix · spatial_image · xarray-dataclass