opendrift.readers.reader_oscillating

Module Contents

Classes

Reader

Returning values oscillating in time with given amplitude and period

class opendrift.readers.reader_oscillating.Reader(variable, amplitude, period_seconds=3600 * 24, phase=0, zero_time=datetime(2017, 1, 1, 0))[source]

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

Returning values oscillating in time with given amplitude and period

init with

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.