uxarray.grid.Grid.__init__

Grid.__init__(dataset, **kwargs)

Initialize grid variables, decide if loading happens via file, verts or gridspec.

Parameters
  • dataset (xarray.Dataset, ndarray, list, tuple, required) – Input xarray.Dataset or vertex coordinates that form one face.

  • islatlon (bool, optional) – Specify if the grid is lat/lon based

  • concave (bool, optional) – Specify if this grid has concave elements (internal checks for this are possible)

  • gridspec (bool, optional) – Specifies gridspec

  • mesh_filetype (str, optional) – Specify the mesh file type, eg. exo, ugrid, shp, etc

Raises

RuntimeError – If specified file not found