Skip to content

Commit

Permalink
Update Earth Orientation Data Handling
Browse files Browse the repository at this point in the history
Update how Earth Orientation data is handled in the package. This fixes
a number of outstanding issues. In particular:
- Migrates to use C04 20 data files
- Fixes incorrect usage of dX and dY offsets in ECI <-> ECEF conversion
- Provides a more helpful error message on out-of-bounds access
- Moves tests to use a static/fixed EOP file for test robustness
- Fixes downloading / updating of EOP data
  • Loading branch information
duncaneddy committed May 28, 2024
1 parent ed5c792 commit 5c3382e
Show file tree
Hide file tree
Showing 8 changed files with 66,636 additions and 132 deletions.
10 changes: 3 additions & 7 deletions src/reference_systems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,13 @@ Returns:
- `rc2i::Matrix{<:Real}`: 3x3 Rotation matrix transforming GCRS -> CIRS
"""
function bias_precession_nutation(epc::Epoch)
# Constants of IAU 2006A transofrmation
DMAS2R = 4.848136811095359935899141e-6 / 1.0e3
dx06 = 0.0001750*DMAS2R
dy06 = -0.0002259*DMAS2R

# Compute X, Y, s terms using low-precision series terms
x, y, s = iauXys00b(MJD_ZERO, mjd(epc, tsys="TT"))

# Apply IAU2006 Offsets
x += dx06
y += dy06
mjd_utc = mjd(epc, tsys="UT1")
x += DX(mjd_utc)
y += DY(mjd_utc)

# Compute transformation and return
rc2i = iauC2ixys(x, y, s)
Expand Down
Loading

0 comments on commit 5c3382e

Please sign in to comment.