mesmer.resample.upsample_yearly_data#
- mesmer.resample.upsample_yearly_data(yearly_data, monthly_time, time_dim='time')#
Upsample yearly data to monthly resolution by repeating yearly values.
- Parameters:
yearly_data (xarray.DataArray | xr.Dataset | xr.DataTree) – Yearly values to upsample.
monthly_time (xarray.DataArray | xr.Dataset | xr.DataTree) – Monthly time used to define the time coordinates of the upsampled data.
time_dim (str, default: ‘time’) – Name of the time dimension.
- Returns:
upsampled_yearly_data (xarray.DataArray) – Upsampled yearly temperature values containing the yearly values for every month of the corresponding year.