We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
metpy.calc.precipitable_water() returns NaN when there are NaN dewpoint values present. Here's a SCSE
metpy.calc.precipitable_water()
NaN
import datetime import pandas as pd from siphon.simplewebservice.iastate import IAStateUpperAir from metpy.calc import precipitable_water from metpy.units import units res = IAStateUpperAir.request_data(datetime.datetime(2018, 1, 23, 0), 'KFAI') pw = precipitable_water(res['dewpoint'].values * units.degC, res['pressure'].values * units('hPa')) print(pw) filtered = res[pd.notnull(res['dewpoint'])] pw = precipitable_water(filtered['dewpoint'].values * units.degC, filtered['pressure'].values * units('hPa')) print(pw)
results in output
nan millimeter 4.003709214463873 millimeter
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
metpy.calc.precipitable_water()
returnsNaN
when there areNaN
dewpoint values present. Here's a SCSEresults in output
The text was updated successfully, but these errors were encountered: