opendrift.readers.reader_current_from_drifter

Classes

Reader

A continuous (in space and time) reader, able to provide

Module Contents

class opendrift.readers.reader_current_from_drifter.Reader(lons, lats, times, waves=None, z=0, name='reader_current_from_drifter')[source]

Bases: opendrift.readers.basereader.continuous.ContinuousReader

A continuous (in space and time) reader, able to provide exact values at any desired point (within bounds). This reader type is suitable for constant readers, analytical readers, or readers that are static and continuous within the valid domain (e.g. the landmask reader).

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
get_variables(requested_variables, time=None, x=None, y=None, z=None)[source]

Obtain and return values of the requested variables at all positions (x, y, z) closest to given time.

Returns:

Dictionary with arrays of length len(x) with values at exact positions x, y and z.