xugrid.UgridDataArrayAccessor.to_dataset#
- UgridDataArrayAccessor.to_dataset(optional_attributes: bool = False)[source]#
Convert this UgridDataArray or UgridDataset into a standard xarray.Dataset.
The UGRID topology information is added as standard data variables.
- Parameters:
optional_attributes (bool, default: False.) – Whether to generate the UGRID optional attributes.
- Returns:
dataset
- Return type: