Improve logging
Added logging to the main cli.
It is now independent of the single program clis. And is called as:
mhm-tools --log_level DEBUG create_mhm_restart_file ...
The default log level is INFO.
Additionally a wrapper that logs all input into the main program functions is added. The output is at log level info and looks as followes:
2024-11-21 15:48:57,945 - INFO - Function 'seasonality_grid_validation' called with the following arguments:
input_path: /work/kelbling/tmp/mhm_global_referun
input_var: aET
output_path: /work/luedke/pyflow_create_mhm_setup_output/gloria_0p05deg/mhm_ref_validation
input_name: mHM_ref
input_factor: 1.0
ref_factor: 1.0
only_plot: False
coordinate_slice: {'lat': slice(43.0, 30.0, None), 'lon': slice(-13.1, 10.1, None)}
n_cpus: 20
n_bootstrap_years: 10
n_bootstrap_selections: 100