opendrift.readers.interpolation.structured

Module Contents

Classes

ReaderBlock

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

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.

Initialize self. See help(type(self)) for accurate signature.

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

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

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

Check if given positions are covered by this reader block.