lagrangian.field.TimeSerie

class lagrangian.field.TimeSerie

Bases: lagrangian.core.Field

Time series of velocity field

__init__(self: lagrangian.core.field.TimeSerie, configuration_file: str, unit_type: lagrangian.core.UnitType = UnitType.METRIC, coordinates_type: lagrangian.core.CoordinatesType = CoordinatesType.SPHERICAL_EQUATORIAL, reader_type: lagrangian.core.reader.Type = Type.NETCDF) → None

Default constructor

Parameters

Methods

TimeSerie.compute(self, t, x, y, cell)

Interpolates the velocity to the wanted spatio temporal position.

TimeSerie.end_time(self)

Returns the date of the last grid constituting the time series.

TimeSerie.fetch(self, first, last)

Loads the grids used to interpolate the velocities in the interval [first, last]

TimeSerie.start_time(self)

Returns the date of the first grid constituting the time series.

TimeSerie.unit(self)

Returns the unit used by this field :returns: unit used by this field :rtype: str

Attributes

TimeSerie.coordinate_type

Coordinate type used by this field.

TimeSerie.unit_type

Unit type used by this field.