![]() |
libTheSky
Routines to compute sky positions of Sun, Moon, planets and more
|
Procedures for the Moon. More...
Functions/Subroutines | |
| subroutine | moonphys (jd, libl, libb, pa, blpa, sunl, sunb, jdeqnx) |
| Get physical data for the Moon: librations, position angles, selenographic position of the Sun. | |
| real(double) function | moonphase (k0) |
| Calculates Julian Day of phase of the Moon for the desired phase k0. | |
| real(double) function | moon_age (jd) |
| Compute the age of the Moon for a given JD. | |
| subroutine | moon_phase_next (jd, phase, jdnext) |
| Compute the next lunar phase after a given JD. | |
Procedures for the Moon.
| real(double) function thesky_moonroutines::moon_age | ( | real(double), intent(in) | jd | ) |
Compute the age of the Moon for a given JD.
| jd | Julian day for computation |
| moon_age | Age of the Moon (since last New Moon) in days |
Definition at line 376 of file moon_routines.f90.
References moon_age(), and moonphase().
Referenced by moon_age().

| subroutine thesky_moonroutines::moon_phase_next | ( | real(double), intent(in) | jd, |
| integer, intent(out) | phase, | ||
| real(double), intent(out) | jdnext ) |
Compute the next lunar phase after a given JD.
| JD | Julian day for computation |
| phase | Next lunar phase: 0-NM ... 3-LQ (output) |
| JDnext | Julian day of next lunar phase (output) |
Definition at line 409 of file moon_routines.f90.
References moonphase(), and thesky_datetime::printdate1().

| real(double) function thesky_moonroutines::moonphase | ( | real(double), intent(in) | k0 | ) |
Calculates Julian Day of phase of the Moon for the desired phase k0.
| k0 | Desired phase: x.00: New Moon - k = x.75: Last Quarter. k=0 ~ 2000.0 |
| moonphase | JD of the desired lunar phase |
Definition at line 211 of file moon_routines.f90.
References thesky_local::deltat, and moonphase().
Referenced by moon_age(), moon_phase_next(), and moonphase().

| subroutine thesky_moonroutines::moonphys | ( | real(double), intent(in) | jd, |
| real(double), intent(out) | libl, | ||
| real(double), intent(out) | libb, | ||
| real(double), intent(out) | pa, | ||
| real(double), intent(out) | blpa, | ||
| real(double), intent(out) | sunl, | ||
| real(double), intent(out) | sunb, | ||
| real(double), intent(in), optional | jdeqnx ) |
Get physical data for the Moon: librations, position angles, selenographic position of the Sun.
| jd | Julian day for computation (epoch) |
| libl | Libration (physical+optical) in longitude (output) |
| libb | Libration (physical+optical) in latitude (output) |
| pa | Position angle of the Moon's axis/north pole w.r.t. an equatorial grid (output) |
| blpa | Position angle of the Moon's bright limb w.r.t. an equatorial grid (output) |
| sunl | Selenographic longitude of the Sun (output) |
| sunb | Selenographic latitude of the Sun (output) |
| jdEqnx | Julian day for equinox (optional; default: jd = JD of epoch) |
Definition at line 51 of file moon_routines.f90.
References thesky_planetdata::nplanpos, thesky_planets::planet_position(), thesky_planetdata::planpos, thesky_coordinates::precess_ecl(), and thesky_coordinates::precess_eq().
