wradlib.util.from_to

Contents

wradlib.util.from_to#

wradlib.util.from_to(tstart, tend, tdelta)[source]#

Return a list of timesteps from <tstart> to <tend> of length <tdelta>

Parameters:
  • tstart (str or datetime.datetime) – datetime isostring (%Y%m%d %H:%M:%S), e.g. 2000-01-01 15:34:12 or datetime object

  • tend (str or datetime.datetime) – datetime isostring (%Y%m%d %H:%M:%S), e.g. 2000-01-01 15:34:12 or datetime object

  • tdelta (int) – representing time interval in SECONDS

Returns:

output (list) – list of datetime.datetime objects