def test_array_precession():
 j2000 = Time(u'J2000', scale=u'utc')
 j1975 = Time(u'J1975', scale=u'utc')
 fk5 = FK5(([1, 1.1] * u.radian), ([0.5, 0.6] * u.radian))
 assert (fk5.equinox.jyear == j2000.jyear)
 fk5_2 = fk5.transform_to(FK5(equinox=j1975))
 assert (fk5_2.equinox.jyear == j1975.jyear)
 npt.assert_array_less(0.05, np.abs((fk5.ra.degree - fk5_2.ra.degree)))
 npt.assert_array_less(0.05, np.abs((fk5.dec.degree - fk5_2.dec.degree)))

def test_array_precession ( ) : j2000 = Time ( u'J2000' , scale = u'utc' ) j1975 = Time ( u'J1975' , scale = u'utc' ) fk5 = FK5 ( ( [ 1 , 1.1 ] * u . radian ) , ( [ 0.5 , 0.6 ] * u . radian ) ) assert ( fk5 . equinox . jyear == j2000 . jyear ) fk5_2 = fk5 . transform_to ( FK5 ( equinox = j1975 ) ) assert ( fk5_2 . equinox . jyear == j1975 . jyear ) npt . assert_array_less ( 0.05 , np . abs ( ( fk5 . ra . degree - fk5_2 . ra . degree ) ) ) npt . assert_array_less ( 0.05 , np . abs ( ( fk5 . dec . degree - fk5_2 . dec . degree ) ) )
ensures that fk5 coordinates as arrays precess their equinoxes .