source: trunk/LMDZ.MARS/libf/phymars/swrayleigh.F @ 2083

Last change on this file since 2083 was 1226, checked in by aslmd, 11 years ago

LMDZ.MARS : Replaced comcstfi and planete includes by modules.

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