BkgIDWInterpolator#
- class photutils.background.BkgIDWInterpolator(*, leafsize=10, n_neighbors=10, power=1.0, reg=0.0)[source]#
Bases:
object
This class generates full-sized background and background RMS images from lower-resolution mesh images using inverse-distance weighting (IDW) interpolation (
ShepardIDWInterpolator
).This class must be used in concert with the
Background2D
class.- Parameters:
- leafsizefloat, optional
The number of points at which the k-d tree algorithm switches over to brute-force.
leafsize
must be positive. Seescipy.spatial.cKDTree
for further information.- n_neighborsint, optional
The maximum number of nearest neighbors to use during the interpolation.
- powerfloat, optional
The power of the inverse distance used for the interpolation weights.
- regfloat, optional
The regularization parameter. It may be used to control the smoothness of the interpolator.
Methods Summary
__call__
(data, **kwargs)Resize the 2D mesh array.
Methods Documentation