11import unittest
22from geodepy .convert import DMSAngle
3- from geodepy .survey import (first_vel_params , first_vel_corrn ,
4- precise_inst_ht , va_conv , radiations , joins )
5-
3+ from geodepy .survey import (first_vel_params , first_vel_corrn ,
4+ mets_partial_differentials , precise_inst_ht ,
5+ va_conv , radiations , joins )
66
77class TestSurveyConvert (unittest .TestCase ):
88 def test_first_vel_params (self ):
@@ -25,6 +25,22 @@ def test_first_vel_corrn(self):
2525 obs_pressure , obs_relative_humidity )
2626 corrected_obs_distance = raw_obs_distance + correction
2727 self .assertEqual (round (corrected_obs_distance , 4 ), 1117.8624 )
28+
29+ def test_mets_partial_differentials (self ):
30+ group_ref_Index = 1.00028
31+ temp = 15
32+ pressure = 1013.25
33+ rel_humidity = 60
34+ K = round (0.91973804217265260 ,2 )
35+ L = round (0.2619533756724471 ,2 )
36+ M = round (0.03911157383307305 ,2 )
37+ differ_new = mets_partial_differentials (group_ref_Index ,
38+ temp ,
39+ pressure ,
40+ rel_humidity )
41+ self .assertEqual (round (differ_new [0 ], 2 ), K )
42+ self .assertEqual (round (differ_new [1 ], 2 ), L )
43+ self .assertEqual (round (differ_new [2 ], 2 ), M )
2844
2945 def test_va_conv (self ):
3046 test1 = va_conv (92.24305555555556 , 2116.254 )
0 commit comments