astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v0.3 »
- Convolution and filtering (`astropy.convolution`) »
- Kernel2D

# Kernel2D

class `astropy.convolution.core.``Kernel2D`(model=None, x_size=None, y_size=None, array=None, **kwargs)

  Bases: `astropy.convolution.core.Kernel`

  Base class for 2D filter kernels.

  Parameters:

  width : number

  > Width of the filter kernel.

  x_size : odd int, optional

  > Size in x direction of the kernel array. Default = 8 * width.

  y_size : odd int, optional

  > Size in y direction of the kernel array. Default = 8 * width.

  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.

  factor : number, optional

  > Factor of oversampling. Default factor = 10.