mpas_tools.mesh.conversion.convert¶
-
mpas_tools.mesh.conversion.
convert
(dsIn, graphInfoFileName=None, logger=None, dir=None)[source]¶ Use
MpasMeshConverter.x
to convert an input mesh to a valid MPAS mesh that is fully compliant with the MPAS mesh specification. https://mpas-dev.github.io/files/documents/MPAS-MeshSpec.pdf- Parameters
dsIn (
xarray.Dataset
) – A data set to convertgraphInfoFileName (str, optional) – A file path (relative or absolute) where the graph file (typically
graph.info
should be written out. By default,graph.info
is not saved.logger (
logging.Logger
, optional) – A logger for the output if not stdoutdir (str, optional) – A directory in which a temporary directory will be added with files produced during conversion and then deleted upon completion.
- Returns
dsOut (
xarray.Dataset
) – The MPAS mesh