pixel_spectrum#
- scarlet2.init.pixel_spectrum(obs, pos, correct_psf=False)[source]#
Get the spectrum at a given position in the observation(s).
Yields the spectrum of a single-pixel source with flux 1 in every channel, concatenated for all observations.
- Parameters:
obs (:py:class:`~scarlet2.Observation or
list) – Observation(s) to extract pixel SED frompos (
tuple) – Position in the observation. Needs to be in sky coordinates if multiple observations have different locations or pixel scales.correct_psf (
bool, optional) – Whether PSF shape variations in the observations should be corrected. If True, this method homogenizes the PSFs of the observations, which yields the correct spectrum for a flux=1 point source.
- Returns:
If obs is a list, the method returns the associate list of spectra.
- Return type:
arrayorlist