1616from metpy .units import concatenate , units
1717
1818
19+ @pytest .mark .network
1920def test_precipitable_water ():
2021 """Test precipitable water with observed sounding."""
2122 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -24,6 +25,7 @@ def test_precipitable_water():
2425 assert_array_almost_equal (pw , truth , 4 )
2526
2627
28+ @pytest .mark .network
2729def test_precipitable_water_no_bounds ():
2830 """Test precipitable water with observed sounding and no bounds given."""
2931 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -83,6 +85,7 @@ def test_precipitable_water_descriptive_bound_error():
8385 precipitable_water (pressure , dewpoint , bottom = units .Quantity (999 , 'hPa' ))
8486
8587
88+ @pytest .mark .network
8689def test_mean_pressure_weighted ():
8790 """Test pressure-weighted mean wind function with vertical interpolation."""
8891 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -95,6 +98,7 @@ def test_mean_pressure_weighted():
9598 assert_almost_equal (v , 7.966031839967931 * units ('m/s' ), 7 )
9699
97100
101+ @pytest .mark .network
98102def test_mean_pressure_weighted_temperature ():
99103 """Test pressure-weighted mean temperature function with vertical interpolation."""
100104 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -105,6 +109,7 @@ def test_mean_pressure_weighted_temperature():
105109 assert_almost_equal (t , 281.535035296836 * units ('kelvin' ), 7 )
106110
107111
112+ @pytest .mark .network
108113def test_mean_pressure_weighted_elevated ():
109114 """Test pressure-weighted mean wind function with a base above the surface."""
110115 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -118,6 +123,7 @@ def test_mean_pressure_weighted_elevated():
118123 assert_almost_equal (v , 1.7392601775853547 * units ('m/s' ), 7 )
119124
120125
126+ @pytest .mark .network
121127def test_weighted_continuous_average ():
122128 """Test pressure-weighted mean wind function with vertical interpolation."""
123129 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -130,6 +136,7 @@ def test_weighted_continuous_average():
130136 assert_almost_equal (v , 6.900543760612305 * units ('m/s' ), 7 )
131137
132138
139+ @pytest .mark .network
133140def test_weighted_continuous_average_temperature ():
134141 """Test pressure-weighted mean temperature function with vertical interpolation."""
135142 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -140,6 +147,7 @@ def test_weighted_continuous_average_temperature():
140147 assert_almost_equal (t , 279.07450928270185 * units ('kelvin' ), 7 )
141148
142149
150+ @pytest .mark .network
143151def test_weighted_continuous_average_elevated ():
144152 """Test pressure-weighted mean wind function with a base above the surface."""
145153 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -153,6 +161,7 @@ def test_weighted_continuous_average_elevated():
153161 assert_almost_equal (v , 1.616638856115755 * units ('m/s' ), 7 )
154162
155163
164+ @pytest .mark .network
156165def test_precipitable_water_xarray ():
157166 """Test precipitable water with xarray input."""
158167 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -163,6 +172,7 @@ def test_precipitable_water_xarray():
163172 assert_almost_equal (pw , truth )
164173
165174
175+ @pytest .mark .network
166176def test_bunkers_motion ():
167177 """Test Bunkers storm motion with observed sounding."""
168178 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -174,6 +184,7 @@ def test_bunkers_motion():
174184 assert_almost_equal (motion .flatten (), truth , 8 )
175185
176186
187+ @pytest .mark .network
177188def test_corfidi_motion ():
178189 """Test corfidi MCS motion with observed sounding."""
179190 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -184,6 +195,7 @@ def test_corfidi_motion():
184195 assert_almost_equal (motion_full .flatten (), truth_full , 8 )
185196
186197
198+ @pytest .mark .network
187199def test_corfidi_motion_override_llj ():
188200 """Test corfidi MCS motion with overridden LLJ."""
189201 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -204,13 +216,15 @@ def test_corfidi_motion_override_llj():
204216 data ['v_wind' ], v_llj = 10 * units ('kt' ))
205217
206218
219+ @pytest .mark .network
207220def test_corfidi_corfidi_llj_unaivalable ():
208221 """Test corfidi MCS motion where the LLJ is unailable."""
209222 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
210223 with pytest .raises (ValueError ):
211224 corfidi_storm_motion (data ['pressure' ][6 :], data ['u_wind' ][6 :], data ['v_wind' ][6 :])
212225
213226
227+ @pytest .mark .network
214228def test_corfidi_corfidi_cloudlayer_trimmed ():
215229 """Test corfidi MCS motion where sounding does not include the entire cloud layer."""
216230 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -221,6 +235,7 @@ def test_corfidi_corfidi_cloudlayer_trimmed():
221235 assert_almost_equal (motion_no_top .flatten (), truth_no_top , 8 )
222236
223237
238+ @pytest .mark .network
224239def test_corfidi_motion_with_nans ():
225240 """Test corfidi MCS motion with observed sounding with nans."""
226241 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -235,6 +250,7 @@ def test_corfidi_motion_with_nans():
235250 assert_almost_equal (motion_with_nans .flatten (), truth_with_nans , 8 )
236251
237252
253+ @pytest .mark .network
238254def test_bunkers_motion_with_nans ():
239255 """Test Bunkers storm motion with observed sounding."""
240256 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -250,6 +266,7 @@ def test_bunkers_motion_with_nans():
250266 assert_almost_equal (motion .flatten (), truth , 8 )
251267
252268
269+ @pytest .mark .network
253270def test_bulk_shear ():
254271 """Test bulk shear with observed sounding."""
255272 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -261,6 +278,7 @@ def test_bulk_shear():
261278 assert_almost_equal (v .to ('knots' ), truth [1 ], 8 )
262279
263280
281+ @pytest .mark .network
264282def test_bulk_shear_no_depth ():
265283 """Test bulk shear with observed sounding and no depth given. Issue #568."""
266284 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -271,6 +289,7 @@ def test_bulk_shear_no_depth():
271289 assert_almost_equal (v .to ('knots' ), truth [1 ], 8 )
272290
273291
292+ @pytest .mark .network
274293def test_bulk_shear_elevated ():
275294 """Test bulk shear with observed sounding and a base above the surface."""
276295 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -325,6 +344,7 @@ def test_sigtor_scalar():
325344 assert_almost_equal (sigtor , truth , 6 )
326345
327346
347+ @pytest .mark .network
328348def test_critical_angle ():
329349 """Test critical angle with observed sounding."""
330350 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
@@ -335,6 +355,7 @@ def test_critical_angle():
335355 assert_almost_equal (ca , truth , 8 )
336356
337357
358+ @pytest .mark .network
338359def test_critical_angle_units ():
339360 """Test critical angle with observed sounding and different storm motion units."""
340361 data = get_upper_air_data (datetime (2016 , 5 , 22 , 0 ), 'DDC' )
0 commit comments