- Timestamp:
- Dec 9, 2017, 6:49:01 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/IPSLCM6.0.14/libf/phylmd/stratosphere_mask.F90
r2992 r3120 8 8 ! determination of tropopause height and temperature from gridded temperature data 9 9 ! 10 ! reference: Reichler, T., M. Dameris, and R. Sausen ( 2003):10 ! reference: Reichler, T., M. Dameris, and R. Sausen (GRL, 10.1029/2003GL018240, 2003) 11 11 ! modified: 6/28/06 tjr 12 12 ! adapted to LMDZ by C. Kleinschmitt (2016-02-15) 13 ! 14 ! input: temp(nlon,nlat,nlev) 3D-temperature field 15 ! ps(nlon,nlat) 2D-surface pressure field 16 ! zs(nlon,nlat) 2D-surface height 17 ! nlon grid points in x 18 ! nlat grid points in y 19 ! pfull(nlon,nlat,nlev) full pressure levels in Pa 20 ! plimu upper limit for tropopause pressure 21 ! pliml lower limit for tropopause pressure 22 ! gamma tropopause criterion, e.g. -0.002 K/m 23 ! 24 ! output: p_tropopause(klon) tropopause pressure in Pa with missing values 25 ! t_tropopause(klon) tropopause temperature in K with missing values 26 ! z_tropopause(klon) tropopause height in m with missing values 27 ! stratomask stratospheric mask withtout missing values 28 ! ifil # of undetermined values 13 ! committed to LMDz by O. Boucher (2016) with a mistake 14 ! mistake corrected by O. Boucher (2017-12-11) 15 ! 16 ! input: temp(nlon,nlat,nlev) 3D-temperature field 17 ! ps(nlon,nlat) 2D-surface pressure field 18 ! zs(nlon,nlat) 2D-surface height 19 ! nlon grid points in x 20 ! nlat grid points in y 21 ! pfull(nlon,nlat,nlev) full pressure levels in Pa 22 ! plimu upper limit for tropopause pressure 23 ! pliml lower limit for tropopause pressure 24 ! gamma tropopause criterion, e.g. -0.002 K/m 25 ! 26 ! output: p_tropopause(klon) tropopause pressure in Pa with missing values 27 ! t_tropopause(klon) tropopause temperature in K with missing values 28 ! z_tropopause(klon) tropopause height in m with missing values 29 ! stratomask stratospheric mask withtout missing values 30 ! ifil # of undetermined values 29 31 ! 30 32 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 104 106 subroutine twmo(missing_val, level, t, p, ps, zs, plimu, pliml, gamma, ptrp, ttrp, ztrp) 105 107 108 ! reference: Reichler, T., M. Dameris, and R. Sausen (GRL, 10.1029/2003GL018240, 2003) 109 106 110 implicit none 107 111 … … 128 132 ztrp=missing_val 129 133 130 faktor = -RG/R 134 faktor = -RG/RD 131 135 132 136 do j=level,2,-1 … … 218 222 TDLNP = TDLNP + TM*DLNP 219 223 220 ZTRP = ZS + TDLNP*R /RG221 222 if (ZTRP .lt. 0) then223 print*,ZTRP224 print*,PS225 print*,P226 print*,T227 print*,ZS228 stop229 endif224 ZTRP = ZS + TDLNP*RD/RG 225 226 !!if (ZTRP .lt. 0) then 227 !! print*,ZTRP 228 !! print*,PS 229 !! print*,P 230 !! print*,T 231 !! print*,ZS 232 !! stop 233 !!endif 230 234 231 235 return
Note: See TracChangeset
for help on using the changeset viewer.