get_psf¶
-
sherpa.ui.
get_psf
(id=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 or str, optional) – The data set. If not given then the default identifier is used, as returned by get_default_id. Returns: psf Return type: a sherpa.instrument.PSFModel instance Raises: sherpa.utils.err.IdentifierErr
– If no PSF model has been set for the data set.See also
delete_psf()
- Delete the PSF model for a data set.
image_psf()
- Display the 2D PSF model for a data set in the image viewer.
load_psf()
- Create a PSF model.
plot_psf()
- Plot the 1D PSF model applied to a data set.
set_psf()
- Add 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)