mpas_tools.mesh.conversion.convert

mpas_tools.mesh.conversion.convert(dsIn, graphInfoFileName=None, logger=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 convert

  • graphInfoFileName (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 stdout

Returns

dsOut (xarray.Dataset) – The MPAS mesh