Exemplo n.º 1
0
def test_airmass():
    m = airmass(lambda Z: ATMOSPHERE_1976(Z).rho, 90)
    assert_close(m, 10356.127665863998)  # vs 10356
    m = airmass(lambda Z: ATMOSPHERE_1976(Z).rho, 60)
    assert_close(m, 11954.138271601627)  # vs 11954

    m = airmass(lambda Z: ATMOSPHERE_1976(Z).rho, 5)
    assert_close(m, 106861.56335489497)  # vs 106837

    m = airmass(lambda Z: ATMOSPHERE_1976(Z).rho, .1)
    assert_close(m, 379082.24065519444, rtol=1e-6)  # vs 378596
Exemplo n.º 2
0
def test_airmass():
    m = airmass(lambda Z : ATMOSPHERE_1976(Z).rho, 90)
    assert_allclose(m, 10356.127665863998) # vs 10356
    m = airmass(lambda Z : ATMOSPHERE_1976(Z).rho, 60)
    assert_allclose(m, 11954.138271601627) # vs 11954
    
    m = airmass(lambda Z : ATMOSPHERE_1976(Z).rho, 5)
    assert_allclose(m, 106861.56335489497) # vs 106837
    
    m = airmass(lambda Z : ATMOSPHERE_1976(Z).rho, .1)
    assert_allclose(m, 379082.24065519444) # vs 378596
Exemplo n.º 3
0
 def time_airmass(self):
     airmass(lambda Z: ATMOSPHERE_1976(Z).rho, 90.0)