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)
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])
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
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)
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)
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)
def test_make_flat(): make_soil('flat', 'dobson85', 275, moisture=0.9, sand=0.2, clay=0.3, drymatter=1100)
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)
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)
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)
def test_make_rough_water(): make_soil('rough_choudhury79', water_permittivity(6e9, 273), temperature=270, roughness_rms=0.5e-3)