API reference#

Top-level functions#

decode(ds[, grid_info, name])

decode grid parameters and create a DGGS index

Grid parameter objects#

DGGSInfo(level)

Base class for DGGS grid information objects

HealpixInfo(level[, indexing_scheme])

Grid information container for healpix grids.

H3Info(level)

Grid information container for h3 grids.

Dataset#

Parameters#

Dataset.dggs.grid_info

The grid info object containing the DGGS type and its parameters.

Dataset.dggs.params

The grid parameters after normalization.

Dataset.dggs.decode

Indexing#

Dataset.dggs.sel_latlon(latitude, longitude)

Select grid cells from latitude/longitude data.

Data inference#

Dataset.dggs.cell_centers()

derive geographic cell center coordinates

Dataset.dggs.cell_boundaries()

derive cell boundary polygons

Dataset.dggs.assign_latlon_coords()

Return a new Dataset or DataArray with new "latitude" and "longitude" coordinates representing the grid cell centers.

DataArray#

Parameters#

DataArray.dggs.grid_info

The grid info object containing the DGGS type and its parameters.

DataArray.dggs.params

The grid parameters after normalization.

DataArray.dggs.decode

Indexing#

DataArray.dggs.sel_latlon(latitude, longitude)

Select grid cells from latitude/longitude data.

Data inference#

DataArray.dggs.cell_centers()

derive geographic cell center coordinates

DataArray.dggs.cell_boundaries()

derive cell boundary polygons

DataArray.dggs.assign_latlon_coords()

Return a new Dataset or DataArray with new "latitude" and "longitude" coordinates representing the grid cell centers.

Plotting#

DataArray.dggs.explore(*[, cmap, center, ...])

interactively explore the data using lonboard

Tutorial#

tutorial.open_dataset(name, grid_name, *[, ...])

Open a dataset from the online repository (requires internet).