Skip to content

Commit

Permalink
Merge pull request #50 from jukent/main
Browse files Browse the repository at this point in the history
add some comments on what each subplot does
  • Loading branch information
jukent authored Dec 10, 2023
2 parents b6f412f + acc80a8 commit eca22c5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions notebooks/5-skewt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,10 @@
"\n",
"\n",
"# LCL and parcel profile skew-T\n",
"# At what point an air parcel lifted as a dry parcel becomes saturated\n",
"skewt_plots[0].ax.set_title('LCL and Parcel Profile')\n",
"skewt_plots[0].plot(p, lcl_prof, 'k')\n",
"skewt_plots[0].plot(lcl_p, lcl_t, 'ko')\n",
"skewt_plots[0].plot(lcl_p, lcl_t, 'ko') # Lifted Condensation Level \n",
"\n",
"\n",
"# add constant temperature line at t=0\n",
Expand All @@ -332,13 +333,17 @@
"\n",
"\n",
"# shade CAPE and CIN\n",
"# Area above and below the Level of Free Convection (LFC) - where the temeprature line crosses the moist adiabat\n",
"# Updraft energy for thunderstorms (CAPE) and energy needed for the storm to start (CIN)\n",
"skewt_plots[2].ax.set_title('Shade CAPE and CIN')\n",
"skewt_plots[2].plot(p, lcl_prof, 'k')\n",
"skewt_plots[2].shade_cin(p*units.hPa, T*units.degC, lcl_prof, Td*units.degC)\n",
"skewt_plots[2].shade_cape(p*units.hPa, T*units.degC, lcl_prof)\n",
"skewt_plots[2].shade_cin(p*units.hPa, T*units.degC, lcl_prof, Td*units.degC) # Convective INhibition\n",
"skewt_plots[2].shade_cape(p*units.hPa, T*units.degC, lcl_prof) # Convective Available Potential Energy\n",
"\n",
"\n",
"# Hodograph\n",
"# A line that connects the tips of wind vectors between two atmospheric heights\n",
"# # Used for understanding wind sheer\n",
"skewt_plots[3].ax.set_title('Hodograph')\n",
"ax_hod = inset_axes(skewt_plots[3].ax, '30%', '30%')\n",
"hod = Hodograph(ax_hod, component_range=50)\n",
Expand Down

0 comments on commit eca22c5

Please sign in to comment.