diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-12-12 16:56:17 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-12-12 16:56:17 +0100 |
commit | e09d1d2f78fcdf7b98081402ffa25e083c487470 (patch) | |
tree | 670cf5b75e8c685e8641576bc1c7e8634775dfb0 /plotter | |
parent | 29e7ceac17cdfb2cdbf5593688eda2993a25e06f (diff) | |
download | meteo_toolbox-e09d1d2f78fcdf7b98081402ffa25e083c487470.tar.gz |
meteogram 850hpa tmep
Diffstat (limited to 'plotter')
-rwxr-xr-x | plotter/meteogram.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plotter/meteogram.py b/plotter/meteogram.py index 790714e..a360fef 100755 --- a/plotter/meteogram.py +++ b/plotter/meteogram.py @@ -57,6 +57,7 @@ def _plot(data, output, name, lat, lon): ax2 = fig.add_subplot(5,1,3,sharex=ax) ax2.plot(data.valid_time, data.t2m.metpy.convert_units('degC').transpose(), color='red', label='Temperature (2m)') ax2.plot(data.valid_time, mpcalc.dewpoint_from_relative_humidity(data.t2m, data.r2).transpose(), color='blue', label='Dewpoint (2m)') + ax2.plot(data.valid_time, data.sel(isobaricInhPa=850.0).t.metpy.convert_units('degC').transpose(), color='grey', label='Tempreature (850hPa)') ax2.set_ylabel('Temperature [degC]') ax2.legend(loc='lower right') @@ -71,7 +72,7 @@ def _plot(data, output, name, lat, lon): ax4 = ax3.twinx() ax4.set_ylim(0, 14) ax4.set_ylabel('Convective Clouds Height [km]') - ax4.bar(data.valid_time, + ax4.bar(data.valid_time, alpha=0.5, bottom=data.HBAS_CON.metpy.convert_units('km').transpose(), height=(data.hcct.metpy.convert_units('km')-data.HBAS_CON.metpy.convert_units('km')).transpose(), align='edge', width=np.timedelta64(3, 'h')) |