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. |
|
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 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. |