PSF Photometry (photutils.psf)#

This subpackage contains tools to perform point-spread-function (PSF) photometry.

Functions#

extract_stars(data, catalogs, *[, size])

Extract cutout images centered on stars defined in the input catalog(s).

fit_2dgaussian(data, *[, xypos, fwhm, ...])

Fit a 2D Gaussian model to one or more sources in an image.

fit_fwhm(data, *[, xypos, fwhm, fit_shape, ...])

Fit the FWHM of one or more sources in an image.

grid_from_epsfs(epsfs[, grid_xypos, meta])

Create a GriddedPSFModel from a list of ImagePSF models.

make_psf_model(model, *[, x_name, y_name, ...])

Make a PSF model that can be used with the PSF photometry classes (PSFPhotometry or IterativePSFPhotometry) from an Astropy fittable 2D model.

make_psf_model_image(shape, psf_model, ...)

Make an example image containing PSF model images.

stdpsf_reader(filename[, detector_id])

Generate a GriddedPSFModel from a STScI standard- format ePSF (STDPSF) FITS file.

webbpsf_reader(filename)

Generate a GriddedPSFModel from a WebbPSF FITS file containing a PSF grid.

Classes#

AiryDiskPSF(*[, flux, x_0, y_0, radius, ...])

A 2D Airy disk PSF model.

CircularGaussianPRF(*[, flux, x_0, y_0, ...])

A circular 2D Gaussian PSF model integrated over pixels.

CircularGaussianPSF(*[, flux, x_0, y_0, ...])

A circular 2D Gaussian PSF model.

CircularGaussianSigmaPRF(*[, flux, x_0, ...])

A circular 2D Gaussian PSF model integrated over pixels.

EPSFBuilder(*[, oversampling, shape, ...])

Class to build an effective PSF (ePSF).

EPSFFitter(*[, fitter, fit_boxsize])

Class to fit an ePSF model to one or more stars.

EPSFModel(data, *[, flux, x_0, y_0, ...])

EPSFStar(data, *[, weights, cutout_center, ...])

A class to hold a 2D cutout image and associated metadata of a star used to build an ePSF.

EPSFStars(stars_list)

Class to hold a list of EPSFStar and/or LinkedEPSFStar objects.

FittableImageModel(data, *[, flux, x_0, ...])

GaussianPRF(*[, flux, x_0, y_0, x_fwhm, ...])

A 2D Gaussian PSF model integrated over pixels.

GaussianPSF(*[, flux, x_0, y_0, x_fwhm, ...])

A 2D Gaussian PSF model.

GriddedPSFModel(nddata, *[, flux, x_0, y_0, ...])

A model for a grid of 2D ePSF models.

GriddedPSFModelRead(instance, cls)

Read and parse a FITS file into a GriddedPSFModel instance.

ImagePSF(data, *[, flux, x_0, y_0, origin, ...])

A model for a 2D image PSF.

IntegratedGaussianPRF(*[, flux, x_0, y_0, ...])

IterativePSFPhotometry(psf_model, fit_shape, ...)

Class to iteratively perform PSF photometry.

LinkedEPSFStar(stars_list)

A class to hold a list of EPSFStar objects for linked stars.

ModelGridPlotMixin()

Mixin class to plot a grid of ePSF models.

ModelImageMixin()

Mixin class to provide methods to calculate model images and residuals.

MoffatPSF(*[, flux, x_0, y_0, alpha, beta, ...])

A 2D Moffat PSF model.

PRFAdapter(psfmodel, *[, renormalize_psf, ...])

PSFPhotometry(psf_model, fit_shape, *[, ...])

Class to perform PSF photometry.

STDPSFGrid(filename)

Class to read and plot "STDPSF" format ePSF model grids.

SourceGrouper(min_separation)

Class to group sources into clusters based on a minimum separation distance.

Class Inheritance Diagram#

Inheritance diagram of photutils.psf.functional_models.AiryDiskPSF, photutils.psf.functional_models.CircularGaussianPRF, photutils.psf.functional_models.CircularGaussianPSF, photutils.psf.functional_models.CircularGaussianSigmaPRF, photutils.psf.epsf.EPSFBuilder, photutils.psf.epsf.EPSFFitter, photutils.psf.image_models.EPSFModel, photutils.psf.epsf_stars.EPSFStar, photutils.psf.epsf_stars.EPSFStars, photutils.psf.image_models.FittableImageModel, photutils.psf.functional_models.GaussianPRF, photutils.psf.functional_models.GaussianPSF, photutils.psf.gridded_models.GriddedPSFModel, photutils.psf.model_io.GriddedPSFModelRead, photutils.psf.image_models.ImagePSF, photutils.psf.functional_models.IntegratedGaussianPRF, photutils.psf.photometry.IterativePSFPhotometry, photutils.psf.epsf_stars.LinkedEPSFStar, photutils.psf.model_plotting.ModelGridPlotMixin, photutils.psf.photometry.ModelImageMixin, photutils.psf.functional_models.MoffatPSF, photutils.psf.model_helpers.PRFAdapter, photutils.psf.photometry.PSFPhotometry, photutils.psf.gridded_models.STDPSFGrid, photutils.psf.groupers.SourceGrouper