opendrift.elements.passivetracer
Classes
Basic implementation of LagrangianArray with no additional properties. |
Module Contents
- class opendrift.elements.passivetracer.PassiveTracer(**kwargs)[source]
Bases:
opendrift.elements.LagrangianArray
Basic implementation of LagrangianArray with no additional properties.
Contains only the properties of the abstract class LagrangianArray, i.e. position (lon, lat, z) and ID. May be used for passive tracer calculations when no properties are needed.
Initialises a LagrangianArray with given properties.
- Args:
Keyword arguments (kwargs) with names corresponding to the OrderedDict ‘variables’ of the class, and corresponding values. The values must be ndarrays of equal length, or scalars. All (or none) variables must be given, unless a default value is specified in the OrderedDict ‘variables’ An empty object may be created by giving no input.