Point Spread Function (photometry.psf)

Point Spread Function (PSF).

Code author: Rasmus Handberg <rasmush@phys.au.dk>

class photometry.psf.PSF(sector, camera, ccd, stamp)[source]

Bases: object

Point Spread Function (PSF).

camera

TESS camera (1-4).

Type:integer
ccd

TESS CCD (1-4).

Type:integer
stamp

The pixel sub-stamp used to generate PSF.

Type:tuple
shape

Shape of pixel sub-stamp.

Type:tuple
PSFfile

Path to PSF file that was interpolated in.

Type:string
ref_column

Reference CCD column that PSF is calculated for.

Type:float
ref_row

Reference CCD row that PSF is calculated for.

Type:float
splineInterpolation

Interpolation to evaluate PSF on arbitrery position relative to center of PSF.

Type:scipy.interpolate.RectBivariateSpline object

Code author: Rasmus Handberg <rasmush@phys.au.dk>

__init__(sector, camera, ccd, stamp)[source]

Point Spread Function (PSF).

Parameters:
  • sector (integer) – TESS Observation sector.
  • camera (integer) – TESS camera number (1-4).
  • ccd (integer) – TESS CCD number (1-4).
  • stamp (4-tuple) – Sub-stamp on CCD to load PSF for.

Code author: Rasmus Handberg <rasmush@phys.au.dk>

integrate_to_image(params, cutoff_radius=5)[source]

Integrate the underlying high-res PSF onto pixels.

Parameters:
  • params (iterator, numpy.array) – List of stars to add to image. Should be an iterator where each element is an numpy array with three elements: row, column and flux.
  • cutoff_radius (float, optional) – Maximal radius away from center of star in pixels to integrate PSF model.
Returns:

Image

Return type:

numpy.array

plot()[source]

Create a plot of the shape of the PSF.

splineInterpolation = None

2D-interpolation of PSF (RectBivariateSpline).