opendrift.readers.reader_double_gyre

Classes

Reader

Analytical current field with double gyre

Module Contents

class opendrift.readers.reader_double_gyre.Reader(initial_time=datetime(2000, 1, 1, 0, 0), epsilon=0.1, omega=0.628, A=0.25, proj4='+proj=stere +lat_0=0 +lon_0=0 +lat_ts=0 ' + '+units=m +a=6.371e+06 +e=0 +no_defs')[source]

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

Analytical current field with double gyre

Common constructor for all readers

fileName = 'double_gyre'
name = 'double_gyre'
proj4
proj
xmin = 0.0
xmax = 2.0
ymin = 0.0
ymax = 1.0
A
epsilon
omega
initial_time
start_time = None
end_time = None
time_step = None
variables = ['x_sea_water_velocity', 'y_sea_water_velocity']
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.