uxarray.io.utils._parse_grid_type#

uxarray.io.utils._parse_grid_type(dataset)#

Checks input and contents to determine grid type. Supports detection of UGrid, SCRIP, Exodus and shape file.

Parameters

dataset (Xarray dataset) – Xarray dataset of the grid

Returns

mesh_type – File type of the file, ug, exo, scrip or shp

Return type

str

Raises