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 units check for to_pressure_coordinates #185

Open
ph-kev opened this issue Dec 11, 2024 · 1 comment
Open

Add units check for to_pressure_coordinates #185

ph-kev opened this issue Dec 11, 2024 · 1 comment

Comments

@ph-kev
Copy link
Member

ph-kev commented Dec 11, 2024

When converting to pressure coordinates without specifying a target pressure, the mapping is done by Plvl(z) = P0 * exp(-z / H_EARTH), where H_EARTH = 7000.0 and P0 = 1e5. The units should be checked, so that the conversion makes sense. For example, if it is kPa instead of Pa.

@ph-kev
Copy link
Member Author

ph-kev commented Jan 24, 2025

This is harder than I thought because you may write "Pa" or "kg m-1 s-2" for the units of pressure and both are equivalent.

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

No branches or pull requests

1 participant