Example #1
0
def test_apparent_longitude():
    assert_quantity_allclose(sun.apparent_longitude("2012/11/11"),
                             228.994 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_longitude("2014/05/27"),
                             65.648 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_longitude("2134/02/12"),
                             323.066 * u.deg,
                             atol=1e-3 * u.deg)
Example #2
0
def test_apparent_longitude():
    assert_quantity_allclose(sun.apparent_longitude("2012/11/11"),
                             227.989 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_longitude("2014/05/27"),
                             64.687 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_longitude("2134/02/12"),
                             322.053 * u.deg,
                             atol=1e-3 * u.deg)
Example #3
0
def test_apparent_longitude():
    assert_array_almost_equal(sun.apparent_longitude("2012/11/11"), 227.989 * u.deg, decimal=3)
    assert_array_almost_equal(sun.apparent_longitude("2014/05/27"), 64.687 * u.deg, decimal=3)
    assert_array_almost_equal(sun.apparent_longitude("2134/02/12"), 322.053 * u.deg, decimal=3)
Example #4
0
def test_apparent_longitude():
    assert_quantity_allclose(sun.apparent_longitude("2012/11/11"), 228.994 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_longitude("2014/05/27"), 65.648 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_longitude("2134/02/12"), 323.066 * u.deg, atol=1e-3 * u.deg)
Example #5
0
def test_apparent_longitude():
    # Validate against a published value from the Astronomical Almanac (1992)
    t = Time('1992-10-13', scale='tdb')
    assert_quantity_allclose(sun.apparent_longitude(t), Angle('199d54m21.56s'), atol=0.1*u.arcsec)
Example #6
0
def test_apparent_longitude():
    assert_quantity_allclose(sun.apparent_longitude("2012/11/11"), 227.989 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_longitude("2014/05/27"), 64.687 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.apparent_longitude("2134/02/12"), 322.053 * u.deg, atol=1e-3 * u.deg)