opendrift.readers.interpolation.structured

Attributes

logger

Classes

ReaderBlock

Class to store and interpolate the output from a reader with data on a regular (structured) grid.

Module Contents

opendrift.readers.interpolation.structured.logger
class opendrift.readers.interpolation.structured.ReaderBlock(data_dict, interpolation_horizontal='linearNDFast', interpolation_vertical='linear')[source]

Class to store and interpolate the output from a reader with data on a regular (structured) grid.

x
y
time
data_dict
_initialize_interpolator(x, y, z=None)[source]
interpolate(x, y, z=None, variables=None, profiles=[], profiles_depth=None)[source]
_interpolate_horizontal_layers(data, nearest=False)[source]

Interpolate all layers of 3d (or 2d) array.

covers_positions(x, y, z=None)[source]

Check if given positions are covered by this reader block.