1 | subroutine orbite(pls,pdist_star,pdecli,pright_ascenc) |
---|
2 | |
---|
3 | use planete_mod, only: p_elips, e_elips, timeperi, obliquit |
---|
4 | implicit none |
---|
5 | !================================================================== |
---|
6 | ! |
---|
7 | ! Purpose |
---|
8 | ! ------- |
---|
9 | ! Distance from star and declination as a function of the stellar |
---|
10 | ! longitude Ls |
---|
11 | ! |
---|
12 | ! Inputs |
---|
13 | ! ------ |
---|
14 | ! pls Ls |
---|
15 | ! |
---|
16 | ! Outputs |
---|
17 | ! ------- |
---|
18 | ! pdist_star Distance Star-Planet in UA |
---|
19 | ! pdecli declinaison ( in radians ) |
---|
20 | ! pright_ascenc right ascension ( in radians ) |
---|
21 | ! |
---|
22 | !======================================================================= |
---|
23 | |
---|
24 | c Declarations: |
---|
25 | c ------------- |
---|
26 | |
---|
27 | #include "comcstfi.h" |
---|
28 | |
---|
29 | c arguments: |
---|
30 | c ---------- |
---|
31 | |
---|
32 | REAL pday,pdist_star,pdecli,pright_ascenc,pls,i |
---|
33 | |
---|
34 | c----------------------------------------------------------------------- |
---|
35 | |
---|
36 | c Star-Planet Distance |
---|
37 | |
---|
38 | pdist_star = p_elips/(1.+e_elips*cos(pls+timeperi)) |
---|
39 | |
---|
40 | c Stellar declination |
---|
41 | |
---|
42 | c ********************* version before 01/01/2000 ******* |
---|
43 | |
---|
44 | pdecli = asin (sin(pls)*sin(obliquit*pi/180.)) |
---|
45 | |
---|
46 | c********************* version after 01/01/2000 ******* |
---|
47 | c i=obliquit*pi/180. |
---|
48 | c pdecli=asin(sin(pls)*sin(i)/sqrt(sin(pls)**2+ |
---|
49 | c & cos(pls)**2*cos(i)**2)) |
---|
50 | c ****************************************************** |
---|
51 | |
---|
52 | c right ascencion |
---|
53 | If((pls.lt.pi/2.d0)) then |
---|
54 | pright_ascenc= atan(tan(pls)*cos(obliquit*pi/180.)) |
---|
55 | else if((pls.gt.pi/2.d0).and.(pls.lt.3.d0*pi/2.d0)) then |
---|
56 | pright_ascenc= pi+atan(tan(pls)*cos(obliquit*pi/180.)) |
---|
57 | else if((pls.gt.3.d0*pi/2.d0)) then |
---|
58 | pright_ascenc= 2.d0*pi+atan(tan(pls)*cos(obliquit*pi/180.)) |
---|
59 | else if (Abs(pls-pi/2.d0).le.1.d-10) then |
---|
60 | pright_ascenc= pi/2.d0 |
---|
61 | else |
---|
62 | pright_ascenc=-pi/2.d0 |
---|
63 | end if |
---|
64 | |
---|
65 | RETURN |
---|
66 | END |
---|