opendrift.readers.reader_oscillating

Classes

Reader

Returning values oscillating in time with given amplitude and period

Module Contents

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

variables
amplitude
period_seconds = 86400
zero_time
proj4 = '+proj=latlong +datum=WGS84'
xmin = -180
xmax = 180
ymin = -90
ymax = 90
start_time = None
end_time = None
time_step = None
name = 'oscillating_reader'
get_variables(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.