Repository navigation
What parameters should I provide when calculating showalter_index? #2712
|
When I try to calculate showalter_index? I try to input pressure_ 850_ 500 (2 * 151 * 151, fill 151 * 151 grid points with 850hpa and 500hpa respectively), t_ 850_ 500_ (2 * 151 * 151, temperature value at 850hpa and 500hpa on each grid point), dew_ 850_ (1 * 151 * 151, dew point temperature at 850hpa on each grid point) But it got a bug I tried to understand the source code, but failed, sorry to bother you. |
Replies: 1 comment
|
Sorry, this got lost in the pile.
If you have a grid of data, you'll need to iterate manually over the profiles within the grid and pass them one at a time. This is of course not great in Python and will incur a large performance penalty, but that's the only right now. We plan to address this limitation in the medium term with our performance-focused work. |
Sorry, this got lost in the pile.
showalter_index, because it usesparcel_profileto calculate an appropriate parcel profile for you, is only able to operate on a single atmospheric profile at a time. You need to pass in the full profile of the atmosphere (or at least the surface up to 500 hPa).If you have a grid of data, you'll need to iterate manually over the profiles within the grid and pass them one at a time. This is of course not great in Python and will incur a large performance penalty, but that's the only right now. We plan to address this limitation in the medium term with our performance-focused work.