celestial

package module
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 0 Imported by: 0 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.

README

celestial

physics and maths for stuff bigger than you, in golang.

celestial is what a virtual observatory is built on. nilgai is the first i built on this package. it reads chandra, allwise and fermi into one record and composites them into one image so that i can search for AGN on the other side of the avoidance zone. slayer is another project of mine. builds the observatories that don't exist: any telescope you can imagine, pointed where you like, anywhere you'd like it to be with the physics exact enough that what it renders is what that instrument would see. i'm real curious about a photon ring observatory. or how you'd build a graviton detector. stuff like that.

briefly, celestial provides:

  • units and constants, cited, in SI, with conversions to and from the natural units some of the physics prefers
  • time scales, the calendar, sidereal time, frames and places
  • spectra, magnitudes and the atmosphere
  • stars, gravitation, and the kerr hole from libholemath
  • LIGO and Virgo's events and estimates, and the HDF5 their strain is published in, read here through scigolib's hdf5

PACKAGES.md is the map: what lives in each package, and the calls you build with.

Documentation

Overview

Package celestial brings the physics of the sky together for renderers, catalogue readers, and gravitational-wave work. The root package has no runtime API; each subject lives in its own package.

The implemented foundations include units and constants, time and sky coordinates, spectra and atmospheres, stars, point-mass gravity, orbits through a potential (on the gpu too), Kerr geometry, HDF5 reading, and the open science centre event estimates. Strain analysis remains planned.

Most public quantities use SI. Packages using natural units convert at the boundary. The documented exceptions are hole, which uses geometric units set by its mass, and radiation and bands, which retain nanometres and electronvolts where inherited from the spectral APIs.

Directories

Path Synopsis
Package atmosphere models Earth’s air from its physical state: temperature, pressure, and density with height, and the scattering of light along a path.
Package atmosphere models Earth’s air from its physical state: temperature, pressure, and density with height, and the scattering of light along a path.
Package bands carries light as amounts in logarithmic wavelength bins.
Package bands carries light as amounts in logarithmic wavelength bins.
Package elements is each element's mean atomic mass in solar-system matter: its stable isotopes' masses, as AME 2020 measures them, weighted by their shares of the element's atoms, as Lodders, Palme and Gail (2009) give them for the solar system 4.56 Ga ago.
Package elements is each element's mean atomic mass in solar-system matter: its stable isotopes' masses, as AME 2020 measures them, weighted by their shares of the element's atoms, as Lodders, Palme and Gail (2009) give them for the solar system 4.56 Ga ago.
Package fits reads the images and binary tables in FITS files as the FITS Standard 4.0 describes them, and refuses the rest.
Package fits reads the images and binary tables in FITS files as the FITS Standard 4.0 describes them, and refuses the rest.
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.
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.
gpu
Package gpu runs compute kernels on the system's graphics processor through Apple's Metal, for the work celestial does many million times over: an orbit for every star, a pixel for every direction.
Package gpu runs compute kernels on the system's graphics processor through Apple's Metal, for the work celestial does many million times over: an orbit for every star, a pixel for every direction.
orbit
Package orbit is celestial/orbit's stepping as a kernel on the gpu: every star at once, each on its own thread, in 32-bit floats, by the same kick, drift, kick.
Package orbit is celestial/orbit's stepping as a kernel on the gpu: every star at once, each on its own thread, in 32-bit floats, by the same kick, drift, kick.
Package grav describes bodies through their gravitational mass.
Package grav describes bodies through their gravitational mass.
grissom
composite
Package composite shows layers together, as the Sgr A* page did.
Package composite shows layers together, as the Sgr A* page did.
internal/picture
Package picture builds small FITS files for grissom's tests: one image of 64-bit floats, laid on the sky by the cards given.
Package picture builds small FITS files for grissom's tests: one image of 64-bit floats, laid on the sky by the cards given.
layer
Package layer lays an image onto the sky's triangles.
Package layer lays an image onto the sky's triangles.
mesh
Package mesh lays a sphere out in triangles.
Package mesh lays a sphere out in triangles.
Package gw reads LIGO, Virgo, and Kagra catalogue events from the Gravitational Wave Open Science Center, called the centre here.
Package gw reads LIGO, Virgo, and Kagra catalogue events from the Gravitational Wave Open Science Center, called the centre here.
Package hdf5 reads the open science centre's strain files.
Package hdf5 reads the open science centre's strain files.
Package hole supplies black-hole maths for a renderer: Kerr geometry in Kerr–Schild form, null and timelike geodesics from Hamilton’s equations, conserved quantities, redshift, and the frame of a falling camera.
Package hole supplies black-hole maths for a renderer: Kerr geometry in Kerr–Schild form, null and timelike geodesics from Hamilton’s equations, conserved quantities, redshift, and the frame of a falling camera.
Package length names astronomical and physical length units in metres.
Package length names astronomical and physical length units in metres.
Package measure represents physical quantities in natural units with c, reduced Planck’s constant, and Boltzmann’s constant equal to one.
Package measure represents physical quantities in natural units with c, reduced Planck’s constant, and Boltzmann’s constant equal to one.
Package mocks holds generated test doubles for Celestial interfaces.
Package mocks holds generated test doubles for Celestial interfaces.
Package orbit steps stars through a potential and reports their nearest pass to the galactic centre.
Package orbit steps stars through a potential and reports their nearest pass to the galactic centre.
orbittest
Package orbittest is what orbit's tests and gpu/orbit's share: a centre to orbit, the closed forms of a point mass's orbits, and how well a run of steps resolves one.
Package orbittest is what orbit's tests and gpu/orbit's share: a centre to orbit, the closed forms of a point mass's orbits, and how well a run of steps resolves one.
Package photometry converts magnitudes to spectral flux densities using Pogson’s scale and each survey’s published zero points.
Package photometry converts magnitudes to spectral flux densities using Pogson’s scale and each survey’s published zero points.
Package psf is forced photometry: the light of stars at places already known, fitted in small tiles of an image together with the background.
Package psf is forced photometry: the light of stars at places already known, fitted in small tiles of an image together with the background.
Package radiation describes light by wavelength, from gamma rays to radio, and converts between nanometres, metres, frequency, and photon energy.
Package radiation describes light by wavelength, from gamma rays to radio, and converts between nanometres, metres, frequency, and photon energy.
Package research supplies named measured and chosen values from research-derived-data.yml.
Package research supplies named measured and chosen values from research-derived-data.yml.
Package si provides SI defining constants and decimal prefixes.
Package si provides SI defining constants and decimal prefixes.
Package sky provides time scales, calendars, observing sites, and sky coordinates.
Package sky provides time scales, calendars, observing sites, and sky coordinates.
Package stars derives a simple stellar state from birth mass and age: life stage, surface temperature, luminosity, and radius.
Package stars derives a simple stellar state from birth mass and age: life stage, surface temperature, luminosity, and radius.

Jump to

Keyboard shortcuts

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