opendrift.readers.reader_ArtificialOceanEddy

Classes

Reader

Artificial reader, with cyclonic surface current around selected centre.

Module Contents

class opendrift.readers.reader_ArtificialOceanEddy.Reader(lon=2, lat=66, proj4='+proj=stere +lat_0=90 +lon_0=70 +lat_ts=60 ' + '+units=m +a=6.371e+06 +no_defs')[source]

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

Artificial reader, with cyclonic surface current around selected centre.

Purpose is demonstration and testing (unittest).

Common constructor for all readers

fileName = 'ArtificialOceanEddy'
name = 'ArtificialOceanEddy'
proj4
proj
pixelsize = 10000
delta_x
delta_y
x0
y0
xmin
xmax
ymin
ymax
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.