Documentation
¶
Overview ¶
Package spectrum measures a star's light in the SPHEREx cutouts the spherex archive fetched, one wavelength an image: together they are the star's spectrum from 0.75 to 5 microns.
Each cutout is measured by forced photometry at the star's Gaia place, moved by its proper motion to the image's time, with the cutout's own effective point-spread function nearest the star.
The background and the cutout's other peaks are fitted beside the star; a neighbour left out lends its light to it.
It reads files and asks no one. A QR2 cutout carries the older PSF cube and no ePSF, and its fluxes are on QR2's gain, so it is refused, saying so, until SPHEREx's calibration files are fetched.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Measure ¶
type Measure struct {
// contains filtered or unexported fields
}
Measure is the measure of a star in SPHEREx cutouts, by the numbers in numbers.yaml.
func New ¶
New is the measure, its numbers read from numbers.yaml. It refuses a numbers file that does not read or lacks a number.
type Point ¶
type Point struct {
Wavelength, Bandwidth float64
Flux, Error, Statistical float64
Background float64
ChiSquared float64
Used int
Quality float64
Flags int64
Neighbours int
MJD float64
Detector int
X, Y float64
SolidAngle float64
File string
}
Point is a star's light in one cutout: the wavelength and bandwidth in microns where the cutout saw it, and its flux in micro-Jy with the systematic share added to its error, and without it.
The rest say how the fit went: the background a pixel, in MJy/sr; the chi-squared a degree of freedom over the pixels used; the quality over the star's circle; the flags of the pixels in that circle; the neighbours fitted beside it.
And where: the image's time, its detector, the star's place in the cutout counted from the first pixel's centre, a pixel's solid angle there in square arcseconds, and the file.