source: trunk/LMDZ.GENERIC/libf/phystd/orbite.F @ 470

Last change on this file since 470 was 253, checked in by emillour, 13 years ago

Generic GCM

  • Massive update to version 0.7

EM+RW

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