xugrid.Ugrid2d.from_dataset#

classmethod Ugrid2d.from_dataset(dataset: Dataset, topology: str = None)[source]#

Extract the 2D UGRID topology information from an xarray Dataset.

Parameters:

dataset (xr.Dataset) – Dataset containing topology information stored according to UGRID conventions.

Returns:

grid

Return type:

Ugrid1dAdapter