uxarray.Grid.from_dataset#
- classmethod Grid.from_dataset(dataset, use_dual=False, **kwargs)#
Constructs a
Grid
object from a dataset.- Parameters:
dataset (xr.Dataset or path-like) –
xarray.Dataset
containing unstructured grid coordinates and connectivity variables or a directorycontaining ASCII files represents a FESOM2 grid.
use_dual (bool, default=False) – When reading in MPAS formatted datasets, indicates whether to use the Dual Mesh