From dc9351830e89f829aef47df0f853c8f241362074 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Fri, 16 Oct 2020 14:31:59 -0500 Subject: [PATCH] snapshot... --- modules/amv/intercompare.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/amv/intercompare.py b/modules/amv/intercompare.py index afe68d6a..ea3c9635 100644 --- a/modules/amv/intercompare.py +++ b/modules/amv/intercompare.py @@ -4,13 +4,15 @@ from util.setup import home_dir from util.lon_lat_grid import earth_to_indexs from util.util import haversine_np from deeplearning.amv_raob import get_profile_multi -#import cartopy -#from cartopy import * +import cartopy +from cartopy import * import metpy.calc as mpcalc -#import cartopy.crs as ccrs +import cartopy.crs as ccrs from metpy.units import units import h5py import time +from scipy.interpolate import interp1d +from util.util import minimize_quadratic goes16_directory = '/arcdata/goes/grb/goes16' # /year/date/abi/L1b/RadC @@ -1135,9 +1137,9 @@ def best_fit_altitude(amv_spd, amv_dir, amv_alt, amv_lat, amv_lon, fcst_spd, fcs sat_wind_best_fit_u = fcst_uwind[lev_below] * (1.0 - prop) + fcst_uwind[lev_above] * prop sat_wind_best_fit_v = fcst_vwind[lev_below] * (1.0 - prop) + fcst_vwind[lev_above] * prop - return bf_tup + def get_press_bin_ranges(lop, hip, bin_size=100): bin_ranges = [] delp = hip - lop -- GitLab