polaris.mesh.spherical.quality.check_cell_polygon_quality
- polaris.mesh.spherical.quality.check_cell_polygon_quality(ds_mesh, minimum_edge_length_ratio, minimum_corner_sine, max_bad_cells_to_report)[source]
Check MPAS cell polygons for nearly duplicate or collinear vertices.
- Parameters:
ds_mesh (xarray.Dataset) – MPAS mesh dataset
minimum_edge_length_ratio (float) – Minimum edge length as a fraction of the median edge length in each cell
minimum_corner_sine (float) – Minimum sine of each corner angle in each cell
max_bad_cells_to_report (int) – Maximum number of failing cells to include in the error message
- Returns:
diagnostics (dict) – The global minimum edge-length ratio and corner sine