diff --git a/modules/util/util.py b/modules/util/util.py index 848e988feb15ebbb2cfd305e16d3c86dd2b489c1..8ad1d742cdf1d9e842ae3575e88b3e33ca650522 100644 --- a/modules/util/util.py +++ b/modules/util/util.py @@ -1439,6 +1439,11 @@ def smooth_2d(z, sigma=1.0): return np.stack(z_smoothed) +# For [Y, X], see above +def smooth_2d_single(z, sigma=1.0): + return gaussian_filter(z, sigma=sigma) + + def get_training_parameters(day_night='DAY', l1b_andor_l2='both', satellite='GOES16', use_dnb=False): if day_night == 'DAY': train_params_l2 = ['cld_height_acha', 'cld_geo_thick', 'cld_temp_acha', 'cld_press_acha', 'supercooled_cloud_fraction',