Ejemplo n.º 1
0
def test_true_rightasenscion():
    assert_quantity_allclose(sun.true_rightascension("2012/11/11"),
                             226.550 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_rightascension("2142/02/03"),
                             316.466 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_rightascension("2013/12/11"),
                             258.150 * u.deg,
                             atol=1e-3 * u.deg)
Ejemplo n.º 2
0
def test_true_rightasenscion():
    assert_quantity_allclose(sun.true_rightascension("2012/11/11"),
                             359.318 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_rightascension("2142/02/03"),
                             359.328 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_rightascension("2013/12/11"),
                             359.102 * u.deg,
                             atol=1e-3 * u.deg)
Ejemplo n.º 3
0
def test_true_rightasenscion():
    assert_array_almost_equal(sun.true_rightascension("2012/11/11"), 359.318 * u.deg, decimal=3)
    assert_array_almost_equal(sun.true_rightascension("2142/02/03"), 359.328 * u.deg, decimal=3)
    assert_array_almost_equal(sun.true_rightascension("2013/12/11"), 359.102 * u.deg, decimal=3)
Ejemplo n.º 4
0
def test_true_rightasenscion():
    assert_quantity_allclose(sun.true_rightascension("2012/11/11"), 226.550 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_rightascension("2142/02/03"), 316.466 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_rightascension("2013/12/11"), 258.150 * u.deg, atol=1e-3 * u.deg)
Ejemplo n.º 5
0
def test_true_rightascension_J2000():
    # Validate against JPL HORIZONS output
    t = Time('1992-10-13', scale='tdb')
    assert_quantity_allclose(sun.true_rightascension(t, equinox_of_date=False),
                             Angle('13h13m53.65s'), atol=0.01*u.arcsec)
Ejemplo n.º 6
0
def test_true_rightasenscion():
    assert_quantity_allclose(sun.true_rightascension("2012/11/11"), 359.318 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_rightascension("2142/02/03"), 359.328 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_rightascension("2013/12/11"), 359.102 * u.deg, atol=1e-3 * u.deg)