pvtend.compute_climatology
- pvtend.compute_climatology(data_dir: str | Path, output_dir: str | Path, years: Sequence[int], variables: Sequence[str] = ['u', 'v', 'w', 't', 'pv', 'z', 'q'], per_month: bool = True, engine: str = 'netcdf4') list[Path][source]
Compute per-variable per-month hourly climatology.
Accumulates hourly data from monthly ERA5 files, averages over years, then applies Fourier smoothing.
- Parameters:
data_dir – Directory with ERA5 monthly NetCDF files.
output_dir – Where to write climatology files.
years – Years to include in the climatology.
variables – Variable names to process.
per_month – If True, output one file per
(variable, month).engine – NetCDF engine.
- Returns:
List of output file paths.