[xarray](https://docs.xarray.dev/en/stable/) is a library for working with labeled, multi-dimensional arrays in [[Python]]. `xarray` extends [[NumPy]] by keeping track of labels on arrays and using them to provide a powerful and concise interface.
In the geosciences domain, `xarray` is used to process raster data. `xarray` is often extended by [[rioxarray]]. [[Rasterio]] is a common alternative for raster data.