starhorse

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package starhorse is the adapter for StarHorse's APOGEE DR17 and Gaia EDR3 results (Queiroz et al. 2023), from AIP in Potsdam: for each star it fit, percentiles of its mass, distance, extinction and, where it gives one, its age, with flags on each.

StarHorse gives ages only near the main-sequence turn-off and on the subgiant branch: its age flag is NOAGE for a star elsewhere, a red giant among them, read 2026-11-06 from its data page (sources.yaml).

The archive is the one file, its rows its own, keyed by APOGEE_ID and Gaia's source, not allStar's order. The file writes no units: each unit here is its data page's.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (*celestialdata.Fixed, error)

New is the archive of StarHorse's APOGEE DR17 results, asked by name only. It holds the one file, whatever the circle.

Types

type Catalogue

type Catalogue struct {
	// contains filtered or unexported fields
}

Catalogue is the StarHorse file, read as its rows are asked for.

func OpenCatalogue

func OpenCatalogue(file io.ReaderAt) (*Catalogue, error)

OpenCatalogue is the catalogue in a StarHorse 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

func (catalogue *Catalogue) Find(sources ...int64) ([]*Star, error)

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.

func (*Catalogue) Rows

func (catalogue *Catalogue) Rows() int64

Rows is how many rows the file holds, a row a star StarHorse fit: its own rows, not allStar's.

func (*Catalogue) Star

func (catalogue *Catalogue) Star(index int64) (*Star, error)

Star is the star in a row, counted from none. It refuses a row the file does not have or cannot give, by its number. A number StarHorse left empty is not a number, an age among them for a NOAGE star.

type Spread

type Spread struct {
	// contains filtered or unexported fields
}

Spread is a value's 16th, 50th and 84th percentiles.

func (Spread) High

func (spread Spread) High() float64

High is the 84th percentile.

func (Spread) Low

func (spread Spread) Low() float64

Low is the 16th percentile.

func (Spread) Median

func (spread Spread) Median() float64

Median is the 50th percentile.

type Star

type Star struct {
	// contains filtered or unexported fields
}

Star is one row of the StarHorse file: the posterior StarHorse found for one star, from its APOGEE spectrum, its photometry and Gaia's parallax. Units are the data page's.

func (Star) Age

func (star Star) Age() Spread

Age is the star's age in Gyr, age16, age50 and age84: not a number where AgeFlag is NOAGE.

func (Star) AgeFlag

func (star Star) AgeFlag() string

AgeFlag is the evolutionary stage the age was fit for, MSTO or SGB, or NOAGE where none was, StarHorse_AGEFLAG.

func (Star) AgeWarning

func (star Star) AgeWarning() string

AgeWarning is StarHorse's warning on the age, StarHorse_AGE_INOUT.

func (Star) AgeWide

func (star Star) AgeWide() (float64, float64)

AgeWide is the age's 5th and 95th percentiles in Gyr, age05 and age95.

func (Star) Distance

func (star Star) Distance() Spread

Distance is the star's distance in kpc, dist16, dist50 and dist84.

func (Star) Extinction

func (star Star) Extinction() Spread

Extinction is the star's extinction in magnitudes at 542 nm, AV16, AV50 and AV84.

func (Star) GaiaID

func (star Star) GaiaID() (int64, bool)

GaiaID is the star's Gaia DR3 source, DR3_source_id, and whether it has one.

func (Star) Gravity

func (star Star) Gravity() float64

Gravity is the star's log g in dex, logg50.

func (Star) ID

func (star Star) ID() string

ID is the star's id in APOGEE, its APOGEE_ID.

func (Star) Mass

func (star Star) Mass() Spread

Mass is the star's mass in suns, mass16, mass50 and mass84.

func (Star) Metals

func (star Star) Metals() float64

Metals is the star's metallicity in dex, met50.

func (Star) OutputFlags

func (star Star) OutputFlags() string

OutputFlags is StarHorse's flags on the quality of its results, StarHorse_OUTPUTFLAGS, as the file writes them.

func (Star) Temperature

func (star Star) Temperature() float64

Temperature is the star's effective temperature in kelvin, teff50.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL