get_psf
- sherpa.astro.ui.get_psf(id: IdType | None = None)
Return the PSF model defined for a data set.
Return the parameter settings for the PSF model assigned to the data set.
- Parameters:
- id
int,str,orNone,optional The data set. If not given then the default identifier is used, as returned by
get_default_id.
- id
- Returns:
- psf
asherpa.instrument.PSFModelinstance
- psf
- Raises:
sherpa.utils.err.IdentifierErrIf no PSF model has been set for the data set.
See also
delete_psfDelete the PSF model for a data set.
image_psfDisplay the 2D PSF model for a data set in the image viewer.
list_psf_idsList of all the data sets with a PSF.
load_psfCreate a PSF model.
plot_psfPlot the 1D PSF model applied to a data set.
set_psfAdd a PSF model to a data set.
Examples
Change the size and center of the PSF for the default data set:
>>> psf = get_psf() >>> psf.size = (21, 21) >>> psf.center = (10, 10)