get_source_contour¶
-
sherpa.astro.ui.
get_source_contour
(id=None)¶ Return the data used by contour_source.
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: resid_data – The
y
attribute contains the model values and thex0
andx1
arrays the corresponsing coordinate values, as one-dimensional arrays.Return type: a sherpa.plot.SourceContour instance
Raises: sherpa.utils.err.DataErr
– If the data set is not 2D.sherpa.utils.err.IdentifierErr
– If the data set does not exist or a source expression has not been set.
See also
get_source_image()
- Return the data used by image_source.
contour_source()
- Contour the values of the model, without any PSF.
image_source()
- Display the source expression for a data set in the image viewer.
Examples
Return the source model pixel values for the default data set:
>>> sinfo = get_source_contour()