| Conditions | 2 | 
| Total Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | # Copyright (c) 2008-2017 MetPy Developers.  | 
            ||
| 15 | def test_precipitable_water():  | 
            ||
| 16 | """Test precipitable water with observed sounding."""  | 
            ||
| 17 | with UseSampleData():  | 
            ||
| 18 | data = get_upper_air_data(datetime(2016, 5, 22, 0), 'DDC', source='wyoming')  | 
            ||
| 19 | pw = precipitable_water(data.variables['dewpoint'][:], data.variables['pressure'][:])  | 
            ||
| 20 |     truth = (0.8899441949243486 * units('inches')).to('millimeters') | 
            ||
| 21 | assert_array_equal(pw, truth)  | 
            ||
| 22 |