/[lmdze]/trunk/phylmd/ozonecm.f
ViewVC logotype

Contents of /trunk/phylmd/ozonecm.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 316 - (show annotations)
Tue Dec 11 12:59:24 2018 UTC (5 years, 5 months ago) by guez
File size: 3284 byte(s)
Polish.
1 module ozonecm_m
2
3 IMPLICIT NONE
4
5 contains
6
7 function ozonecm(rjour, paprs)
8
9 ! From phylmd/ozonecm.F, version 1.3 2005/06/06 13:16:33
10
11 ! The ozone climatology is based on an analytic formula which fits the
12 ! Krueger and Mintzner (1976) profile, as well as the variations with
13 ! altitude and latitude of the maximum ozone concentrations and the total
14 ! column ozone concentration of Keating and Young (1986). The analytic
15 ! formula have been established by J.-F. Royer (CRNM, Meteo France), who
16 ! also provided us the code.
17
18 ! A. J. Krueger and R. A. Minzner, A Mid-Latitude Ozone Model for the
19 ! 1976 U. S. Standard Atmosphere, J. Geophys. Res., 81, 4477 (1976).
20
21 ! Keating, G. M. and D. F. Young, 1985: Interim reference ozone
22 ! models for the middle atmosphere, Handbook for MAP, vol. 16,
23 ! 205-229.
24
25 use nr_util, only: assert, twopi, deg_to_rad
26
27 use dimensions, only: llm
28 use phyetat0_m, only: rlat
29
30 REAL, INTENT (IN) :: rjour
31
32 REAL, INTENT (IN) :: paprs(:, :) ! (klon, llm + 1)
33 ! pression pour chaque inter-couche, en Pa
34
35 REAL ozonecm(size(paprs, 1), llm) ! (klon, llm)
36 ! "ozonecm(j, k)" is the column-density of ozone in cell "(j, k)", that is
37 ! between interface "k" and interface "k + 1", in kDU.
38
39 ! Local:
40
41 REAL tozon ! equivalent pressure of ozone above interface "k", in Pa
42 INTEGER i, k
43
44 REAL field(llm + 1)
45 ! "field(k)" is the column-density of ozone between interface
46 ! "k" and the top of the atmosphere (interface "llm + 1"), in kDU.
47
48 real, PARAMETER:: ps = 101325.
49 REAL, parameter:: an = 360., zo3q3 = 4E-8
50 real, parameter:: zo3a3 = zo3q3 / ps / 2.
51 REAL, parameter:: dobson_unit = 2.1415E-5 ! in kg m-2
52 REAL gms, slat, slat2, sint, cost, ppm, a
53 REAL asec, bsec, aprim
54
55 !----------------------------------------------------------
56
57 call assert(size(paprs, 2) == llm + 1, "ozonecm")
58
59 sint = sin(twopi * (rjour + 15.) / an)
60 cost = cos(twopi * (rjour + 15.) / an)
61 field(llm + 1) = 0.
62
63 DO i = 1, size(paprs, 1)
64 slat = sin(deg_to_rad * rlat(i))
65 slat2 = slat * slat
66 gms = 0.0531 + sint * (- 0.001595 + 0.009443 * slat) + cost &
67 * (- 0.001344 - 0.00346 * slat) + slat2 * (0.056222 + slat2 &
68 * (- 0.037609 + 0.012248 * sint + 0.00521 * cost + 0.00889 &
69 * slat)) - zo3q3 * ps
70 ppm = 800. - 500. * slat2 - 150. * cost * slat
71 bsec = 2650. + 5000. * slat2
72 a = 4. * bsec**1.5 * ppm**1.5 * (1. + (bsec / ps)**1.5) &
73 / (bsec**1.5 + ppm**1.5)**2
74 asec = max(0., (gms - max(0., (2.666666 * (1.74E-5 - 7.5E-6 * slat2 &
75 - 1.7E-6 * cost * slat) * ppm - a * gms) / (1. - a))) &
76 * (1. + (bsec / ps)**1.5))
77 aprim = gms - asec / (1. + (bsec / ps)**1.5)
78
79 DO k = 1, llm
80 tozon = aprim / (1. + 3. * (ppm / paprs(i, k))**2) &
81 + asec / (1. + (bsec / paprs(i, k))**1.5) &
82 + zo3a3 * paprs(i, k) * paprs(i, k)
83 ! Convert from Pa to kDU:
84 field(k) = tozon / 9.81 / dobson_unit / 1e3
85 END DO
86
87 forall (k = 1: llm) ozonecm(i, k) = field(k) - field(k + 1)
88 END DO
89
90 ozonecm = max(ozonecm, 1e-12)
91
92 END function ozonecm
93
94 end module ozonecm_m

  ViewVC Help
Powered by ViewVC 1.1.21