Esempio n. 1
0
def test_true_declination():
    assert_quantity_allclose(sun.true_declination("2012/11/11"),
                             -17.467 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_declination("2245/12/01"),
                             -21.717 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_declination("2014/05/27"),
                             21.245 * u.deg,
                             atol=1e-3 * u.deg)
Esempio n. 2
0
def test_true_declination():
    assert_quantity_allclose(sun.true_declination("2012/11/11"),
                             -0.669 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_declination("2245/12/01"),
                             -0.380 * u.deg,
                             atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_declination("2014/05/27"),
                             0.427 * u.deg,
                             atol=1e-3 * u.deg)
Esempio n. 3
0
def test_true_declination():
    assert_array_almost_equal(sun.true_declination("2012/11/11"), -0.669 * u.deg, decimal=3)
    assert_array_almost_equal(sun.true_declination("2245/12/01"), -0.380 * u.deg, decimal=3)
    assert_array_almost_equal(sun.true_declination("2014/05/27"), 0.427 * u.deg, decimal=3)
Esempio n. 4
0
def test_true_declination():
    assert_quantity_allclose(sun.true_declination("2012/11/11"), -17.467 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_declination("2245/12/01"), -21.717 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_declination("2014/05/27"), 21.245 * u.deg, atol=1e-3 * u.deg)
Esempio n. 5
0
def test_true_declination_J2000():
    # Validate against JPL HORIZONS output
    t = Time('1992-10-13', scale='tdb')
    assert_quantity_allclose(sun.true_declination(t, equinox_of_date=False),
                             Angle('-7d49m20.8s'), atol=0.05*u.arcsec)
Esempio n. 6
0
def test_true_declination():
    assert_quantity_allclose(sun.true_declination("2012/11/11"), -0.669 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_declination("2245/12/01"), -0.380 * u.deg, atol=1e-3 * u.deg)
    assert_quantity_allclose(sun.true_declination("2014/05/27"), 0.427 * u.deg, atol=1e-3 * u.deg)