stilt.config.Grid.to_xarray#

Grid.to_xarray()[source]#

Return this grid as a CF-style xarray Dataset of cell centers.

The result carries 1-D lon/lat (or projected x/y) coordinates matching the footprint’s native output grid, plus a crs grid-mapping variable. This is the interchange form of the grid: pass it as the target of stilt.Footprint.aggregate(), or hand it to other tools via the shared xarray/CF grid convention.

pyproj is required only for non-longlat projections.

Return type:

Dataset