energy_methods.climatology#
Streaming, equal-year monthly climatologies with explicit coverage gates.
- energy_methods.climatology.monthly_climatology(batches, *, start_year, end_year, minimum_valid_years=None)[source]#
Consume one monthly archive at a time, retaining twelve sums/counts per cell.
Every calendar month in the requested period must be present exactly once. By default each cell also needs every year for every month. Relaxing the cell gate is explicit; the returned counts expose unequal sampling. Temperature monthly means and precipitation monthly totals are averaged across years, never summed across the baseline. No interpolation or missing-to-zero fill.
- Parameters:
batches (Iterable[DataArray])
start_year (int)
end_year (int)
minimum_valid_years (int | None)
- Return type:
Dataset