Skip to content
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 support for providing relative humidity rather than specific humidity as an input file #59

Merged
merged 15 commits into from
Apr 30, 2021

Conversation

rmholmes
Copy link
Contributor

This approach uses a simpler formula for converting RH to QH than used by the model internals. This should not be an issue provided the same formula is used for the pre-processing when the JRA55-do provided QH is converted to RH.

@russfiedler
Copy link
Contributor

I think it might be a good idea to use some predefined constants (from ice_constants.F90, say) rather than the magic numbers.

100.0 => c11
273.51 => Tfresh

and define

d622 = rdgas/rvgas
d378 = 1.-d622

Also add a quick reference for the formula.

@rmholmes
Copy link
Contributor Author

How's this?

I'll test it again before it should be merged.

@russfiedler
Copy link
Contributor

Looks good. Happy to merge if your tests look ok.

@rmholmes
Copy link
Contributor Author

Ok the tests check-out, giving an identical figure to that shown at #57 (comment)

I think it can be merged.

@russfiedler russfiedler merged commit 2572851 into COSIMA:master Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants