46 KA, KS, KE, IA, IS, IE, JA, JS, JE, &
53 integer,
intent(in) :: KA, KS, KE
54 integer,
intent(in) :: IA, IS, IE
55 integer,
intent(in) :: JA, JS, JE
57 real(RP),
intent(in) :: DENS (ka,ia,ja)
58 real(RP),
intent(in) :: PRES (ka,ia,ja)
59 real(RP),
intent(in) :: CZ (ka,ia,ja)
60 real(RP),
intent(in) :: Zsfc (ia,ja)
61 real(RP),
intent(in) :: Z1 (ia,ja)
62 real(RP),
intent(out) :: SFC_DENS(ia,ja)
63 real(RP),
intent(out) :: SFC_PRES(ia,ja)
82 sfc_pres(i,j) = pres(ks,i,j) &
83 + 0.5_rp * ( sfc_dens(i,j) + dens(ks,i,j) ) * grav * z1(i,j)
94 real(RP),
intent(in) :: p
95 real(RP),
intent(in) :: x(3), y(3)
99 q = ( (p-x(2)) * (p-x(3)) ) / ( (x(1)-x(2)) * (x(1)-x(3)) ) * y(1) &
100 + ( (p-x(1)) * (p-x(3)) ) / ( (x(2)-x(1)) * (x(2)-x(3)) ) * y(2) &
101 + ( (p-x(1)) * (p-x(2)) ) / ( (x(3)-x(1)) * (x(3)-x(2)) ) * y(3)
subroutine, public atmos_bottom_estimate(KA, KS, KE, IA, IS, IE, JA, JS, JE, DENS, PRES, CZ, Zsfc, Z1, SFC_DENS, SFC_PRES)
Calc bottom boundary of atmosphere (just above surface)
module atmosphere / bottom boundary extrapolation
real(rp), public const_grav
standard acceleration of gravity [m/s2]
real(rp) function lagrange_interp(p, x, y)