source: codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/orbite.F

Last change on this file was 227, checked in by milmd, 10 years ago

Last LMDZ version (1315) with OpenMP directives and other stuff

File size: 1.2 KB
Line 
1      subroutine orbite(pls,pdist_star,pdecli)
2     
3      use planete_mod, only: p_elips, e_elips, timeperi, obliquit
4      implicit none
5
6!==================================================================
7!     
8!     Purpose
9!     -------
10!     Distance from star and declination as a function of the stellar
11!     longitude Ls
12!     
13!     Inputs
14!     ------
15!     pls          Ls
16!
17!     Outputs
18!     -------
19!     pdist_star    Distance Star-Planet in UA
20!     pdecli        declinaison ( in radians )
21!
22!=======================================================================
23
24c   Declarations:
25c   -------------
26
27!#include "planete.h"
28#include "comcstfi.h"
29
30c arguments:
31c ----------
32
33      REAL pday,pdist_star,pdecli,pls,i
34
35c-----------------------------------------------------------------------
36
37c Star-Planet Distance
38
39      pdist_star = p_elips/(1.+e_elips*cos(pls+timeperi))
40
41c Stellar declination
42
43c ********************* version before 01/01/2000 *******
44
45      pdecli = asin (sin(pls)*sin(obliquit*pi/180.))
46
47c ********************* version after 01/01/2000 *******
48c     i=obliquit*pi/180.
49c     pdecli=asin(sin(pls)*sin(i)/sqrt(sin(pls)**2+
50c    & cos(pls)**2*cos(i)**2))
51c ******************************************************
52
53      RETURN
54      END
Note: See TracBrowser for help on using the repository browser.