E3SM-Project / scream

Fork of E3SM used to develop exascale global atmosphere model written in C++
https://e3sm-project.github.io/scream/
Other
80 stars 57 forks source link

Create functions to calculate T_atm_int, p_int, z_int, and z_mid #963

Closed PeterCaldwell closed 3 years ago

PeterCaldwell commented 3 years ago

We want to compute T_atm_int, p_int, z_int, and z_mid on the fly every time they're needed rather than saving them as field-managed variables. For T_atm_int, p_int, and one of z_int or z_mid, this will just be done via simple interpolation/extrapolation using the tools already being made available in #954 . Getting z from T and p will additionally require the hypsometric equation.

These functions should be made available in our universal functions directory.

PeterCaldwell commented 3 years ago

Partially addressed by #954

AaronDonahue commented 3 years ago

It looks like we still have p_int as a field managed variable. Is this something we could easily take care of? Can we calculate p_int the same way we calculated T_int? If so it looks like p_int is only used in SHOC and RRTMGP

AaronDonahue commented 3 years ago

closing in favor of #1035