Using air pressure as the vertical coordinate in ParaView #4
huiwanpnnl
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
|
Absolutely, we can do that. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In atmospheric science, it is useful and common to examine fields on isobaric surfaces (i.e., on a surface in the atmosphere where the air pressure is a constant value).
EAM uses a pressure-based terrain-following coordinate for the vertical discretization. The grid layers are not isobaric near the Earth's surface (although they do transition to isobaric higher up).
In EAM's output files, we have the 1D coordinate variables
levandilev, which are sometimes referred to as the nominal pressure - they are the air pressure at layer midpoints and layer interfaces assuming the surface press (PS) is 1000 hPa. But because the actualPScan deviate substantially from 1000 hPa, especially over the high mountains, the actual air pressure in specific grid cells can deviate substantially fromlevorilev. In order to visualize EAM output on isobaric surfaces without having to vertically interpolate the output beforehand (i.e., before loading the data files in ParaView), Phil Rasch suggested adding the option of using the actual pressure field for the vertical coordinate inside ParaView.I have checked some EAM output files and the source code and realized the code does not write the pressure field to output. I think the reason is that pressure can be calculated using
PSand the coordinate parametershyam,hybm,hyai,hybi. The formulas are given below:For layer interfaces,
For layer midpoints,
I've checked our sample output
PD_1800_ad4fd8_ANN_climo_SE.ncshared at https://compy-dtn.pnl.gov/wanh895/ParaView_EAM/cubed_sphere/model_output_samples/ and confirmed that it has all the needed variablesPS,hyam,hybm,hyai,hybiand the constantPS.Can we implement the pressure-coordinate option using the pressure values calculated on the fly? (Tagging @berkgeveci, @cjh1, @bnmajor)
Beta Was this translation helpful? Give feedback.
All reactions