Module Contents



A continuous (in space and time) reader, able to provide

class opendrift.readers.basereader.continuous.ContinuousReader[source]

Bases: opendrift.readers.basereader.variables.Variables

A continuous (in space and time) reader, able to provide exact values at any desired point (within bounds). This reader type is suitable for constant readers, analytical readers, or readers that are static and continuous within the valid domain (e.g. the landmask reader).

Initialize self. See help(type(self)) for accurate signature.

abstract get_variables(self, variables, 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.


Dictionary with arrays of length len(x) with values at exact positions x, y and z.

_get_variables_interpolated_(self, variables, profiles, profiles_depth, time, reader_x, reader_y, z)[source]

This method _must_ be implemented by every reader. Usually by subclassing one of the reader types (e.g. structured.StructuredReader).

Arguments are in _native projection_ of reader.