cal_long_term_mean#

mhm_tools.post.long_term_mean.cal_long_term_mean(in_dir: str, in_file: str, out_dir: str, long_term_mean_type: str = 'monthly', aggregation_type: str = 'intensive', keep_temporal_files: bool = False, out_file: str | None = None, crop: bool = False, lon_min: float | None = None, lon_max: float | None = None, lat_min: float | None = None, lat_max: float | None = None, aggregate: bool = False, lower_threshold: str | None = None) None[source]#

Compute long-term means for NetCDF forcing data.

Optionally perform temporal aggregation and then merge, or merge raw inputs first. If only one file matches in_file, skip the CDO mergetime step.