-
Notifications
You must be signed in to change notification settings - Fork 3
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 reasonable conversion from z to pressure #158
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #158 +/- ##
=======================================
Coverage 98.31% 98.32%
=======================================
Files 11 11
Lines 1188 1191 +3
=======================================
+ Hits 1168 1171 +3
Misses 20 20 ☔ View full report in Codecov by Sentry. |
NEWS.md
Outdated
- `Atmos.to_pressure_coordinates` now uses reasonable pressure values when `target_pressure` | ||
is not specified. In particular, the vertical dimension is mapped to pressure levels by | ||
z -> P0 * exp(-z / H_EARTH), where P0 = 10000 and H_EARTH = 7000.0. |
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.
- `Atmos.to_pressure_coordinates` now uses reasonable pressure values when `target_pressure` | |
is not specified. In particular, the vertical dimension is mapped to pressure levels by | |
z -> P0 * exp(-z / H_EARTH), where P0 = 10000 and H_EARTH = 7000.0. | |
- `Atmos.to_pressure_coordinates` now uses reasonable pressure values when `target_pressure` | |
is not specified. In particular, the vertical dimension is mapped to pressure levels by | |
z -> P0 * exp(-z / H_EARTH), where P0 = 10000 and H_EARTH = 7000.0, following a simple | |
hydrostatic model for the atmosphere. |
d62f185
to
7e715d9
Compare
NEWS.md
Outdated
@@ -28,6 +28,10 @@ julia> ClimaAnalysis.global_rmse_pfull(sim_var, obs_var, sim_pressure = pressure | |||
|
|||
## Bug fixes | |||
- `Atmos.to_pressure_coordinates` now works with Unitful units. | |||
- `Atmos.to_pressure_coordinates` now uses reasonable pressure values when `target_pressure` | |||
is not specified. In particular, the vertical dimension is mapped to pressure levels by z | |||
-> P0 * exp(-z / H_EARTH), where P0 = 10000 and H_EARTH = 7000.0 , following a simple |
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.
-> P0 * exp(-z / H_EARTH), where P0 = 10000 and H_EARTH = 7000.0 , following a simple | |
-> P0 * exp(-z / H_EARTH), where P0 = 10000 and H_EARTH = 7000.0, following a simple |
To convert from z to pressure, we use p(z) = P0 * exp(-z / H_EARTH), where P0 = 10000 and H_EARTH = 7000.0.
7e715d9
to
27f4413
Compare
closes #157 - This commit adds a reasonable conversion from z to pressure by finding the target pressure by using the mapping p(z) = P0 * exp(-z / H_EARTH), where P0 = 10000 and H_EARTH = 7000.0.