From db37960cf42fda6915cd47cf72b8ad7a0a57f6db Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 28 May 2024 15:23:00 -0500 Subject: [PATCH] snapshot... --- modules/contrail/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/contrail/util.py b/modules/contrail/util.py index 77cb685d..1474f1ca 100644 --- a/modules/contrail/util.py +++ b/modules/contrail/util.py @@ -110,7 +110,7 @@ def extract(mask_image, image_ts, clavrx_path): horz_wind_spd_3d = wind_speed(uwind_3d, vwind_3d) # This one's a bit more work: `first_derivative` only returns a ndarray with no units, so we use the - # helper function to create a DataArray and units via metpy's pint support + # helper function to create a DataArray and add units via metpy's pint support vert_shear_3d = first_derivative(horz_wind_spd_3d, axis=0, x=temp_3d.coords['Pressure']) vert_shear_3d = volume_np_to_xr(vert_shear_3d, ['Pressure', 'Latitude', 'Longitude'], lon_range=[lon_range[0], lon_range[1]], lat_range=[lat_range[0], lat_range[1]]) vert_shear_3d = vert_shear_3d / units.hPa -- GitLab