stilt.config.Grid.to_xarray#

Grid.to_xarray()[source]#

Return the grid as a CF-1.8 dataset of cell centers.

The dataset has lon and lat coordinates (x and y when projected) matching the footprint, and a crs grid-mapping variable. Pass it to stilt.Footprint.aggregate() as a target, or to other tools that read CF grids. Projected grids need pyproj.

Return type:

Dataset