def test_gcrs_self_transform_closeby():
 t = Time(u'2014-12-25T07:00')
 moon_geocentric = SkyCoord(GCRS((318.10579159 * u.deg), ((-11.65281165) * u.deg), (365042.64880308 * u.km), obstime=t))
 obsgeoloc = ([(-5592982.59658935), (-63054.1948592), 3059763.90102216] * u.m)
 obsgeovel = (([4.59798494, (-407.84677071), 0.0] * u.m) / u.s)
 moon_lapalma = SkyCoord(GCRS((318.7048445 * u.deg), ((-11.98761996) * u.deg), (369722.8231031 * u.km), obstime=t, obsgeoloc=obsgeoloc, obsgeovel=obsgeovel))
 transformed = moon_geocentric.transform_to(moon_lapalma.frame)
 delta = transformed.separation_3d(moon_lapalma)
 assert_allclose(delta, (0.0 * u.m), atol=(1 * u.m))

def test_gcrs_self_transform_closeby ( ) : t = Time ( u'2014-12-25T07:00' ) moon_geocentric = SkyCoord ( GCRS ( ( 318.10579159 * u . deg ) , ( ( - 11.65281165 ) * u . deg ) , ( 365042.64880308 * u . km ) , obstime = t ) ) obsgeoloc = ( [ ( - 5592982.59658935 ) , ( - 63054.1948592 ) , 3059763.90102216 ] * u . m ) obsgeovel = ( ( [ 4.59798494 , ( - 407.84677071 ) , 0.0 ] * u . m ) / u . s ) moon_lapalma = SkyCoord ( GCRS ( ( 318.7048445 * u . deg ) , ( ( - 11.98761996 ) * u . deg ) , ( 369722.8231031 * u . km ) , obstime = t , obsgeoloc = obsgeoloc , obsgeovel = obsgeovel ) ) transformed = moon_geocentric . transform_to ( moon_lapalma . frame ) delta = transformed . separation_3d ( moon_lapalma ) assert_allclose ( delta , ( 0.0 * u . m ) , atol = ( 1 * u . m ) )
tests gcrs self transform for objects which are nearby and thus have reasonable parallax .