mpas_tools.viz.mpas_to_xdmf.mpas_to_xdmf.MpasToXdmf.convert_to_xdmf

MpasToXdmf.convert_to_xdmf(out_dir, extra_dims=None, quiet=False)[source]

Convert the loaded xarray Dataset to XDMF + HDF5 format.

Parameters:
  • out_dir (str) – Directory where XDMF and HDF5 files will be saved.

  • extra_dims (dict, optional) – Dictionary mapping extra dimensions to their selected indices. Example: {‘nVertLevels’: [0, 1, 2]} If None, all indices are included.

  • quiet (bool, optional) – If True, suppress progress output.

  • Output

  • ------

  • directory. (- XDMF files (.xdmf) and HDF5 files (.h5) in the specified)

Raises:

ValueError – If required files or variables are missing.