mhm_run_overview#

Build run-overview statistics from mHM namelist-linked NetCDF files.

This module reads an mHM namelist, resolves referenced input directories/files, finds output mHM_Fluxes_States.nc files from dir_Out(*), computes summary statistics per variable, and writes a CSV overview table.

The written table has columns: - file_name - variable - vartype (input or output) - min_value - mean_value - max_value - unit - file_path

Rows are ordered with all input variables first, then output variables. Within each type, rows are sorted by file_name and then variable.

If multiple domains are configured using indexed paths (for example dir_out(1), dir_out(2)), one CSV table per domain is written.

Authors#

  • Simon Lüdke

Classes#

NmlStringAssignment(key, index, value)

Container for one string assignment parsed from a namelist line.

Functions#

collect_input_netcdf_files(assignments, ...)

Collect input NetCDF files from namelist entries.

collect_input_time_reference_files(...[, ...])

Collect forcing files used to infer input temporal resolution.

collect_output_flux_files(assignments, ...)

Collect mHM_Fluxes_States.nc files from dir_Out(*) entries.

collect_stats_rows(dataset_paths, vartype[, ...])

Collect table rows for all numeric variables in given datasets.

compute_variable_stats(da[, temporal_mean])

Compute min/mean/max for a variable.

create_mhm_run_overview(namelist_file, ...)

Create a CSV overview table for input/output NetCDF variables.

guess_time_dim(da)

Guess the time dimension of a DataArray.

parse_namelist_string_assignments(nml_path)

Parse string assignments from a namelist file.

resolve_namelist_path(path_str, nml_path[, ...])

Resolve a path from namelist context to an absolute path.