![]() |
libTheSky
Routines to compute sky positions of Sun, Moon, planets and more
|
Procedures for asteroids. More...
Functions/Subroutines | |
| subroutine | asteroid_elements (tjm, as, hcr, om1, nu, cosi, sini, coso, sino) |
| Calculate orbital elements for asteroids. | |
| subroutine | asteroid_lbr (t, as, l, b, r) |
| Calculate heliocentric ecliptical coordinates l,b,r for asteroid as at time t (Julian Millennia after 2000.0 in DT) | |
| subroutine | asteroid_eq (t, as, l0, b0, r0, ra, dec, delta) |
| Calculate geocentric(?) equatorial coordinates ra, dec, delta for asteroid as at time t (Jul. Millennia DT after 2000) | |
| real(double) function | asteroid_magn (as, delta, r, pa) |
| Calculate asteroid magnitude for asteroid AS. | |
| subroutine | kepler (ecc, mea, eca) |
| Solve Kepler's equation. | |
Procedures for asteroids.
| subroutine thesky_asteroids::asteroid_elements | ( | real(double), intent(in) | tjm, |
| integer, intent(in) | as, | ||
| real(double), intent(out) | hcr, | ||
| real(double), intent(out) | om1, | ||
| real(double), intent(out) | nu, | ||
| real(double), intent(out) | cosi, | ||
| real(double), intent(out) | sini, | ||
| real(double), intent(out) | coso, | ||
| real(double), intent(out) | sino ) |
Calculate orbital elements for asteroids.
| tjm | Dynamical time in Julian Millennia after 2000.0 |
| as | Asteroid ID |
| hcr | Heliocentric distance (AU) (output) |
| om1 | Argument of perihelion (rad) (output) |
| nu | True anomaly (rad) (output) |
| cosi | cos(i): cosine of inclination (output) |
| sini | sin(i): sine of inclination (output) |
| coso | cos(Om): cosine of longitude of ascending node (output) |
| sino | sin(Om): sine of longitude of ascending node (output) |
Definition at line 50 of file asteroids.f90.
References thesky_planetdata::asterelems, kepler(), and thesky_coordinates::precess_orb().
Referenced by asteroid_eq(), and asteroid_lbr().

| subroutine thesky_asteroids::asteroid_eq | ( | real(double), intent(in) | t, |
| integer, intent(in) | as, | ||
| real(double), intent(in) | l0, | ||
| real(double), intent(in) | b0, | ||
| real(double), intent(in) | r0, | ||
| real(double), intent(out) | ra, | ||
| real(double), intent(out) | dec, | ||
| real(double), intent(out) | delta ) |
Calculate geocentric(?) equatorial coordinates ra, dec, delta for asteroid as at time t (Jul. Millennia DT after 2000)
| t | Dynamical time in Julian Millennia after 2000.0 |
| as | Asteroid ID |
| l0 | Heliocentric longitude of Earth |
| b0 | Heliocentric latitude of Earth |
| r0 | Heliocentric distance of Earth |
| ra | Geocentric right ascension (rad) (output) |
| dec | Geocentric declination (rad) (output) |
| delta | Geocentric distance (AU) (output) |
Definition at line 164 of file asteroids.f90.
References asteroid_elements(), and thesky_coordinates::calcsunxyz().

| subroutine thesky_asteroids::asteroid_lbr | ( | real(double), intent(in) | t, |
| integer, intent(in) | as, | ||
| real(double), intent(out) | l, | ||
| real(double), intent(out) | b, | ||
| real(double), intent(out) | r ) |
Calculate heliocentric ecliptical coordinates l,b,r for asteroid as at time t (Julian Millennia after 2000.0 in DT)
| t | Dynamical time in Julian Millennia after 2000.0 |
| as | Asteroid ID |
| l | Heliocentric ecliptical longitude (rad) (output) |
| b | Heliocentric ecliptical latitude (rad) (output) |
| r | Heliocentric distance (AU) (output) |
Definition at line 115 of file asteroids.f90.
References asteroid_elements().
Referenced by thesky_planets::planet_position().

| real(double) function thesky_asteroids::asteroid_magn | ( | integer, intent(in) | as, |
| real(double), intent(in) | delta, | ||
| real(double), intent(in) | r, | ||
| real(double), intent(in) | pa ) |
Calculate asteroid magnitude for asteroid AS.
| as | Asteroid number |
| delta | Distance to the Earth |
| r | Distance to the Sun |
| pa | Phase angle |
| asteroid_magn | Magnitude of the asteroid |
Definition at line 243 of file asteroids.f90.
References thesky_planetdata::asterelems, and asteroid_magn().
Referenced by asteroid_magn(), and thesky_planets::planet_position().

| subroutine thesky_asteroids::kepler | ( | real(double), intent(in) | ecc, |
| real(double), intent(in) | mea, | ||
| real(double), intent(out) | eca ) |
Solve Kepler's equation.
| ecc | Eccentricity |
| mea | Mean anomaly |
| eca | Eccentric anomaly (output) |
Solve Kepler's equation for given eccentricity ecc, mean anomaly mea and eccentric anomaly eca
Definition at line 276 of file asteroids.f90.
Referenced by asteroid_elements().