prepare_forcings#
- mhm_tools.pre.prepare_mhm_forcings.prepare_forcings(in_dir: str, in_file: str, out_dir: str, out_file: str, var: 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, use_mfdataset: bool = False, target_frequency: str | None = None, out_var: str | None = None) None[source]#
Loop through all files matching in_file in in_dir, convert units.
Optionally crop, and write to NetCDF in out_dir with naming controlled by out_file.