-
Notifications
You must be signed in to change notification settings - Fork 416
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_cin ValueError: zero-size array to reduction operation minimum which has no identity #1190
Comments
Looks like something I introduced in #1172...yay. I'll investigate. |
Interestingly,
|
Alright, I solved the initial problem here which wasn't related to #1172, but an inaccurate unit comparison earlier in |
One source from the USAF here, which basically says its how you lift the parcel. Given that this parcel is unstable from the surface, I would think that all positive area should be included, but the canonical definition of the LFC gives me pause. (LFC in this case is also the LCL at 900 hPa). |
Speaking of canonical definition of the LFC, what exact definition is MetPy using? (I couldn't find a reference in the docs.) I have a feeling resolving that will be key here. Based on #826, it was decided that the LFC must be at or above the LCL, but it wasn't fully explained why that is the case. At least to me, the definition given in the USAF text doesn't seem to preclude an LFC below the LCL:
However, while the AMS glossary gives similar phrasing, it also includes "in a conditionally unstable atmosphere," which is not the case for the lowest levels in this example sounding. Should the LFC be undefined in this case? @kgoebber Would you have input to help clear this up? |
Based on conversations with @kgoebber and @dopplershift, we are sticking with no LFC below the LCL. CIN will be set to 0 in this case, but the positive area below the LCL will not be added to CAPE. Based on the USAF text, a parcel must be lifted dry adiabatically to saturation before it can be eligible to "rise freely", therefore causing LFC == LCL in this case. |
Found an observed profile that produces a
ValueError
. The reproducerResults with
The text was updated successfully, but these errors were encountered: