opendrift.readers.reader_failing

Classes

Reader

A reader for testing discarding after failure

Module Contents

class opendrift.readers.reader_failing.Reader[source]

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

A reader for testing discarding after failure

Common constructor for all readers

variables = ['x_wind', 'y_wind']
proj4 = '+proj=latlong'
xmin
xmax = 180
ymin
ymax = 90
start_time = None
end_time = None
time_step = None
name = 'failing_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.