polaris.mpas.area_for_field
- polaris.mpas.area_for_field(ds_mesh, field)[source]
Get the appropriate area (on cells, vertices or edges) for the given field
- Parameters:
ds_mesh (xarray.Dataset) – The MPAS mesh
field (xarray.DataArray) – The field whose dimensions determine which area to return
- Returns:
area (xarray.DataArray) – The area on cells, vertices or edges