uxarray.helpers.parse_grid_type
uxarray.helpers.parse_grid_type#
- uxarray.helpers.parse_grid_type(filepath, **kw)#
Checks input and contents to determine grid type. Supports detection of UGrid, SCRIP, Exodus and shape file.
- Parameters
filepath (str) – Filepath of the file for which the filetype is to be determined.
- Returns
mesh_filetype – 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