mpas_tools.mesh.attrs.cf_conventions

mpas_tools.mesh.attrs.cf_conventions(conventions=None)[source]

Get a Conventions attribute for an MPAS mesh file that includes CF

Entries in conventions (including any CF version) are kept, and CF-1.8 and MPAS are added if they are missing.

Parameters:

conventions (str, optional) – The existing Conventions attribute, with entries separated by blanks or commas

Returns:

conventions (str) – The Conventions attribute with a CF entry first