"EL" calculation: if input contains NaN? #2920
DJ4seasons
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
|
That's a great idea...which is why the current implementation of MetPy/src/metpy/calc/thermo.py Line 875 in c940bc0 😉 Can you share the full (preferrably minimal) arrays of pressure, temperature, and dewpoint that reproduce your problem so that we can see what's actually breaking down and causing the failure? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For the example in https://unidata.github.io/MetPy/v1.4/api/generated/metpy.calc.el.html#metpy.calc.el,
if one elemnet of rh is changed to zero (it happens at least with MERRA2), calculated Td contains a "NaN."
With Td containing a "NaN", el stops working and shows error:
This error looks like because nan was masked in Td, but other inputs still have the same dimension.
I suggest that it would be great if the calculation modules include a function that
Beta Was this translation helpful? Give feedback.
All reactions