pyremo.preproc.ERA5Preprocessor.run

ERA5Preprocessor.run(start, end=None, freq='6h', outpath=None, compute=False, write=True, initial=None, static=None, **kwargs)

Batch preprocess a sequence of timesteps.

Parameters:
  • start (str or datetime-like) – Start date/time.

  • end (str or datetime-like, optional) – Inclusive end date/time. If None only start is processed.

  • freq (str, optional) – Timestep frequency passed to datelist() (default "6h").

  • outpath (str, optional) – Output path template. Falls back to self.outpath if None.

  • compute (bool, optional) – If True triggers immediate Dask computation; otherwise delayed objects are returned.

  • write (bool, optional) – If True datasets are written to disk; otherwise returned in memory.

  • initial (bool or None, optional) – Explicit initial-condition flag. If None the first timestep is marked initial.

  • **kwargs – Extra keyword arguments forwarded to preprocess() / remap.

Returns:

list – List of xarray.Dataset objects or file paths depending on write / compute flags.