From 3092195d73443da1bf13d16bdff0a316ea7868f9 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Wed, 29 Sep 2021 16:03:15 -0500 Subject: [PATCH] minor... --- modules/util/plot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/util/plot.py b/modules/util/plot.py index 05ec1e18..5e4701d6 100644 --- a/modules/util/plot.py +++ b/modules/util/plot.py @@ -224,7 +224,7 @@ def plot_image3(image, cmap='Greys'): plt.title('GOES-16', loc='left', fontweight='bold', fontsize=15) -def make_icing_image(clvrx_file, ice_lons, ice_lats, ice_lons_vld=None, ice_lats_vld=None, filename='testimage', title=None, extent=[-110, -60, 10, 55]): +def make_icing_image(clvrx_file, ice_lons, ice_lats, clvrx_str_time, ice_lons_vld=None, ice_lats_vld=None, imagename='image', extent=[-110, -60, 10, 55]): h5f = h5py.File(clvrx_file, 'r') image = get_grid_values_all(h5f, 'temp_10_4um_nom') @@ -245,8 +245,9 @@ def make_icing_image(clvrx_file, ice_lons, ice_lats, ice_lons_vld=None, ice_lats if ice_lats_vld is not None: #ax.scatter(ice_lons_vld, ice_lats_vld, s=140.0, facecolors='none', marker='o', edgecolor='red', transform=ccrs.PlateCarree()) ax.scatter(ice_lons_vld, ice_lats_vld, s=140.0, marker='o', color='red', transform=ccrs.PlateCarree()) + title = 'GOES-16, '+clvrx_str_time+' >50% Probability Icing' plt.title(title, loc='left', fontweight='bold', fontsize=24) - ImageDirAndName = os.path.join('/Users/tomrink', filename) + ImageDirAndName = os.path.join('/Users/tomrink', imagename+'_'+clvrx_str_time) fig.savefig(ImageDirAndName) -- GitLab