| [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 |
|---|
| 54 | c---------------------------------------------------------------------- |
|---|
| 55 | |
|---|
| 56 | DO JL = 1 , KDLON |
|---|
| 57 | |
|---|
| 58 | c Total Rayleigh Optical thickness on Earth at 101325 Pa level |
|---|
| 59 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 60 | c WARNING : the CRAY coefficients are only valid for |
|---|
| 61 | c Spectral interval used in Earth model !!! |
|---|
| 62 | c (i.e. 0.25-0.68 micron and 0.68-4.00 micron |
|---|
| 63 | c ---> 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 | |
|---|
| 69 | c Total local Rayleigh Optical thickness on Mars |
|---|
| 70 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 71 | c - PRAYL above is the total Rayleigh Optical thickness |
|---|
| 72 | c at 101325Pa for Earth atmosphere |
|---|
| 73 | c -> Total Rayleigh Optical thickness on Mars |
|---|
| 74 | c = PRAYL*(Psurf/101325)*9.81/g *2.5 |
|---|
| 75 | c (Extinction coeff of CO2 = 2.5 * N2) |
|---|
| 76 | |
|---|
| 77 | c (Comment the following line to get back bugged version before 01/2000) |
|---|
| 78 | c PRAYL(JL) = PRAYL(JL) * PPSOL(JL) * 2.42e-4/g |
|---|
| 79 | |
|---|
| 80 | END DO |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | return |
|---|
| 84 | end |
|---|
| 85 | |
|---|