Documentation
¶
Overview ¶
Package astronn is the adapter for astroNN's catalogue of APOGEE DR17, from the Sloan Digital Sky Survey: a row for each of allStar's rows, in allStar's order, with what Leung and Bovy's networks read from each spectrum, among them an age, a distance, and an orbit about the Galaxy.
The archive is the one file. A Catalogue reads it, on disk or any io.ReaderAt, and a Star is one of its rows. The file writes no units: each unit here is the one SDSS's data model gives, read 2026-11-06.
The file names some columns as the data model does not: age, dist and the orbit's are lower-cased in it (AGE in the model, age in the file). The reader asks for each as the file names it (sources.yaml).
Index ¶
- func New() (*celestialdata.Fixed, error)
- type Catalogue
- type Star
- func (star Star) Age() float64
- func (star Star) AgeError() float64
- func (star Star) AgeLinear() float64
- func (star Star) AgeModelError() float64
- func (star Star) AgeUncorrected() float64
- func (star Star) AngularMomentum() float64
- func (star Star) Apocentre() float64
- func (star Star) Distance() (float64, float64)
- func (star Star) Eccentricity() float64
- func (star Star) Energy() float64
- func (star Star) GaiaID() (int64, bool)
- func (star Star) HighestAbovePlane() float64
- func (star Star) ID() string
- func (star Star) Pericentre() float64
- func (star Star) Telescope() string
- func (star Star) WeightedDistance() (float64, float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Catalogue ¶
type Catalogue struct {
// contains filtered or unexported fields
}
Catalogue is the astroNN file, read as its rows are asked for.
func OpenCatalogue ¶
OpenCatalogue is the catalogue in an astroNN 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. It reads every row, a pass over the whole file; a row with no source is never one asked. A caller who knows a star's row in allStar asks Star for that row instead.
type Star ¶
type Star struct {
// contains filtered or unexported fields
}
Star is one row of the astroNN file: what the networks read from one of allStar's spectra. Units are the data model's.
func (Star) Age ¶
Age is the star's age in Gyr as the catalogue recommends it, age_lowess_correct: the networks' age with their bias taken out by a LOWESS fit (Mackereth et al. 2019).
func (Star) AgeLinear ¶
AgeLinear is the age in Gyr with a linear correction of its bias, age_linear_correct.
func (Star) AgeModelError ¶
AgeModelError is the part of the age's uncertainty in Gyr that is the networks' own, age_model_error.
func (Star) AgeUncorrected ¶
AgeUncorrected is the networks' age in Gyr before any correction, age.
func (Star) AngularMomentum ¶
AngularMomentum is the orbit's angular momentum about the Galaxy's axis in kpc km/s, Lz.
func (Star) Distance ¶
Distance is the star's distance in parsecs from its spectrum alone, dist, and its uncertainty.
func (Star) Eccentricity ¶
Eccentricity is the eccentricity of the star's orbit about the Galaxy, e.
func (Star) HighestAbovePlane ¶
HighestAbovePlane is how far the orbit climbs from the Galaxy's plane in kpc, zmax.
func (Star) Pericentre ¶
Pericentre is the orbit's nearest distance from the Galaxy's centre in kpc, rperi.
func (Star) WeightedDistance ¶
WeightedDistance is the distance in parsecs the catalogue recommends, weighted_dist: the spectrum's distance weighed with Gaia's parallax, and its uncertainty.