src.monarchs.core.dump_model_state

Functions to handle dumping of model state, so that runs can be restarted upon failure. Separate from model_output, which just handles a user-defined subset of the outputs (i.e. ones that are useful scientifically, rather than everything needed to restart the model).

Functions

dump_state(fname, grid, met_start_idx, met_end_idx)

MONARCHS can sometimes crash, or throw an error. This function allows for the model state to be

reload_from_dump(fname, grid[, keys])

Loads in the netCDF file containing the model state, and loads the data into