--- id: xproj version: "0.2.1" license: Apache-2.0 license_treatment: permissive maintenance: active --- # xproj — Xarray extension for projections and coordinate reference systems License: permissive · Maintenance: active · Downloads: 136.3K/mo ## 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 above — verify before relying. XProj is an Xarray extension that provides tools for managing geospatial coordinate reference systems (CRS) using PROJ and Pyproj, enabling uniform CRS handling across Xarray datasets. 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 pip install xproj uv add xproj poetry add xproj ## Installing xproj 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. 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 Requires Python 3.10 or later; xarray and pyproj must be installed as runtime dependencies. 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_current - Install friction: low - Maintenance: active - Downloads: 136.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags xarray coordinate reference system, CRS management xarray, geospatial projection xarray, PROJ pyproj xarray extension, xarray GIS coordinate systems, CRS index xarray alignment, geospatial, xarray-extension, coordinate-systems [View on SkillFed](https://skillfed.io/packages/xproj) · [View on PyPI](https://pypi.org/project/xproj/)