Skip to content
Snippets Groups Projects
Commit a67615d5 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent d3c63241
No related branches found
No related tags found
No related merge requests found
......@@ -238,9 +238,10 @@ def make_icing_image(h5f, probs, ice_lons, ice_lats, clvrx_str_time, satellite,
else:
ax.set_extent(extent, crs=ccrs.PlateCarree())
if bg_image is not None:
ax.imshow(bg_image, origin='upper', extent=(xmin, xmax, ymin, ymax), cmap='Greys', transform=geos)
bg_im = ax.imshow(bg_image, origin='upper', extent=(xmin, xmax, ymin, ymax), cmap='Greys', transform=geos)
if probs is not None:
ax.imshow(probs, cmap='Purples', origin='upper', extent=(xmin, xmax, ymin, ymax), vmin=0.55, vmax=1.0, transform=geos)
p_im = ax.imshow(probs, cmap='Purples', origin='upper', extent=(xmin, xmax, ymin, ymax),
vmin=0.20, vmax=1.0, alpha=0.8, transform=geos)
ax.coastlines(resolution='50m', color='green', linewidth=1.50)
# ax.add_feature(ccrs.cartopy.feature.STATES, linewidth=0.25)
......@@ -249,9 +250,11 @@ def make_icing_image(h5f, probs, ice_lons, ice_lats, clvrx_str_time, satellite,
if ice_lats_vld is not None:
ax.scatter(ice_lons_vld, ice_lats_vld, s=180.0, marker='o', color='red', transform=ccrs.PlateCarree())
title = satellite+', '+clvrx_str_time+' >55% Probability Icing'
title = satellite+', '+clvrx_str_time+' >50% Probability Icing'
plt.title(title, loc='left', fontweight='bold', fontsize=24)
plt.colorbar()
cbar = plt.colorbar(p_im)
cbar.ax.tick_params(labelsize=10)
ImageDirAndName = os.path.join(homedir, imagename+'_'+clvrx_str_time)
fig.savefig(ImageDirAndName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment