-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add specific_humidity_from_dewpoint
#1027
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good! Need for ps
instead of tas
does indeed lower the usefulness of this method, but we never know.
""" | ||
|
||
ε = 0.6219569 # weight of water vs dry air [] | ||
e = saturation_vapor_pressure(tas=tdps, method=method) # vapor pressure [Pa] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason the ice_thresh
arg of e_sat
is not implemented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I read, this is only useful below -40C, so it seemed overkill here. But I may have misunderstood.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh! I didn't know that. I added it in the others for completeness and thought it could be here too for symmetry...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sympathetic to the symmetry argument, but I didn't want to add a parameter I was not sure would ever be used. I don't have a strong opinion, and we don't even have a real use case now that "ps" is required...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't comment on the calculation method itself but other than that, looks good!
Co-authored-by: Pascal Bourgault <bourgault.pascal@ouranos.ca>
Pull Request Checklist:
number
) and pull request (:pull:number
) has been added.bumpversion patch
has been called on this branch.zenodo.json
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
No
Other information:
long_name
is capitalized for humidity indicators (long_name="Specific Humidity"). Is that a typo ?invalid_values
stuff cause I wasn't sure if it applied here.