Mars Clock |
Mars Clock |
Aug 15 2012, 12:17 AM
Post
#1
|
|
Newbie Group: Members Posts: 10 Joined: 14-August 12 Member No.: 6554 |
I recently built this:
http://jtauber.github.com/mars-clock/ It's a single web page with calculations being done live in Javascript. It started off just as a way to calculate the LMST and LTST for Curiosity but it has a range of calculations for Mars overall from Allison and McEwen's 2000 paper. Recently I've started adding explanations of each of the calculations including the formulas used. It's been a huge learning experience for me and I'd appreciate any feedback, both in terms of experts correcting what I've done incorrectly and amateurs such as my self saying what they'd like elaboration on. |
|
|
Aug 22 2012, 03:01 PM
Post
#2
|
|
Member Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
Hi James,
Haven't done much with scripts and the program for ages and for sure I'm not up-to-date with the language - so I hope you don't want go too deep here. Your Script has this: CODE var curiosity_lambda = 360 - 137.4; var curiosity_sol = Math.floor(msd - curiosity_lambda / 360) - 49268; var curiosity_lmst = within_24(mtc - curiosity_lambda * 24 / 360); var curiosity_ltst = within_24(curiosity_lmst + eot * 24 / 360); var opportunity_sol_date = msd - 46235 - 0.042431; var opportunity_sol = Math.floor(opportunity_sol_date); var opportunity_mission = (24 * opportunity_sol_date) % 24; var opportunity_ltst = within_24(opportunity_mission + eot * 24 / 360) Something has gone wrong here. HLST or 'Mission Time' is definitely not LMST. I wonder why Oppy's one is so different from the Curiosity one. Where are Oppy's coordinates (longitude)? Did you use HLST instead of LMST for Oppy's LTST? I guess the point here (in this Thread) is a 'little' confusion between HLST and LMST. -------------------- |
|
|
Lo-Fi Version | Time is now: 4th June 2024 - 02:30 AM |
RULES AND GUIDELINES Please read the Forum Rules and Guidelines before posting. IMAGE COPYRIGHT |
OPINIONS AND MODERATION Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators. |
SUPPORT THE FORUM Unmannedspaceflight.com is funded by the Planetary Society. Please consider supporting our work and many other projects by donating to the Society or becoming a member. |