opendrift.readers.operators.ops

Classes

Combine

Combining two readers into a third one. You can use usual operators,

Filter

Module Contents

class opendrift.readers.operators.ops.Combine[source]

Combining two readers into a third one. You can use usual operators, but also more complex ones such as gaussian combining.

__add__(other)[source]
__radd__(other)[source]
__mul__(other)[source]
__rmul__(other)[source]
__truediv__(other)[source]
__sub__(other)[source]
combine_gaussian(measurement_reader, std)[source]

Mix two readers with a gaussian, whose std is the one given as an argument. The measurment reader have to be of type timeseries, with a lon and lat attributes that are taken as the center of the measure.

class opendrift.readers.operators.ops.Filter[source]
property variables: List[str]
Abstractmethod:

Return type:

List[str]

filter_vars(vars)[source]

Only keep the specified variables.

exclude_vars(vars)[source]

Remove the specified variables.