galactocentric

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 2 modules, 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 galactocentric places a star as Gaia sees it in the galaxy: from where it is on the sky, how far it is by its parallax and how it moves across the sky and along the line of sight, to its place and motion about the galactic centre, where orbit's solver runs it back.

Seen turns that round: from a star's place and motion about the centre to where the Sun sees it and how, so that a star made in the frame can be observed as Gaia would observe it.

The frame is the one astropy's Galactocentric frame describes: the centre at Sgr A*, the z axis toward the north galactic pole tilted so that the Sun sits at its measured height above the mid-plane.

The x axis runs from the Sun's side toward the centre, and the y axis along the galaxy's rotation at the Sun.

The seam with orbit's Milky Way is open: the published frame's Sun goes 251.5 km/s along the rotation, Sgr A*'s apparent motion reflected, while MWPotential2014 at the Sun's measured distance gives it about 231, its circular speed there plus the Sun's own motion.

Every star this frame places carries the frame's Sun; run back in the model as it stands, it carries 20 km/s along the rotation the model did not give the Sun. Placing the model at the frame's Sun, or the frame's Sun at the model's speed, is a choice not made here.

Lengths are kiloparsecs and speeds kilometres per second inside; the surface is measure's types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

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

Frame is the galactocentric frame: its axes on the equatorial frame, and the Sun's place and motion in it.

func NewFrame

func NewFrame(ascension, declination measure.Angle, distance,
	height measure.Length, toCentre, alongRotation, toPole float64) (*Frame,
	error)

NewFrame is the frame about a centre on the sky so far from the Sun, with the Sun so high above the mid-plane and moving so, in kilometres per second: toward the centre, along the rotation and toward the pole.

The z axis is the north galactic pole's, tilted about the Sun's line of sight to the centre by what puts the Sun at its height.

It refuses a centre not on the sky, a height that reaches the distance, which no positive distance under it allows, and a motion past light.

func Published

func Published() (*Frame, error)

Published is the frame from the research ledger: Sgr A* where Reid and Brunthaler place it on the sky, as far as the GRAVITY collaboration measured it; the Sun as high above the mid-plane as Bennett and Bovy found it.

The Sun moves toward the centre as Schönrich, Binney and Dehnen measured against the local standard of rest, and along the rotation and toward the pole as Sgr A*'s apparent motion has it, which is the Sun's own motion reflected.

func (Frame) MovingSun

func (frame Frame) MovingSun(toCentre, alongRotation,
	toPole float64) (*Frame, error)

MovingSun is the frame with the Sun moving otherwise, in kilometres per second toward the centre, along the rotation and toward the pole, its axes and the Sun's place kept. It refuses a motion past light.

func (Frame) Of

func (frame Frame) Of(seen sky.Equatorial, parallax measure.Angle,
	motion ProperMotion, radial float64) (*measure.Coord, *measure.Velocity,
	error)

Of is a star's place and motion in the frame, from where it is on the sky, its parallax, its proper motion and its radial velocity in kilometres per second, away from the Sun.

It refuses a parallax that is not positive, which gives no distance, and a star it would have outrun light, with nil beside the error.

func (Frame) Seen

func (frame Frame) Seen(at measure.Coord,
	moving measure.Velocity) (*Sighting, error)

Seen is a star at a place in the frame, moving so, as the Sun sees it: Of turned round, so that a star made in the frame can be observed as Gaia would observe it.

It refuses a star at the Sun's own place, with nil beside the error. Such a star has no direction: its direction is not a number, and the sky refuses that, which is the one check. A place nearer the Sun than a coordinate resolves, tens of kilometres there, is the Sun's place.

func (Frame) Sun

func (frame Frame) Sun() (measure.Coord, measure.Velocity)

Sun is the Sun's place in the frame and its motion.

type ProperMotion

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

ProperMotion is a star's motion across the sky in milliarcseconds a year: along increasing right ascension, times the cosine of the declination as Gaia gives it, and along increasing declination.

func NewProperMotion

func NewProperMotion(ascension, declination float64) ProperMotion

NewProperMotion is a proper motion of so many milliarcseconds a year along ascension, times the cosine of the declination, and so many along declination.

func (ProperMotion) Ascension

func (motion ProperMotion) Ascension() float64

Ascension is the motion along increasing right ascension, times the cosine of the declination, in milliarcseconds a year.

func (ProperMotion) Declination

func (motion ProperMotion) Declination() float64

Declination is the motion along increasing declination, in milliarcseconds a year.

type Sighting

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

Sighting is a star as the Sun sees it: where it is on the sky, its parallax, its proper motion, and its radial velocity in kilometres per second, away from the Sun.

func (Sighting) Motion

func (sighting Sighting) Motion() ProperMotion

Motion is the star's proper motion.

func (Sighting) Parallax

func (sighting Sighting) Parallax() measure.Angle

Parallax is the star's parallax.

func (Sighting) Place

func (sighting Sighting) Place() sky.Equatorial

Place is where the star is on the sky.

func (Sighting) Radial

func (sighting Sighting) Radial() float64

Radial is the star's radial velocity in kilometres per second, away from the Sun.

Jump to

Keyboard shortcuts

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