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, ESMF, 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:
- Raises:
RuntimeError – If invalid file type
ValueError – If file is not in UGRID format