Documentation
¶
Overview ¶
Package constellation identifies which of the 88 IAU constellations contains a given sky position.
The lookup uses a pre-computed grid from the IAU constellation boundary data (Roman 1987, CDS catalog VI/42). Binary search on RA and declination gives O(log n) lookup time with no linear scanning.
Positions should be given in epoch B1875 equatorial coordinates, which is the standard epoch for constellation boundaries. For most practical purposes, J2000 coordinates work fine — the precession difference is ~1.4° over 125 years, which only matters for positions very close to a constellation boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Abbreviation ¶
Abbreviation returns the 3-letter IAU abbreviation for a constellation name. Returns empty string if the name is not recognized.
func At ¶
At returns the IAU 3-letter abbreviation of the constellation containing the given position. raHours is right ascension in hours [0, 24) and decDeg is declination in degrees [-90, 90].
The boundaries use epoch B1875 coordinates (the standard for IAU constellation boundaries). J2000 coordinates are acceptable for most purposes.
Types ¶
This section is empty.