1 | SUBROUTINE orbitetriton(pls,pzday,pdist_sol,pdecli) |
---|
2 | |
---|
3 | use planete_mod, only: p_elips, e_elips, timeperi, obliquit |
---|
4 | use comcstfi_mod, only: pi |
---|
5 | use time_phylmdz_mod, only: daysec |
---|
6 | IMPLICIT NONE |
---|
7 | |
---|
8 | c======================================================================= |
---|
9 | c |
---|
10 | c Objet: |
---|
11 | c ------ |
---|
12 | c |
---|
13 | c Distance from sun and declination as a function of the solar |
---|
14 | c longitude Ls and pday |
---|
15 | c |
---|
16 | c Input: |
---|
17 | c ------ |
---|
18 | c pls Ls |
---|
19 | c pzday |
---|
20 | c |
---|
21 | c Output: |
---|
22 | c ------- |
---|
23 | c pdist_sol Distance Sun-Planet in UA |
---|
24 | c pdecli declinaison ( en radians ) |
---|
25 | c |
---|
26 | c======================================================================= |
---|
27 | c Declarations: |
---|
28 | c ------------- |
---|
29 | |
---|
30 | c arguments: |
---|
31 | c ---------- |
---|
32 | |
---|
33 | REAL pzday,pdist_sol,pdecli,pls |
---|
34 | |
---|
35 | c local variables: |
---|
36 | c---------------- |
---|
37 | REAL AA,BB,CC |
---|
38 | REAL zanneedebut,zan,zalpha0,zalpha1,zbeta0,zbeta1,zint |
---|
39 | REAL zanneereference |
---|
40 | |
---|
41 | c-------------------------------------------------------------------- |
---|
42 | c Initialisations |
---|
43 | |
---|
44 | AA=0.429870 |
---|
45 | BB=0.370543 |
---|
46 | CC=0.0225091 |
---|
47 | zalpha0 = 61.52577*pi/180. |
---|
48 | zalpha1 = 0.038142 |
---|
49 | zbeta0 = -100.79473*pi/180. |
---|
50 | zbeta1 = 0.009131 |
---|
51 | zanneedebut = 0. |
---|
52 | zanneereference = 0. |
---|
53 | |
---|
54 | c Distance Sun-Planet |
---|
55 | |
---|
56 | pdist_sol=p_elips/(1.+e_elips*cos(pls+timeperi)) |
---|
57 | |
---|
58 | c Solar declination |
---|
59 | |
---|
60 | zan = zanneedebut+(pzday*daysec/31557595.)-zanneereference |
---|
61 | zint = AA * cos(zalpha0 - zalpha1 * zan) |
---|
62 | zint = zint + BB*sin(zalpha0-zbeta0+(zbeta1-zalpha1)*zan) |
---|
63 | zint = zint + CC*sin(zalpha0+zbeta0-(zalpha1+zbeta1)*zan) |
---|
64 | pdecli = -asin (zint) |
---|
65 | |
---|
66 | RETURN |
---|
67 | END |
---|