1 | SUBROUTINE swrayleigh(kdlon,knu,ppsol,prmu,prayl) |
---|
2 | |
---|
3 | IMPLICIT NONE |
---|
4 | c======================================================================= |
---|
5 | c subject: |
---|
6 | c -------- |
---|
7 | c Computing total rayleigh scat atmospheric optical depth |
---|
8 | c |
---|
9 | c author: F.Forget |
---|
10 | c ------ |
---|
11 | c |
---|
12 | c input: |
---|
13 | c ----- |
---|
14 | c kdlon Number of gridpoint of horizontal grid |
---|
15 | c knu : Solar band # (1 or 2) |
---|
16 | c ppsol surface pressure (Pa) |
---|
17 | c prmu cos of solar zenith angle (=1 when sun at zenith) |
---|
18 | c (CORRECTED for high zenith angle (atmosphere), unlike mu0) |
---|
19 | c |
---|
20 | c output: |
---|
21 | c ------- |
---|
22 | c prayl column optical depth in each model column |
---|
23 | c |
---|
24 | c======================================================================= |
---|
25 | #include "comcstfi.h" |
---|
26 | |
---|
27 | c----------------------------------------------------------------------- |
---|
28 | c |
---|
29 | c Declarations : |
---|
30 | c -------------- |
---|
31 | c |
---|
32 | c Input/Output |
---|
33 | c ------------ |
---|
34 | INTEGER kdlon, knu |
---|
35 | |
---|
36 | real ppsol(kdlon),prmu(kdlon),prayl(kdlon) |
---|
37 | c |
---|
38 | c Local variables : |
---|
39 | c ----------------- |
---|
40 | integer JL, K |
---|
41 | c |
---|
42 | c local saved variables |
---|
43 | c --------------------- |
---|
44 | c rayleigh scattering coefficients (from Morcrete et al.EARTH model !) |
---|
45 | real cray(2,6) |
---|
46 | |
---|
47 | DATA (CRAY(1,K),K=1,6) / |
---|
48 | S .428937E-01, .890743E+00,-.288555E+01, |
---|
49 | S .522744E+01,-.469173E+01, .161645E+01/ |
---|
50 | |
---|
51 | DATA (CRAY(2,K),K=1,6) / |
---|
52 | S .697200E-02, .173297E-01,-.850903E-01, |
---|
53 | S .248261E+00,-.302031E+00, .129662E+00/ |
---|
54 | save cray |
---|
55 | c---------------------------------------------------------------------- |
---|
56 | |
---|
57 | DO JL = 1 , KDLON |
---|
58 | |
---|
59 | c Total Rayleigh Optical thickness on Earth at 101325 Pa level |
---|
60 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
61 | c WARNING : the CRAY coefficients are only valid for |
---|
62 | c Spectral interval used in Earth model !!! |
---|
63 | c (i.e. 0.25-0.68 micron and 0.68-4.00 micron |
---|
64 | c ---> should be modified for Mars model !!! |
---|
65 | |
---|
66 | PRAYL(JL) = CRAY(KNU,1) + PRMU(JL) * (CRAY(KNU,2) + PRMU(JL) |
---|
67 | S * (CRAY(KNU,3) + PRMU(JL) * (CRAY(KNU,4) + PRMU(JL) |
---|
68 | S * (CRAY(KNU,5) + PRMU(JL) * CRAY(KNU,6) )))) |
---|
69 | |
---|
70 | c Total local Rayleigh Optical thickness on Mars |
---|
71 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
72 | c - PRAYL above is the total Rayleigh Optical thickness |
---|
73 | c at 101325Pa for Earth atmosphere |
---|
74 | c -> Total Rayleigh Optical thickness on Mars |
---|
75 | c = PRAYL*(Psurf/101325)*9.81/g *2.5 |
---|
76 | c (Extinction coeff of CO2 = 2.5 * N2) |
---|
77 | |
---|
78 | c (Comment the following line to get back bugged version before 01/2000) |
---|
79 | c PRAYL(JL) = PRAYL(JL) * PPSOL(JL) * 2.42e-4/g |
---|
80 | |
---|
81 | END DO |
---|
82 | |
---|
83 | |
---|
84 | return |
---|
85 | end |
---|
86 | |
---|