opendrift.readers.basereader.continuous

Module Contents

Classes

ContinuousReader

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

Attributes

logger

opendrift.readers.basereader.continuous.logger
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).

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

Returns:

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

_get_variables_interpolated_(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.