Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAPE Method Calculation Error #239

Open
aarande opened this issue Jun 1, 2022 · 0 comments
Open

CAPE Method Calculation Error #239

aarande opened this issue Jun 1, 2022 · 0 comments

Comments

@aarande
Copy link
Contributor

aarande commented Jun 1, 2022

I was made aware of an error in CAPE values in my application and after some investigation found a problem with the cape method in params when compared to the parcelx method.

In my application I use the cape method to get the amount of CAPE in the mixed layer parcel for the layer between -10C and -30C. After updating to version 1.4.0 code it was reported these values were much larger than expected. According to my understanding and the docs the cape method is the same as the parcelx but only calculates a limited number of variables for speed. So calling cape and parcelx for the same parcel and layer should return the same values. The cape method is returning much larger values closer to the overall bplus value for the parcel while the parcelx method appears to return bplus values that make more sense for the limited layer. Here are two calls that can be run for any sounding to demonstrate the values are different but should not be.

hailpcl = tab.params.cape(profile, profile.mlpcl.pm10c, profile.mlpcl.pm30c, flag=4)
print("Using CAPE method value is {}".format(hailpcl.bplus)

hailpcl = tab.params.parcelx(profile, profile.mlpcl.pm10c, profile.mlpcl.pm30c, flag=4)
print("Using parcelx method value is {}".format(hailpcl.bplus)

Thanks,
Aaron

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant