(41) Sunrise, Sunset, and Twilight from HP User Library 00508C - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP-41C Software Library (/forum-11.html) +--- Thread: (41) Sunrise, Sunset, and Twilight from HP User Library 00508C (/thread-10420.html) |
(41) Sunrise, Sunset, and Twilight from HP User Library 00508C - KF6GPE - 04-01-2018 04:36 PM I haven't found this in .raw files anywhere else, so I'm offering it here. This is an adaptation of David B. Wescott's Sunrise, Sunset, Twilight from 1900, published as HP User Library 00508C at hp41 . org. The program requires 45 data registers, and there are a number of constants originally supplied on magnetic cards. I wrote a short program INITSUN that initializes the relevant data registers first (as if you'd loaded the data cards): Code: LBL "INITSUN" To use enter USER mode and: 1. Run INITSUN (loads registers with constants, only do once). 2. Run SUN 3. Optional: Enter Lat (+ N, - S), Lon (+ W, - E) and press B 4. Select precision desired by pressing E 5. Select double precision if latitude > 60 by pressing D 6a. Input date of desired times YYYY.MMDD; for standard times and press A. 6b. Input date of desired times YY.MMDDl; for Daylight Savings Time and press C Optional: Review times by pressing A or C For a new case: run at step 3. You can delete INITSUN or copy it off to extended memory and remove it, as long as you preserve the contents of registers 22-42. Registers 43 and 44 are the default latitude and longitude; you might want to enter your latitude and longitude instead, letting you skip step (3). (Edit) Posted SwissMicros DM41 dump files for INITSUN and SUN as a separate zip. RE: (41) Sunrise, Sunset, and Twilight from HP User Library 00508C - rprosperi - 04-01-2018 06:48 PM (04-01-2018 06:26 PM)SlideRule Wrote: The posted url User Library 00508C It's a page on TOS; this site (MoHPC) edits out any text or url references to that site name automatically; it's likely the OP didn't know that. If one substitutes the actual domain name for the asterisks, the link works. RE: (41) Sunrise, Sunset, and Twilight from HP User Library 00508C - KF6GPE - 04-01-2018 08:49 PM Whoops! Thanks. Will go back and edit. Good catch. I was unaware of that. |