Bounds
Bounds#
- ccres_weather_station.bounders.apply_bounds.apply_bounds(ds: xarray.core.dataset.Dataset, config: ccres_weather_station.config.config.Config, start_date: Optional[datetime.datetime], end_date: Optional[datetime.datetime]) xarray.core.dataset.Dataset[source]#
Apply boundaries cut to the dataset.
Cut the from start_date to end_date.
- Parameters
ds (xr.Dataset) – Incoming xarray dataset
config (Config) – Configuration object
start_date (Optional[dt.datetime]) – Date from which to keep all output data
end_date (Optional[dt.datetime]) – Date from which to remove all output data
- Returns
Cutted xarray dataset
- Return type
xr.Dataset