Skip to content

Commit

Permalink
Update src/SkyCoords.jl
Browse files Browse the repository at this point in the history
Co-authored-by: abhro <[email protected]>
  • Loading branch information
LudwigBoess and abhro authored Oct 15, 2024
1 parent c57b23f commit 32b9a11
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/SkyCoords.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,14 @@ const ICRS_TO_GAL = GAL_TO_ICRS'
sgp_l = deg2rad(47.37)
sgp_b = deg2rad(6.32)
# rotation matrix compared to astropy
const GAL_TO_SUPERGAL = RotZYZ(-π / 2, sgp_b - π / 2, -sgp_l)'
const GAL_TO_SUPERGAL = RotZYZ(π/2, π/2 - sgp_b, π - sgp_l)
const SUPERGAL_TO_GAL = GAL_TO_SUPERGAL'
# SuperGal --> ICRS: chain through GAL
const SuperGal_TO_ICRS = GAL_TO_ICRS * SUPERGAL_TO_GAL
const ICRS_TO_SuperGAL = SuperGal_TO_ICRS'
const SUPERGAL_TO_ICRS = GAL_TO_ICRS * SUPERGAL_TO_GAL
const ICRS_TO_SUPERGAL = SUPERGAL_TO_ICRS'
# SuperGal --> FK5J2000: chain through GAL
const SuperGal_TO_FK5J2000 = GAL_TO_FK5J2000 * SUPERGAL_TO_GAL
const FK5J2000_TO_SuperGAL = SuperGal_TO_FK5J2000'


const SUPERGAL_TO_FK5J2000 = GAL_TO_FK5J2000 * SUPERGAL_TO_GAL
const FK5J2000_TO_SUPERGAL = SUPERGAL_TO_FK5J2000'
# FK5J2000 --> FK5{epoch}
# Computes the precession matrix from J2000 to the given Julian equinox.
# Expression from from Capitaine et al. 2003 as expressed in the USNO
Expand Down

0 comments on commit 32b9a11

Please sign in to comment.