observation#
- scarlet2.plot.observation(observation, norm=None, channel_map=None, sky_coords=None, show_psf=False, add_labels=True, split_channels=False, fig_kwargs=None, title_kwargs=None, label_kwargs=None)[source]#
Plot observation
Show entire content of observation, optionally with list of sources given by sky_coords or a PSF image.
- Parameters:
observation (
Observation) – The observation object to plotnorm (
Norm, optional) – Norm to scale the intensity of observation into RGB 0..256channel_map (
array, optional) – Linear mapping from channels to RGB, dimensions (3, channels)sky_coords (
list, optional) – 2D coordinates (in pixel coordinates or sky coordinates). If in sky coordinates, the Frame of observation needs to have a valid WCS.show_psf (
bool, optional) – Whether to plot a panel with the PSF model of observation centered in the middleadd_labels (
bool, optional) – Whether to plot a text label with the running number for each of the sources in sky_coordssplit_channels (
bool, optional) – Whether to split the observation into separate channelsfig_kwargs (
dict, optional) – Additional arguments for mpl.subplotstitle_kwargs (
dict, optional) – Additional arguments for mpl.set_titlelabel_kwargs (
dict, optional) – Additional arguments for mpl.text. Default is None and will be set to {“color”: “w”, “ha”: “center”, “va”: “center”}
- Return type:
mpl.Figure