xarray.Dataset.dggs.encode#
- Dataset.dggs.encode(convention, *, encoding=None)#
Encode the dataset to the given convention
- Parameters:
convention (
str) – The name of the convention. Supported are:“easygems”:
grid_mappingcoordinate andcelldimension andcellcoordinate with a pandas index.“cf”:
grid_mappingcoordinate withcell_indexcoordinate andcelldimension.“xdggs”:
cell_idscoordinate with grid metadata and acellscoordinate.
- Returns:
obj (
xarray.DataArrayorxarray.Dataset) – The object converted to the given dimension.