InterpAnisotropic¶
Class that performs anisotropic interpolation. Transforms points so x is a distance of a projected normal onto the centerline and y is the distance from (above or below) the centerline. Interpolate using inverse distance weighted interpolation after scaling the transformed x-values.
-
class
xmsinterp.interpolate.
InterpAnisotropic
(**kwargs)¶ -
get_interpolation_points
()¶ Get the interpolation points transformed into (s,n,z) space and scaled.
Returns: The transformed and scaled interpolation points (passed to SetPoints).
-
get_transformed_points
(points, get_closest)¶ Transform points into (s,n,z) space and then scale.
Parameters: - points (iterable) – The points to transform into (s,n,z) space.
- get_closest (bool) – True to pick only the closest transformed point.
Returns: The points transformed into (s,n,z) space.
-
interp_to_point
(point)¶ Interpolates to the location specified by a_pt and returns the value.
Parameters: point (tuple) – The location of the interpolation point Returns: The interpolated value
-
interp_to_points
(points)¶ Interpolates to the locations specified by a_pts and returns the values.
Parameters: points (iterable) – The points to interpolate to Returns: The interpolated values
-
set_points
(center_line_points, interpolation_points, pick_closest)¶ Sets points that wil be used for the centerline and interpolation.
Parameters: - center_line_points (iterable) – Points that make the centerline
- interpolation_points (iterable) – Points that will be used to interpolate from
- pick_closest (bool) – If true, only keep one transformed interpolation point (that is closest to the centerline)
-
set_power
(power)¶ Sets the exponent for the interpolation. By default the class does inverse distance squared weighting but the exponent can be changed to any value.
Parameters: power (float) – The exponent used to compute the point weights
-
set_x_scale
(scale)¶ Set the X Scale.
Parameters: scale (float) – X scale
-