opendrift.readers.reader_current_from_drifter
Classes
An abstract reader. Implementors provide a method to read data and specify how it is interpolated. |
Module Contents
- class opendrift.readers.reader_current_from_drifter.Reader(lons, lats, times, wind=None, waves=None, z=0, name='reader_current_from_drifter')[source]
Bases:
opendrift.readers.basereader.BaseReader
,opendrift.readers.basereader.ContinuousReader
An abstract reader. Implementors provide a method to read data and specify how it is interpolated.
This class inherits
variables.Variables
which inheritsvariables.ReaderDomain
. ReaderDomain is responsible for the extent and domain of the reader, including checking for out-of-bounds and projection conversion. Variables is responsible for returning interpolated data at the requests positions or profiles. Apart from coercing the returned data into the right type foropendrift.models.basemodel
, it defines the abstract interface tovariables.Variables._get_variables_interpolated_()
which reader-implementations must provide (_usually_ through one of the main reader-types, see:opendrift.readers
).Reconstruct currents from time series of drifter positions
- variables = ['x_sea_water_velocity', 'y_sea_water_velocity']
- name = 'reader_current_from_drifter'
- proj4 = '+proj=latlong'
- xmin = -180
- xmax = 180
- ymin = -90
- ymax = 90
- times
Setting this to True overrides temporal and spatial bounds checks. Also useful for readers that are constant and do not have a temporal dimension.
- start_time
- end_time
- time_step
- lon
- lat
- speed = []
- x_sea_water_velocity
- y_sea_water_velocity