You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have any code, but a thought occurred to me, so I'm opening this issue to discuss optimizations to the most unstable parcel finding.
I think one way to optimize finding the most unstable parcel is to find all the local maxima in theta-e in the search depth and only check the CAPE for those parcels. The lower bound is considered a local maximum if dthetae/dz is negative at the lower bound, and the upper bound is considered a local maxima if dthetae/dz is positive at the upper bound. (In most cases, I think if dthetae/dz at the upper bound is positive, that parcel has no CAPE. But I can conceive a scenario where that parcel does have CAPE, so it should be checked.)
In the absolute worst case, alternating data points in the search depth are local maxima, so you'd have to search half of the parcels. But that's better than all the parcels in the search depth. And the vast majority of cases, you'd probably only have to check a couple parcels at most.
The underlying assumption here is that a local maximum in theta-e is also a local maximum in CAPE, which seems to be the assumption behind the "max-theta-e" method. So I think that's a reasonable assumption, and makes physical sense to me. The only thing I can think of that could violate that is the CM1 lifter's accounting for ice in the parcel lifting. I could potentially see some weirdness for parcels that originate around where it starts to account for ice. But that would be an extreme edge case, and I'm having a hard time coming up with a physically realistic scenario where that would break it.
The text was updated successfully, but these errors were encountered:
I'm definitely in favor of a more efficient search algorithm than brute-force lifting every single parcel to find the parcel with maximum CAPE, especially as we move towards raw resolution radiosonde data. I do agree with your assessment that there are some curiosities to beware, especially when dealing with the CM1 parcel lifter.
The local maxima seems like a reasonable approach, though sometimes there can be noise with dewpoint sensors that could result in many local maxima. It would still be better than the brute-force, approach though.
My current thinking is this:
I don't really have much of a conceptual model for the scenarios in which the most unstable parcel is not the parcel with the max Theta-E. I think before designing a more efficient search algorithm blindly, maybe we should run on a whole bunch of test soundings (the 200k TORDAT soundings for model data, and the 1s radiosonde archive) to flag profiles where the max Theta-E parcel has less cape than the brute force mechanism. Then maybe it'll help shed some light on what's actually causing the difference. Perhaps it could be as simple as check the surface parcel, and then check the max Theta-E parcel, +/- some vertical delta?
I don't have any code, but a thought occurred to me, so I'm opening this issue to discuss optimizations to the most unstable parcel finding.
I think one way to optimize finding the most unstable parcel is to find all the local maxima in theta-e in the search depth and only check the CAPE for those parcels. The lower bound is considered a local maximum if dthetae/dz is negative at the lower bound, and the upper bound is considered a local maxima if dthetae/dz is positive at the upper bound. (In most cases, I think if dthetae/dz at the upper bound is positive, that parcel has no CAPE. But I can conceive a scenario where that parcel does have CAPE, so it should be checked.)
In the absolute worst case, alternating data points in the search depth are local maxima, so you'd have to search half of the parcels. But that's better than all the parcels in the search depth. And the vast majority of cases, you'd probably only have to check a couple parcels at most.
The underlying assumption here is that a local maximum in theta-e is also a local maximum in CAPE, which seems to be the assumption behind the "max-theta-e" method. So I think that's a reasonable assumption, and makes physical sense to me. The only thing I can think of that could violate that is the CM1 lifter's accounting for ice in the parcel lifting. I could potentially see some weirdness for parcels that originate around where it starts to account for ice. But that would be an extreme edge case, and I'm having a hard time coming up with a physically realistic scenario where that would break it.
The text was updated successfully, but these errors were encountered: