map2loop.thickness_calculator.DipDipDirectionInterpolator#
- class map2loop.thickness_calculator.DipDipDirectionInterpolator(data_type=None)#
Bases:
Interpolator
- Parameters:
Interpolator (ABC) – Derived from Abstract Base Class
Initialiser of for IDWInterpolator
- __init__(data_type=None)#
Initialiser of for IDWInterpolator
Methods
__init__
([data_type])Initialiser of for IDWInterpolator
interpolate
(ni[, interpolator])Inverse Distance Weighting interpolation method
setup_grid
(bounding_box)Setup the grid for interpolation
setup_interpolation
(structure_data)Setup the interpolation method
type
()Getter for subclass type label
- interpolate(ni: ~numpy.ndarray | list, interpolator: ~typing.Any = <class 'scipy.interpolate._rbf.Rbf'>)#
Inverse Distance Weighting interpolation method
- Parameters:
ni (int) – value to interpolate
interpolator – type of interpolator to use by default SciPy Rbf interpolator
- Returns:
Rbf – radial basis function object
- setup_grid(bounding_box: dict)#
Setup the grid for interpolation
- Parameters:
bounding_box (dict) – a dictionary containing the bounding box of the map data.
format (The bounding box dictionary should comply with the following) –
{ “minx”: value, “maxx”: value, “miny”: value, “maxy”: value,
}
- setup_interpolation(structure_data: DataFrame)#
Setup the interpolation method
- Parameters:
structure_data (pandas.DataFrame) – sampled structural data
- type()#
Getter for subclass type label
- Returns:
str – Name of subclass