xugrid.Ugrid1d.from_dataset#
- classmethod Ugrid1d.from_dataset(dataset: Dataset, topology: str = None)[source]#
Extract the 1D 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