Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : MMX - moon rise and set
Author | Message | ||||
cdeagle Senior Member Joined: 22/06/2014 Location: United StatesPosts: 261 |
This post is an MMBASIC program for the MicroMite eXtreme that can be used to determine rise and set conditions of the moon relative to an observer anywhere on the Earth. Here's a typical user interaction with the software and several rise/set conditions computed by this computer program. rise and set of the moon ======================== please input the calendar date (month [1 - 12], day [1 - 31], year [yyyy]) < for example, october 21, 1986 is input as 10,21,1986 > < b.c. dates are negative, a.d. dates are positive > < the day of the month may also include a decimal part > ? 3,16,2017 please input the geographic latitude of the observer (degrees [-90 to +90], minutes [0 - 60], seconds [0 - 60]) (north latitudes are positive, south latitudes are negative) ? 39,40,36 please input the geographic longitude of the observer (degrees [0 - 360], minutes [0 - 60], seconds [0 - 60]) (east longitude is positive, west longitude is negative) ? -104,57,12 please input the altitude of the observer (meters) (positive above sea level, negative below sea level) ? 1644 please input the number of days to simulate ? 5 searching for rise and set conditions ... rise conditions --------------- calendar date March 16 2017 UTC time 4 hours 19 minutes 21.49 seconds UTC julian day 2457828.68010985 topocentric coordinates lunar azimuth angle 102 deg 12 min 34.83 sec lunar elevation angle 0 deg -48 min 53.86 sec maximum elevation conditions ---------------------------- calendar date March 16 2017 UTC time 9 hours 55 minutes 26.99 seconds UTC julian day 2457828.91350678 topocentric coordinates lunar azimuth angle 179 deg 17 min 23.36 sec lunar elevation angle 39 deg 31 min 18.99 sec set conditions -------------- calendar date March 16 2017 UTC time 15 hours 30 minutes 33.59 seconds UTC julian day 2457829.14622216 topocentric coordinates lunar azimuth angle 255 deg 44 min 57.10 sec lunar elevation angle 0 deg -48 min 51.34 sec event duration 11 hours 11 minutes 12.10 seconds rise conditions --------------- calendar date March 17 2017 UTC time 5 hours 15 minutes 52.57 seconds UTC julian day 2457829.71935847 topocentric coordinates lunar azimuth angle 106 deg 34 min 37.78 sec lunar elevation angle 0 deg -48 min 48.84 sec maximum elevation conditions ---------------------------- calendar date March 17 2017 UTC time 10 hours 42 minutes 33.60 seconds UTC julian day 2457829.94622218 topocentric coordinates lunar azimuth angle 180 deg 2 min 29.18 sec lunar elevation angle 36 deg 19 min 12.40 sec set conditions -------------- calendar date March 17 2017 UTC time 16 hours 4 minutes 21.57 seconds UTC julian day 2457830.16969405 topocentric coordinates lunar azimuth angle 251 deg 45 min 14.96 sec lunar elevation angle 0 deg -48 min 47.38 sec event duration 10 hours 48 minutes 28.99 seconds Here's the link to a zipped archive that contains both the MMBASIC source code and a PDF document. 2017-03-18_122718_moon_riseset.zip |
||||
isochronic Guru Joined: 21/01/2012 Location: AustraliaPosts: 689 |
Is that Colarado ?? |
||||
cdeagle Senior Member Joined: 22/06/2014 Location: United StatesPosts: 261 |
Yes. It's the location of the Chamberlin Observatory on the University of Denver campus. |
||||
cdeagle Senior Member Joined: 22/06/2014 Location: United StatesPosts: 261 |
My MMBASIC programs and documentation can be accessed via the following Google Drive link; https://drive.google.com/drive/folders/0Bx2YPzS0EoweUFR6ZHZ0cVpFWjA?usp=sharing |
||||
cdeagle Senior Member Joined: 22/06/2014 Location: United StatesPosts: 261 |
I have updated several MMBASIC programs for the Micromite eXtreme and Raspberry Pi (moon_riseset, npoe, sat_riseset, etc.) at my Google Drive site located at https://drive.google.com/drive/folders/0Bx2YPzS0EoweUFR6ZHZ0cVpFWjA?usp=sharing David |
||||
Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 813 |
Hi David, thank you very much!!! Frank |
||||
cdeagle Senior Member Joined: 22/06/2014 Location: United StatesPosts: 261 |
I've added the calculation and display of the moon's phase to the moon_riseset.bas MMBASIC program. Here's the link to the zipped archive with the new source code. 2017-07-20_152709_moon_riseset.zip |
||||
Print this page |