xproj is an extension for xarray that adds support for coordinate reference systems (CRS) and map projections. It provides CRS-aware indexes, accessors, and integration with pyproj. The current version is 0.2.1, with an active development cadence.
pip install xprojNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quick example: load a dataset and retrieve its CRS via the xproj accessor.
Replace `_proj_get_crs()` with a `crs` abstract property in your custom index class.
Always run `import xproj` before using the `.xproj` accessor.
Set CRS directly using `ds.xproj.set_crs(crs)` rather than relying on `allow_override`.
Add `import xproj` at the top of your script.
Use `from pyproj import CRS` instead.