|
6 | 6 |
|
7 | 7 | class TestSurveyConvert(unittest.TestCase): |
8 | 8 | def test_first_vel_params(self): |
9 | | - temperature = 12 |
10 | | - pressure = 1013.25 |
11 | | - relative_humidity = 60 |
12 | 9 | edm_wavelength = 0.850 |
13 | | - param_c = 281.781 |
| 10 | + frequency = 49951334.24 |
| 11 | + n_REF = 1.000281783 |
| 12 | + param_c = 281.783 |
14 | 13 | param_d = 79.393 |
15 | | - params_new = first_vel_params(edm_wavelength, temperature, |
16 | | - pressure, relative_humidity) |
| 14 | + params_new = first_vel_params(wavelength, frequency, n_REF) |
17 | 15 | self.assertEqual(round(params_new[0], 3), param_c) |
18 | 16 | self.assertEqual(round(params_new[1], 3), param_d) |
19 | 17 |
|
20 | 18 | def test_first_vel_corrn(self): |
21 | | - params = first_vel_params(0.85) |
| 19 | + params = first_vel_params(0.85,49951.33424,1.000281783) |
22 | 20 | raw_obs_distance = 1117.8517 |
23 | 21 | obs_temperature = 6.8 |
24 | 22 | obs_pressure = 960.8 |
25 | 23 | obs_relative_humidity = 58.6 |
26 | 24 | correction = first_vel_corrn(raw_obs_distance, params, obs_temperature, |
27 | 25 | obs_pressure, obs_relative_humidity) |
28 | 26 | corrected_obs_distance = raw_obs_distance + correction |
29 | | - self.assertEqual(round(corrected_obs_distance, 4), 1117.8618) |
| 27 | + self.assertEqual(round(corrected_obs_distance, 4), 1117.8624) |
30 | 28 |
|
31 | 29 | def test_va_conv(self): |
32 | 30 | test1 = va_conv(92.24305555555556, 2116.254) |
|
0 commit comments