Documentation
¶
Overview ¶
Package apogee is the adapter for APOGEE DR17's allStar, from the Sloan Digital Sky Survey: one row a star its spectrographs observed in the near infrared, with the parameters and abundances its pipeline, ASPCAP, fit to the star's combined spectrum.
The archive is the one file. A Catalogue reads it on disk, and a Star is one of its rows. The file writes no units: each value's unit here is the one SDSS's data model gives, and the bits of each flag are the survey's bitmask page's, both read 2026-11-06 (sources.yaml).
Index ¶
- Constants
- func Elements() []string
- func New() (*celestialdata.Fixed, error)
- type Abundance
- type Catalogue
- type Flags
- type Star
- func (star Star) ASPCAP() Flags
- func (star Star) Abundance(symbol string) (*Abundance, error)
- func (star Star) Alpha() (value, uncertainty float64)
- func (star Star) Conditions() Flags
- func (star Star) Field() string
- func (star Star) GaiaID() int64
- func (star Star) Gravity() (value, uncertainty float64)
- func (star Star) ID() string
- func (star Star) Iron() Abundance
- func (star Star) Metals() (value, uncertainty float64)
- func (star Star) Place() *sky.Equatorial
- func (star Star) RadialError() float64
- func (star Star) RadialScatter() float64
- func (star Star) RadialVelocity() float64
- func (star Star) SNR() float64
- func (star Star) Targeting() Flags
- func (star Star) Telescope() string
- func (star Star) Temperature() (value, uncertainty float64)
Constants ¶
const ( MetalsWarn = 3 // defined: M_H_WARN StarWarn = 7 // defined: STAR_WARN, set with any warning MetalsBad = 19 // defined: M_H_BAD StarBad = 23 // defined: STAR_BAD, set with any bad, a grid edge // among them. // MultipleSuspect is defined: MULTIPLE_SUSPECT, likely a composite // spectrum. MultipleSuspect = 41 )
The bits of ASPCAPFLAG a star's fit is judged by.
const ( // GridEdgeBad is defined: GRIDEDGE_BAD, within an eighth of a grid // step of its edge. GridEdgeBad = 0 // CalibrationBad is defined: CALRANGE_BAD, outside the calibrated // range. CalibrationBad = 1 // GridEdgeWarn is defined: GRIDEDGE_WARN, within a grid step of // its edge. GridEdgeWarn = 8 CalibrationWarn = 9 // defined: CALRANGE_WARN, where the calibration )
The bits of an element's flag, ELEMFLAG's.
const Duplicate = 4
Duplicate is the bit of EXTRATARG set on a row that is not its star's best: another row has a higher signal to noise. It's defined.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Abundance ¶
type Abundance struct {
// contains filtered or unexported fields
}
Abundance is an abundance as ASPCAP fit it, in dex, with its uncertainty and its flag.
func (Abundance) Uncertainty ¶
Uncertainty is the abundance's uncertainty in dex.
type Catalogue ¶
type Catalogue struct {
// contains filtered or unexported fields
}
Catalogue is the allStar file on disk, read as its rows are asked for.
func OpenCatalogue ¶
OpenCatalogue is the catalogue in an allStar file. It refuses a file with no binary table, one that lacks a column read, and a column of another kind, of many values a row, or with a unit.
func (*Catalogue) Find ¶
Find is every row whose star is one of the Gaia DR3 sources given, in the file's order, a star's duplicates among them. It reads every row's source, a pass over the whole file.
func (*Catalogue) Rows ¶
Rows is how many rows the file holds: a row a star, but for the stars observed from both of the survey's telescopes, or in more than one field, which have a row each.
type Star ¶
type Star struct {
// contains filtered or unexported fields
}
Star is one row of the allStar file: a star as APOGEE observed it, with what ASPCAP fit to its combined spectrum.
func (Star) Abundance ¶
Abundance is an element's abundance against iron, X/Fe, by its symbol as Elements gives it. It refuses an element the file holds none of.
func (Star) Alpha ¶
Alpha is the star's alpha elements against its metals, alpha/M in dex, and its uncertainty.
func (Star) Conditions ¶
Conditions is the star's STARFLAG: the bits its visits set on their spectra.
func (Star) GaiaID ¶
GaiaID is the star's source in Gaia, its GAIAEDR3_SOURCE_ID: EDR3's source ids are DR3's.
func (Star) Gravity ¶
Gravity is the star's surface gravity as log g in cgs units, and its uncertainty.
func (Star) Place ¶
func (star Star) Place() *sky.Equatorial
Place is where the star is on the sky, or nil for a row the survey gave no place, as its first row, VESTA.
func (Star) RadialError ¶
RadialError is the average radial velocity's uncertainty in km/s, VERR.
func (Star) RadialScatter ¶
RadialScatter is the scatter of the visits' radial velocities about their average in km/s, VSCATTER: a binary's orbit shows here.
func (Star) RadialVelocity ¶
RadialVelocity is the star's barycentric radial velocity in km/s, its VHELIO_AVG: the visits' average, weighted by their signal to noise.
func (Star) Targeting ¶
Targeting is the star's EXTRATARG: why it was observed, and whether the row is a duplicate.
func (Star) Temperature ¶
Temperature is the star's effective temperature in kelvin, and its uncertainty.