source: trunk/LMDZ.MARS/libf/phymars/orbite.F @ 1242

Last change on this file since 1242 was 1233, checked in by aslmd, 11 years ago

LMDZ.MARS. Filling geom arrays is now out of phys_var_state_init. Done through a merged function ini_fillgeom within the comgeomfi_h module. Cosmetic changes. New interface with the mesoscale model: lesser amount of dirty MESOSCALE includes.

File size: 1.3 KB
Line 
1      SUBROUTINE orbite(pls,pdist_sol,pdecli)
2      use planete_h
3      USE comcstfi_h
4      IMPLICIT NONE
5
6c=======================================================================
7c
8c   Objet:
9c   ------
10c
11c   Distance from sun and declimation as a function of the solar
12c   longitude Ls
13c
14c   Interface:
15c   ----------
16c
17c
18c
19c   Arguments:
20c   ----------
21c
22c   Input:
23c   ------
24c   pls          Ls
25c
26c   Output:
27c   -------
28c   pdist_sol     Distance Sun-Planet in UA
29c   pdecli        declinaison ( en radians )
30c
31c=======================================================================
32c-----------------------------------------------------------------------
33c   Declarations:
34c   -------------
35
36c arguments:
37c ----------
38
39      REAL pdist_sol,pdecli,pls,i
40
41c-----------------------------------------------------------------------
42
43c Distance Sun-Planet
44
45      pdist_sol=p_elips/(1.+e_elips*cos(pls+timeperi))
46
47c Solar declination
48
49c ********************* version before 01/01/2000 *******
50
51      pdecli= asin (sin(pls)*sin(obliquit*pi/180.))
52
53c ********************* version after 01/01/2000 *******
54c     i=obliquit*pi/180.
55c     pdecli=asin(sin(pls)*sin(i)/sqrt(sin(pls)**2+
56c    & cos(pls)**2*cos(i)**2))
57c ******************************************************
58
59
60
61      RETURN
62      END
Note: See TracBrowser for help on using the repository browser.