opendrift.readers.reader_double_gyre

Module Contents

Classes

Reader

Analytical current field with double gyre

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

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.