lagrangian.field.TimeSerie¶
-
class
lagrangian.field.TimeSerie¶ Bases:
lagrangian.core.FieldTime 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
configuration_file (str) – The configuration file contains the list of files to take into account to interpolate velocities.
unit_type (lagrangian.UnitType) –
coordniates_type (lagrangian.CoordinatesType) – Type of coordinates
reader_type (lagrangian.reader.Type) – containing velocities.
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
Coordinate type used by this field.
Unit type used by this field.
-