![]() |
libTheSky
Routines to compute sky positions of Sun, Moon, planets and more
|
Low-accuracy procedures for the Sun. More...
Functions/Subroutines | |
| subroutine | sunpos_la (jd, calc, lat, lon) |
| Low-accuracy solar coordinates. | |
| subroutine | sunpos_vla (doy, hour, lon, lat, tz, ha, dec, az, alt) |
| Compute the position of the Sun - very low accuracy routine (~0.18 degrees in az/alt) | |
| real(double) function | sunmagn (dist) |
| Calculate Sun magnitude. | |
Low-accuracy procedures for the Sun.
| real(double) function thesky_sun::sunmagn | ( | real(double), intent(in) | dist | ) |
Calculate Sun magnitude.
| dist | Distance (AU) |
| sunmagn | Sun magnitude |
Definition at line 282 of file sun.f90.
References sunmagn().
Referenced by thesky_planets::planet_position(), sunmagn(), and sunpos_la().

| subroutine thesky_sun::sunpos_la | ( | real(double), intent(in) | jd, |
| integer, intent(in) | calc, | ||
| real(double), intent(in), optional | lat, | ||
| real(double), intent(in), optional | lon ) |
Low-accuracy solar coordinates.
| jd | Julian Day of computation |
| calc | Calculate: 1: l,b,r, 2: & ra,dec, 3: & gmst,agst, 4: & az,alt, 5: & mag + p.a., 99: & topo alt + refraction |
| lat | Latitude of the observer (rad, optional) |
| lon | Longitude of the observer (rad, optional) |
Definition at line 57 of file sun.f90.
References thesky_datetime::calc_deltat(), thesky_datetime::calc_gmst(), thesky_coordinates::eq2horiz(), thesky_local::lat0, thesky_local::lon0, thesky_planetdata::planpos, thesky_coordinates::refract(), and sunmagn().
Referenced by thesky_moon::moonpos_la(), and thesky_planets::planet_position_la().

| subroutine thesky_sun::sunpos_vla | ( | integer, intent(in) | doy, |
| real(double), intent(in) | hour, | ||
| real(double), intent(in) | lon, | ||
| real(double), intent(in) | lat, | ||
| real(double), intent(in) | tz, | ||
| real(double), intent(out) | ha, | ||
| real(double), intent(out) | dec, | ||
| real(double), intent(out) | az, | ||
| real(double), intent(out) | alt ) |
Compute the position of the Sun - very low accuracy routine (~0.18 degrees in az/alt)
| DoY | Day of year |
| hour | Hour of day |
| lon | Geographic longitunde (radians; >0=east) |
| lat | Geographic latitunde (radians; >0=north) |
| tz | Time zone (hours; >0=east) |
| ha | Hour angle of the Sun (radians) (output) |
| dec | Declination of the Sun (radians; >0=north) (output) |
| az | Azimuth of the Sun (radians; 0=north, pi/2=east) (output) |
| alt | Altitude of the Sun (radians; >0 = up) (output) |