示例#1
0
def test_make_rough_choudhury():

    make_soil('rough_choudhury79',
              'dobson85',
              275,
              moisture=0.9,
              sand=0.2,
              clay=0.3,
              drymatter=1100,
              roughness_rms=1e-2)
示例#2
0
def test_equivalence_fresnel():

    h2o = water_permittivity(6e9, 273)
    rough = make_soil('rough_choudhury79',
                      h2o,
                      temperature=273,
                      roughness_rms=0.)
    smooth = make_soil('flat', h2o, temperature=273)
    np.testing.assert_equal(
        rough.specular_reflection_matrix(10e9, 1, np.cos(50), 2)[0],
        smooth.specular_reflection_matrix(10e9, 1, np.cos(50), 2)[0])
示例#3
0
def soil_setup():
    s = make_soil('soil_qnh', 'dobson85', 275, moisture=0.9, sand=0.2, clay=0.3, drymatter=1100, Q=0.16, Nv=0.11,
                  Nh=1.63, H=0.65)

    frequency = 1.4e9
    mu1 = np.cos(np.radians(np.arange(10, 80)))

    return s, frequency, mu1
示例#4
0
def test_soil_wegmuller_reflection():

    s = make_soil('soil_wegmuller', 'dobson85', 275, moisture=0.9, sand=0.2, clay=0.3, drymatter=1100, roughness_rms=1e-2)

    frequency = 37e9
    mu1 = np.cos(np.radians(np.arange(10, 80)))

    npol = 2

    s.specular_reflection_matrix(frequency, 1, mu1, npol)
示例#5
0
def test_raises_ksigma_warning():
    with pytest.raises(Warning):
        s = make_soil('rough_choudhury79',
                      'dobson85',
                      275,
                      moisture=0.9,
                      sand=0.2,
                      clay=0.3,
                      drymatter=1100,
                      roughness_rms=0.1)
        frequency = 1e9
        mu1 = np.cos(np.radians(np.arange(10, 80)))
        npol = 2
        s.specular_reflection_matrix(frequency, 1, mu1, npol)
示例#6
0
def test_rough_choudhury_reflection():

    s = make_soil('rough_choudhury79',
                  'dobson85',
                  275,
                  moisture=0.9,
                  sand=0.2,
                  clay=0.3,
                  drymatter=1100,
                  roughness_rms=1e-3)

    frequency = 1e9
    mu1 = np.cos(np.radians(np.arange(10, 80)))

    npol = 2

    s.specular_reflection_matrix(frequency, 1, mu1, npol)
示例#7
0
def test_make_flat():

    make_soil('flat', 'dobson85', 275, moisture=0.9, sand=0.2, clay=0.3, drymatter=1100)
示例#8
0
def test_make_soil_qnh():

    make_soil('soil_qnh', 'dobson85', 275, moisture=0.9, sand=0.2, clay=0.3, drymatter=1100, Q=0.16, Nv=0.11, Nh=1.63, H=0.65)
示例#9
0
def test_make_soil_qnh_params():

    make_soil('soil_qnh', 'dobson85', 275, moisture=0.9, sand=0.2, clay=0.3, drymatter=1100, H=0.65)
示例#10
0
def test_make_soil_wegmuller():

    make_soil('soil_wegmuller', 'dobson85', 275, moisture=0.9, sand=0.2, clay=0.3, drymatter=1100, roughness_rms=1e-2)
示例#11
0
def test_make_rough_water():
    make_soil('rough_choudhury79',
              water_permittivity(6e9, 273),
              temperature=270,
              roughness_rms=0.5e-3)