[38] | 1 | SUBROUTINE swrayleigh(kdlon,knu,ppsol,prmu,prayl) |
---|
[1226] | 2 | USE comcstfi_h |
---|
[38] | 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 | |
---|
| 26 | c----------------------------------------------------------------------- |
---|
| 27 | c |
---|
| 28 | c Declarations : |
---|
| 29 | c -------------- |
---|
| 30 | c |
---|
| 31 | c Input/Output |
---|
| 32 | c ------------ |
---|
| 33 | INTEGER kdlon, knu |
---|
| 34 | |
---|
| 35 | real ppsol(kdlon),prmu(kdlon),prayl(kdlon) |
---|
| 36 | c |
---|
| 37 | c Local variables : |
---|
| 38 | c ----------------- |
---|
| 39 | integer JL, K |
---|
| 40 | c |
---|
| 41 | c local saved variables |
---|
| 42 | c --------------------- |
---|
| 43 | c 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 |
---|
[2616] | 54 | |
---|
| 55 | !$OMP THREADPRIVATE(cray) |
---|
| 56 | |
---|
[38] | 57 | c---------------------------------------------------------------------- |
---|
| 58 | |
---|
| 59 | DO JL = 1 , KDLON |
---|
| 60 | |
---|
| 61 | c Total Rayleigh Optical thickness on Earth at 101325 Pa level |
---|
| 62 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 63 | c WARNING : the CRAY coefficients are only valid for |
---|
| 64 | c Spectral interval used in Earth model !!! |
---|
| 65 | c (i.e. 0.25-0.68 micron and 0.68-4.00 micron |
---|
| 66 | c ---> should be modified for Mars model !!! |
---|
| 67 | |
---|
| 68 | PRAYL(JL) = CRAY(KNU,1) + PRMU(JL) * (CRAY(KNU,2) + PRMU(JL) |
---|
| 69 | S * (CRAY(KNU,3) + PRMU(JL) * (CRAY(KNU,4) + PRMU(JL) |
---|
| 70 | S * (CRAY(KNU,5) + PRMU(JL) * CRAY(KNU,6) )))) |
---|
| 71 | |
---|
| 72 | c Total local Rayleigh Optical thickness on Mars |
---|
| 73 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 74 | c - PRAYL above is the total Rayleigh Optical thickness |
---|
| 75 | c at 101325Pa for Earth atmosphere |
---|
| 76 | c -> Total Rayleigh Optical thickness on Mars |
---|
| 77 | c = PRAYL*(Psurf/101325)*9.81/g *2.5 |
---|
| 78 | c (Extinction coeff of CO2 = 2.5 * N2) |
---|
| 79 | |
---|
| 80 | c (Comment the following line to get back bugged version before 01/2000) |
---|
| 81 | c PRAYL(JL) = PRAYL(JL) * PPSOL(JL) * 2.42e-4/g |
---|
| 82 | |
---|
| 83 | END DO |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | return |
---|
| 87 | end |
---|
| 88 | |
---|