mpas_tools.viz.mpas_to_xdmf.mpas_to_xdmf.MpasToXdmf.load

MpasToXdmf.load(mesh_filename, time_series_filenames=None, variables=None, xtime_var=None)[source]

Load the MPAS mesh file and optionally combine it with time series files into a single xarray Dataset.

Parameters:
  • mesh_filename (str) – Path to the MPAS mesh file (NetCDF).

  • time_series_filenames (list of str or str, optional) – List of NetCDF filenames or a wildcard string for time series files. If None, only the mesh file is used.

  • variables (list of str, optional) –

    List of variables to convert. Special keys:
    • ’allOnCells’: all variables with dimension ‘nCells’

    • ’allOnEdges’: all variables with dimension ‘nEdges’

    • ’allOnVertices’: all variables with dimension ‘nVertices’

    If None, all variables are included.

  • xtime_var (str, optional) – Name of the variable containing time information (e.g., ‘xtime’).