Skip to content

Commit 728dedf

Browse files
astrojuanlueteq
authored andcommitted
Remove nutation from ecliptic transformation
Precision is now better than 1 arcsecond. Fix #6461. This transformation is now equivalent to the one performed by erfa.ecm06.
1 parent 9bfcc92 commit 728dedf

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
@@ -21,9 +21,9 @@
2121

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

2828

2929
@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
@@ -25,7 +25,7 @@ def test_against_pytpm_doc_example():
2525
astropy_out = fk5_in.transform_to(pytpm_out)
2626

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

3030

3131
def test_ecliptic_heliobary():

0 commit comments

Comments
 (0)