xoa.filter.demerliac
- xoa.filter.demerliac(da, na_thres=0, dt_tol=0.01)[source]
Apply a dermerliac filter on a data array
Note that the data array must have a valid time dimension. When the time step is less than an hour, an interpolation is made on the weights since they are made for hourly time series.
- Parameters:
da (xarray.DataArray) –
dt_tol (float) – Relative tolerance for the time step variability
na_thres (float) – A float between 0 and 1 that defines the allowed level a NaN contamination. See
convolve()
.
- Returns:
xarray.DataArray