|
Last change
on this file since 4086 was
3902,
checked in by emillour, 6 months ago
|
|
Mars PCM:
More code tidying: turn geticecover, interp_line, orbite, simpleclouds, tabfi
and tcondco2 into modules.
EM
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | MODULE orbite_mod |
|---|
| 2 | |
|---|
| 3 | IMPLICIT NONE |
|---|
| 4 | |
|---|
| 5 | CONTAINS |
|---|
| 6 | |
|---|
| 7 | SUBROUTINE orbite(pls,pdist_sol,pdecli) |
|---|
| 8 | USE planete_h, ONLY: e_elips, p_elips, obliquit, lsperi |
|---|
| 9 | USE comcstfi_h, ONLY: pi |
|---|
| 10 | IMPLICIT NONE |
|---|
| 11 | |
|---|
| 12 | c======================================================================= |
|---|
| 13 | c |
|---|
| 14 | c Compute distance to Sun and declination as a function of the solar |
|---|
| 15 | c longitude Ls |
|---|
| 16 | c |
|---|
| 17 | c Arguments: |
|---|
| 18 | c ---------- |
|---|
| 19 | c |
|---|
| 20 | c Input: |
|---|
| 21 | c ------ |
|---|
| 22 | c pls Ls (radians) |
|---|
| 23 | c |
|---|
| 24 | c Output: |
|---|
| 25 | c ------- |
|---|
| 26 | c pdist_sol Distance Sun-Planet in UA |
|---|
| 27 | c pdecli Declinaison ( in radians ) |
|---|
| 28 | c |
|---|
| 29 | c======================================================================= |
|---|
| 30 | |
|---|
| 31 | c arguments: |
|---|
| 32 | c ---------- |
|---|
| 33 | |
|---|
| 34 | REAL,INTENT(IN) :: pls |
|---|
| 35 | REAL,INTENT(OUT) :: pdist_sol, pdecli |
|---|
| 36 | |
|---|
| 37 | c----------------------------------------------------------------------- |
|---|
| 38 | |
|---|
| 39 | c Distance Sun-Planet |
|---|
| 40 | pdist_sol = p_elips/(1.+e_elips*cos(pls-lsperi)) |
|---|
| 41 | |
|---|
| 42 | c Solar declination |
|---|
| 43 | pdecli = asin(sin(pls)*sin(obliquit*pi/180.)) |
|---|
| 44 | |
|---|
| 45 | END SUBROUTINE orbite |
|---|
| 46 | |
|---|
| 47 | END MODULE orbite_mod |
|---|
Note: See
TracBrowser
for help on using the repository browser.