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.

  • dsIn (xarray.Dataset) – A data set to convert

  • graphInfoFileName (str, optional) – A file path (relative or absolute) where the graph file (typically should be written out. By default, is not saved.

  • logger (logging.Logger, optional) – A logger for the output if not stdout

  • dir (str, optional) – A directory in which a temporary directory will be added with files produced during conversion and then deleted upon completion.


dsOut (xarray.Dataset) – The MPAS mesh