NCAR / icar

The Intermediate Complexity Atmospheric Research model (ICAR)
MIT License
72 stars 53 forks source link

update pressure_interpolation to find the best vertical level #103

Closed gutmann closed 2 years ago

gutmann commented 2 years ago

TYPE: bug fix

KEYWORDS: pressure, vertical interpolation, forcing

SOURCE: Ethan Gutmann (NCAR)

DESCRIPTION OF CHANGES: Updated the way ICAR computes pressure on the internal grid. Previously, ICAR was selecting the nth forcing level for the nth ICAR level, then using the hydrostatic eqn to adjust pressure for the actual ICAR grid elevation. This was problematic when the forcing data had a very different number of levels. ICAR now searches for the closest level to read pressure from, and adjusts from that level based on the local temperature and humidity. This has greatly improved the correspondance between ICAR pressure, temperature, relative humidity, and the original GCM p,t,rh