:py:mod:`opendrift.readers.interpolation` ========================================= .. py:module:: opendrift.readers.interpolation Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 interpolators/index.rst structured/index.rst Package Contents ---------------- Classes ~~~~~~~ .. autoapisummary:: opendrift.readers.interpolation.Nearest2DInterpolator opendrift.readers.interpolation.NDImage2DInterpolator opendrift.readers.interpolation.LinearND2DInterpolator opendrift.readers.interpolation.Linear2DInterpolator opendrift.readers.interpolation.Nearest1DInterpolator opendrift.readers.interpolation.Linear1DInterpolator opendrift.readers.interpolation.ReaderBlock Functions ~~~~~~~~~ .. autoapisummary:: opendrift.readers.interpolation.expand_numpy_array opendrift.readers.interpolation.fill_NaN_towards_seafloor Attributes ~~~~~~~~~~ .. autoapisummary:: opendrift.readers.interpolation.logger opendrift.readers.interpolation.horizontal_interpolation_methods opendrift.readers.interpolation.vertical_interpolation_methods .. py:data:: logger .. py:function:: expand_numpy_array(data) .. py:class:: Nearest2DInterpolator(xgrid, ygrid, x, y) .. py:method:: __call__(array2d) .. py:class:: NDImage2DInterpolator(xgrid, ygrid, x, y) .. py:method:: __call__(array2d) .. py:class:: LinearND2DInterpolator(xgrid, ygrid, x, y) .. py:attribute:: logger .. py:method:: __call__(array2d) .. py:class:: Linear2DInterpolator(xgrid, ygrid, x, y) .. py:attribute:: logger .. py:method:: __call__(array2d) .. py:data:: horizontal_interpolation_methods .. py:class:: Nearest1DInterpolator(zgrid, z) .. py:method:: __call__(array2d) .. py:class:: Linear1DInterpolator(zgrid, z) .. py:method:: __call__(array2d) .. py:data:: vertical_interpolation_methods .. py:function:: fill_NaN_towards_seafloor(array) Extrapolate NaN-values (missing) towards seafloor .. py:class:: ReaderBlock(data_dict, interpolation_horizontal='linearNDFast', interpolation_vertical='linear') Class to store and interpolate the output from a reader with data on a regular (structured) grid. .. py:method:: _initialize_interpolator(x, y, z=None) .. py:method:: interpolate(x, y, z=None, variables=None, profiles=[], profiles_depth=None) .. py:method:: _interpolate_horizontal_layers(data, nearest=False) Interpolate all layers of 3d (or 2d) array. .. py:method:: covers_positions(x, y, z=None) Check if given positions are covered by this reader block.