Skip to main content

read_ugrid

read_ugrid(path)

Read the 2D mesh of a UGRID netCDF file.

Parameters

Name Type Description Default
path str or path - like A UGRID file, such as a D-HYDRO net file; a 1D network or other variables in it are ignored. required

Returns

Name Type Description
Mesh The 2D mesh with its nodes and faces as stored (node order and orientation unchanged), the CRS of the file if it has one, and the lattice derived from the cells.

Raises

Name Type Description
InputError If the file has no 2D mesh topology or more than one, or the mesh is not a refined quad mesh (its nodes do not lie on one lattice).