create_mhm_restart_from_setup#

Create mHM restart files from an existing setup.

The module splits a setup into L1 tiles, optionally filters tiles by a mask, runs mHM for each tile, collects the produced restart files, and can merge those tile restarts into a final CF-style restart file.

Classes#

MHMRunner([mhm_packages, mhm_args])

Run mHM through its Python bindings in the base directory of a setup.

MHMSetupTile(name, output_path, lonslice, ...)

Definition of a single cropped setup tile.

Functions#

create_mhm_restart_from_setup(input_path, ...)

Create restart files from a setup by tiling, running mHM, and merging output.

create_setup_tiles(lon_min_bound, ...[, ...])

Create L1 tiles using the same tile-size logic as MHMRestartFile.

get_crop_slices(lon_min, lon_max, lat_min, ...)

Create longitude and latitude slices for crop_mhm_setup.

merge_mhm_restart_files(restart_files, ...)

Merge tiled mHM restart files without renaming variables.

merge_restart_files(restart_file_paths, ...)

Merge mHM tile restart files into one final CF-style restart file.