calc_rel_diff#

mhm_tools.post.relative_difference.calc_rel_diff(ref_input_dir: str, mod_input_dir: str, reference_pattern: str, model_pattern: str, ref_var: str, mod_var: str, save_ncfile: bool, output_file_nc: str, colorbar_label: str, title: str, output_dir: str, output_file_png: str, x_min: float | None = None, x_max: float | None = None, y_min: float | None = None, y_max: float | None = None, cmap: str = 'RdBu', vmin: float | None = None, vmax: float | None = None) None[source]#

Compute long-term mean difference between model and reference datasets and plot the result.