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

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

Generic GCM

  • Massive update to version 0.7

EM+RW

File size: 1.2 KB
RevLine 
[253]1      subroutine orbite(pls,pdist_star,pdecli)
2      implicit none
[135]3
[253]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
[135]22c   Declarations:
23c   -------------
24
25#include "planete.h"
26#include "comcstfi.h"
27
28c arguments:
29c ----------
30
[253]31      REAL pday,pdist_star,pdecli,pls,i
[135]32
33c-----------------------------------------------------------------------
34
[253]35c Star-Planet Distance
[135]36
[253]37      pdist_star = p_elips/(1.+e_elips*cos(pls+timeperi))
[135]38
[253]39c Stellar declination
[135]40
41c ********************* version before 01/01/2000 *******
42
[253]43      pdecli = asin (sin(pls)*sin(obliquit*pi/180.))
[135]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.