You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Centralized the logging level and made it settable via CLI and config file. Moved the resample logic into a resampling engine, added a convenience for_each domain expansion, changed time_interval to just TIME and made generally possible to define multiple time domains there as a list, removed time iteration to plot and added a _plot_one func, eventually this plot func will abstract iteration and move up to Plot class
Path of the configuration file for the ClimateGraph run, by default True, dir_okay=False, file_okay=True, resolve_path=True, help="File defining the analysis.", ), ]
41
+
debug : Annotated[bool, typer.Option, optional
42
+
When passed, forces DEBUG-level logging regardless of the control file's
# Might need to become a whole pairing engine in some time. But for now this will do
402
401
defresample_vars(
403
402
self,
404
403
other: "Data",
@@ -407,8 +406,10 @@ def resample_vars(
407
406
time_interval: str|None=None,
408
407
radius_of_influence: int=10000,
409
408
time_tolerance: str|None="30min",
409
+
engine: str|ResampleEngine="pyresample",
410
+
engine_kwargs: dict|None=None,
410
411
) ->xr.DataArray|xr.Dataset:
411
-
"""resample_vars Resample the requested vars using Pyresample and the geom attributes. Until now only NearestNeighbour method is being used.
412
+
"""Resample the requested vars using the specified ResampleEngine.
412
413
413
414
Parameters
414
415
----------
@@ -421,9 +422,15 @@ def resample_vars(
421
422
time_interval : str | None, optional
422
423
Time interval in dd/mm/yyyy-dd/mm/yyyy or d/m/yyyy-d/m/yyyy, by default None
423
424
radius_of_influence : int, optional
424
-
Radius length in meters to use for resampling with nearest neighbours. Lower improves computation time but may result in less resulting data, by default 10000
425
+
Radius length in meters to use for resampling. by default 10000
425
426
time_tolerance : str | None, optional
426
-
Pandas-style timedelta used as the tolerance when snapping ``other``'s time axis onto ``self``'s via nearest-neighbour reindex. Handles cases where the two sources are on the same cadence but offset (e.g. CHIMERE at HH:30 vs. point-surface at HH:00). Set to ``None`` to disable snapping. Default ``"30min"``.
427
+
Pandas-style timedelta used as the tolerance when snapping ``other``'s
428
+
time axis onto ``self``'s via nearest-neighbour reindex. Default ``"30min"``.
429
+
engine : str | ResampleEngine, optional
430
+
Resample backend name or instance. Default ``"pyresample"``.
0 commit comments