opendrift.readers.interpolation

Submodules

Package Contents

Classes

Nearest2DInterpolator

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

NDImage2DInterpolator

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

LinearND2DInterpolator

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

Linear2DInterpolator

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

Nearest1DInterpolator

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

Linear1DInterpolator

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

ReaderBlock

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

Functions

expand_numpy_array(data)

fill_NaN_towards_seafloor(array)

Extrapolate NaN-values (missing) towards seafloor

opendrift.readers.interpolation.logger
opendrift.readers.interpolation.expand_numpy_array(data)[source]
class opendrift.readers.interpolation.Nearest2DInterpolator(xgrid, ygrid, x, y)[source]

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

__call__(self, array2d)[source]
class opendrift.readers.interpolation.NDImage2DInterpolator(xgrid, ygrid, x, y)[source]

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

__call__(self, array2d)[source]
class opendrift.readers.interpolation.LinearND2DInterpolator(xgrid, ygrid, x, y)[source]

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

logger
__call__(self, array2d)[source]
class opendrift.readers.interpolation.Linear2DInterpolator(xgrid, ygrid, x, y)[source]

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

logger
__call__(self, array2d)[source]
opendrift.readers.interpolation.horizontal_interpolation_methods
class opendrift.readers.interpolation.Nearest1DInterpolator(zgrid, z)[source]

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

__call__(self, array2d)[source]
class opendrift.readers.interpolation.Linear1DInterpolator(zgrid, z)[source]

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

__call__(self, array2d)[source]
opendrift.readers.interpolation.vertical_interpolation_methods
opendrift.readers.interpolation.fill_NaN_towards_seafloor(array)[source]

Extrapolate NaN-values (missing) towards seafloor

class opendrift.readers.interpolation.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.