Kernel2D¶
- class astropy.convolution.Kernel2D(model=None, x_size=None, y_size=None, array=None, **kwargs)[source]¶
Bases:
KernelBase class for 2D filter kernels.
- Parameters:
- model
FittableModel Model to be evaluated.
- x_size
int, optional Size in x direction of the kernel array. Default = ⌊8*width + 1⌋. Only used if
arrayis None.- y_size
int, optional Size in y direction of the kernel array. Default = ⌊8*width + 1⌋. Only used if
arrayis None,- array
ndarrayorNone, optional Kernel array. Default is None.
- mode
str, optional - One of the following discretization modes:
- ‘center’ (default)
Discretize model by taking the value at the center of the bin.
- ‘linear_interp’
Discretize model by performing a bilinear interpolation between the values at the corners of the bin.
- ‘oversample’
Discretize model by taking the average on an oversampled grid.
- ‘integrate’
Discretize model by integrating the model over the bin.
- widthnumber
Width of the filter kernel.
- factornumber, optional
Factor of oversampling. Default factor = 10.
- model