polaris.mesh.spherical.quality.check_finite_mesh_values
- polaris.mesh.spherical.quality.check_finite_mesh_values(ds_mesh)[source]
Check that no floating-point variable in an MPAS mesh is NaN or infinite.
MpasMeshConverter.xinmpas_tools2.2.1 and earlier wrote NaNareaTriangle,kiteAreasOnVertexandweightsOnEdgeat some vertices of obtuse triangles, which river constraints produce on unified meshes, without reporting an error (MPAS-Dev/MPAS-Tools#778, fixed in 2.2.2). This check makes sure such values fail the step rather than reaching later steps.- Parameters:
ds_mesh (xarray.Dataset) – MPAS mesh dataset
- Raises:
ValueError – If any floating-point variable has non-finite values, naming each such variable and how many values are affected