source: LMDZ5/branches/IPSLCM5A2.1/libf/phylmd/rrtm/fctast.h @ 3152

Last change on this file since 3152 was 1990, checked in by Laurent Fairhead, 11 years ago

Corrections à la version r1989 pour permettre la compilation avec RRTM
Inclusion de la licence CeCILL_V2 pour RRTM


Changes to revision r1989 to enable RRTM code compilation
RRTM part put under CeCILL_V2 licence

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
File size: 1.2 KB
Line 
1!      -----------------------------------------------------------
2
3! - Astronomical functions
4! you will find the description in the annex 1 of the documentation
5! RRS is the distance Sun-Earth
6! RDS is the declination of the Earth
7! RET is the equation of time
8
9! Orbit of the earth
10
11REAL(KIND=JPRB) :: RTETA,REL,REM,RRS,RLLS,RLLLS,RDS,RET
12REAL(KIND=JPRB) :: PTIME,PTETA
13
14RTETA(PTIME)=PTIME/(RDAY*365.25_JPRB)
15REL(PTETA)=1.7535_JPRB+6.283076_JPRB*PTETA
16REM(PTETA)=6.240075_JPRB+6.283020_JPRB*PTETA
17RRS(PTETA)=REA*(1.0001_JPRB-0.0163_JPRB*SIN(REL(PTETA))&
18          &+0.0037_JPRB*COS(REL(PTETA)))
19! Relative movement Sun/Earth
20RLLS(PTETA)=4.8951_JPRB+6.283076_JPRB*PTETA
21RLLLS(PTETA)=4.8952_JPRB+6.283320_JPRB*PTETA-0.0075_JPRB*SIN(REL(PTETA))&
22         &-0.0326_JPRB*COS(REL(PTETA))-0.0003_JPRB*SIN(2.0_JPRB*REL(PTETA))&
23         &+0.0002_JPRB*COS(2.0_JPRB*REL(PTETA))
24RDS(PTETA)=ASIN(SIN(REPSM)*SIN(RLLLS(PTETA)))
25RET(PTETA)=591.8_JPRB*SIN(2.0_JPRB*RLLS(PTETA))-459.4_JPRB*SIN(REM(PTETA))&
26  &+39.5_JPRB*SIN(REM(PTETA))*COS(2.0_JPRB*RLLS(PTETA))&
27  &-12.7_JPRB*SIN(4._JPRB*RLLS(PTETA))-4.8_JPRB*SIN(2.0_JPRB*REM(PTETA))
28!    -------------------------------------------------------------
29
Note: See TracBrowser for help on using the repository browser.