(11C) The Sun's Declination, Altitude, Azimuth - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (11C) The Sun's Declination, Altitude, Azimuth (/thread-11628.html) |
(11C) The Sun's Declination, Altitude, Azimuth - Eddie W. Shore - 10-21-2018 08:30 PM The following program calculates three positions for our Sun in our Solar System: 1. Declination of the Sun (δ = 0° at the Equinoxes) 2. Altitude of the Sun (height of the sun) 3. Azimuth of the Sun (degree from latitude ground-wise north) Formulas Used: Inputs: D = days after the vernal equinox (usually March 20 or March 21) L = latitude given in D.MMSS format (avoid ±90°) T = time before solar noon (12 PM). Example: 9 AM, T= 3. 3 PM, T = -3. Declination: δ = 23.45 * sin(D * 0.9856) Altitude: H = asin(cos L * cos D * cos(15 * T)) + sin L * sin D) Azimuth: A = acos((sin H * sin L - sin D) / (cos L * cos H)) Before running the program, store D in R1, L in R2, and T in R3. Code: 001 42, 21, 13 LBL C Example: Stored Data: R0 = 184 (approximately September 21), R1 = -14° 50' 12" (entered as -14.5012) R2 = 0 (noon) Output: δ ≈ 13.1576° H ≈ 62.0058° A = 180.0000° Link to blog entry: https://edspi31415.blogspot.com/2018/10/hp-11c-and-emulators-suns-approximate.html |