extend_to_full_calendar_year#
- dtcg.integration.calibration.extend_to_full_calendar_year(
- ds,
- time_dim='time',
- resolution='',
Extend an xarray Dataset along time_dim to the end of the last calendar year present.
Any newly added timestamps are filled with the last available values (LOCF).
- Parameters:
ds (xr.Dataset)
time_dim (str, default "time")
resolution (str, optional) –
daily: extend to YYYY-12-31 (daily frequency).
monthly: extend to YYYY-12-01 assuming monthly start
timestamps (MS).
- Return type:
tuple | Dataset
