sharppy / SHARPpy

Sounding/Hodograph Analysis and Research Program in Python
https://sharppy.github.io/SHARPpy/index.html
Other
220 stars 110 forks source link

Fix calculation of CAP #217

Open chird opened 3 years ago

chird commented 3 years ago

Referenced issue

216

Changes

Changes calculation of CAP inside the parcelx function. It is now the difference between the virtual temperature of the parcel and the profile.

wblumberg commented 2 years ago

Hi @chird - thank's so much for submitting this. Since this is a routine copied from SPC's version, do you have a reference showing the cap calculation change is better or incorrect? Thanks! I also may be able to double check with SPC.

chird commented 2 years ago

Hi @wblumberg. Do you mean a scientific paper reference? In daily business, I noticed that the CAP values are strange. With my change the values become a realistic difference between virtual temperatures. But I have to admit that I don't know my reference for the CAP definition anymore.