From fef9480eab564bb0d033779a11b2b382247a901a Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 26 Oct 2020 02:50:33 -0500 Subject: [PATCH] snapshot... --- modules/amv/intercompare.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/amv/intercompare.py b/modules/amv/intercompare.py index c45a14a0..32ad6a80 100644 --- a/modules/amv/intercompare.py +++ b/modules/amv/intercompare.py @@ -834,7 +834,7 @@ def get_amv_winds_match(dist_threshold=150, cqi=50): return amvs_all -def best_fit(amv_spd, amv_dir, amv_prs, amv_lat, amv_lon, fcst_spd, fcst_dir, fcst_prs): +def best_fit(amv_spd, amv_dir, amv_prs, amv_lat, amv_lon, fcst_spd, fcst_dir, fcst_prs, verbose=False): """Finds the background model best fit pressure associated with the AMV. The model best-fit pressure is the height (in pressure units) where the @@ -869,9 +869,6 @@ def best_fit(amv_spd, amv_dir, amv_prs, amv_lat, amv_lon, fcst_spd, fcst_dir, fc fcst_num_levels = fcst_spd.shape[0] -# verbose = True - verbose = False - SatwindBestFitPress = undef SatwindBestFitU = undef SatwindBestFitV = undef @@ -1022,8 +1019,7 @@ def best_fit(amv_spd, amv_dir, amv_prs, amv_lat, amv_lon, fcst_spd, fcst_dir, fc def best_fit_altitude(amv_spd, amv_dir, amv_alt, amv_lat, amv_lon, fcst_spd, fcst_dir, fcst_alt, amv_uwind=None, amv_vwind=None, fcst_uwind=None, fcst_vwind=None, - alt_top=25000.0, alt_bot=0.0, bf_half_width=1000.0, constraint_half_width=1000.0): - verbose = False + alt_top=25000.0, alt_bot=0.0, bf_half_width=1000.0, constraint_half_width=1000.0, verbose=False): fcst_num_levels = fcst_alt.shape[0] flag = 3 -- GitLab