coordconv
coordconv · Convert between IAU 1958 Galactic coordinates and J2000 FK5 equatorial coordinates
Overview
Usage
Sources:
coordconv converts coordinates between the IAU 1958 Galactic system and the J2000 FK5 equatorial system. All inputs and outputs are decimal degrees; the extension returns each output component through a separate function.
Core Workflow
Pass the same coordinate pair to the two functions for a conversion direction, then combine the two scalar results as the output position.
Object Index
fk52gall(ra, dec)returns Galactic longitude.fk52galb(ra, dec)returns Galactic latitude.gal2fk5ra(l, b)returns J2000 FK5 right ascension.gal2fk5dec(l, b)returns J2000 FK5 declination.
All four signatures use and return double precision; they are IMMUTABLE, STRICT, and PARALLEL SAFE.
Operational Notes
Version 1.0.0 declares no extension dependency or preload requirement. Inputs are angles in degrees, not radians, sexagesimal strings, or PostGIS geometries. Keep the coordinate frame and epoch with stored values: the functions specifically implement IAU 1958 Galactic and J2000 FK5 conversions, not arbitrary reference-system transformations or proper-motion correction.