Skip to content

Commit fb8efaa

Browse files
committed
Remove nutation from ecliptic transformation
Precision is now better than 1 arcsecond. Fix astropy#6461. This transformation is now equivalent to the one performed by erfa.ecm06.
1 parent c40ec58 commit fb8efaa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎astropy/coordinates/builtin_frames/ecliptic_transforms.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
def _ecliptic_rotation_matrix(equinox):
2525
jd1, jd2 = get_jd12(equinox, 'tt')
26-
rnpb = erfa.pnm06a(jd1, jd2)
26+
rbp = erfa.pmat06(jd1, jd2)
2727
obl = erfa.obl06(jd1, jd2)*u.radian
28-
return matrix_product(rotation_matrix(obl, 'x'), rnpb)
28+
return matrix_product(rotation_matrix(obl, 'x'), rbp)
2929

3030

3131
@frame_transform_graph.transform(FunctionTransformWithFiniteDifference,

‎astropy/coordinates/tests/accuracy/test_ecliptic.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_against_pytpm_doc_example():
2727
astropy_out = fk5_in.transform_to(pytpm_out)
2828

2929
# we check w/i 1 arcmin because there are some subtle differences in pyTPM's ecl definition
30-
assert pytpm_out.separation(astropy_out) < (1*u.arcmin)
30+
assert pytpm_out.separation(astropy_out) < (1*u.arcsec)
3131

3232

3333
def test_ecliptic_heliobary():

0 commit comments

Comments
 (0)