opendrift.readers.reader_timeseries

Module Contents

Classes

Reader

Reader providing the nearest value in time from a given time series.

class opendrift.readers.reader_timeseries.Reader(parameter_value_map)[source]

Bases: opendrift.readers.basereader.BaseReader, opendrift.readers.basereader.ContinuousReader

Reader providing the nearest value in time from a given time series.

init with a map {‘time’:, time array, ‘variable_name’: value, …}

get_variables(self, requestedVariables, time=None, x=None, y=None, z=None)[source]

Obtain and return values of the requested variables at all positions (x, y, z) closest to given time.

Returns:

Dictionary with arrays of length len(x) with values at exact positions x, y and z.