mpas_tools.mesh.attrs.add_mesh_attrs
- mpas_tools.mesh.attrs.add_mesh_attrs(ds)[source]
Add CF metadata to the mesh variables in a dataset and add CF to its
Conventions. Attributes that a variable already has are kept, except that alatitudeorlongitudestandard_nameis removed from the latitude and longitude variables of a planar mesh.Latitude and longitude variables only get a
standard_nameif theon_a_sphereattribute of the dataset isYES.- Parameters:
ds (xarray.Dataset) – An MPAS mesh dataset, modified in place
- Returns:
ds (xarray.Dataset) – The same dataset, for convenience