Beispiel #1
0
def test_apparent_rightascension():
    assert_quantity_allclose(sun.apparent_rightascension("2012/11/11"),
                             15.103 * u.hourangle,
                             atol=1e-3 * u.hourangle)
    assert_quantity_allclose(sun.apparent_rightascension("2013/12/13"),
                             17.356 * u.hourangle,
                             atol=1e-3 * u.hourangle)
    assert_quantity_allclose(sun.apparent_rightascension("2512/04/09"),
                             1.196 * u.hourangle,
                             atol=1e-3 * u.hourangle)
Beispiel #2
0
def test_apparent_rightascension():
    assert_array_almost_equal(sun.apparent_rightascension("2012/11/11"), 15.035 * u.hourangle, decimal=3)
    assert_array_almost_equal(sun.apparent_rightascension("2013/12/13"), 17.282 * u.hourangle, decimal=3)
    assert_array_almost_equal(sun.apparent_rightascension("2512/04/09"), 1.134 * u.hourangle, decimal=3)
Beispiel #3
0
def test_apparent_rightascension_J2000():
    # Regression-only test
    t = Time('1992-10-13', scale='tdb')
    assert_quantity_allclose(sun.apparent_rightascension(t, equinox_of_date=False),
                             Angle('13h13m52.37s'), atol=0.01*u.arcsec)
Beispiel #4
0
def test_apparent_rightascension():
    assert_quantity_allclose(sun.apparent_rightascension("2012/11/11"), 15.103 * u.hourangle, atol=1e-3 * u.hourangle)
    assert_quantity_allclose(sun.apparent_rightascension("2013/12/13"), 17.356 * u.hourangle, atol=1e-3 * u.hourangle)
    assert_quantity_allclose(sun.apparent_rightascension("2512/04/09"), 1.196 * u.hourangle, atol=1e-3 * u.hourangle)
Beispiel #5
0
def test_apparent_rightascension():
    # Validate against a published value from the Astronomical Almanac (1992)
    t = Time('1992-10-13', scale='tdb')
    assert_quantity_allclose(sun.apparent_rightascension(t), Angle('13h13m30.749s'),
                             atol=0.01*u.arcsec)