

MarsMap: What Features of Mars are Visible? (Shallow Thoughts)
source link: https://shallowsky.com/blog/science/astro/marsmap.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

MarsMap: What Features of Mars are Visible?
I've been working on my upcoming PEEC talk, Observing Mars at Opposition on October 16.Mars' closest approach was yesterday, October 6, and the actual opposition will be next Tuesday, October 13.
So, wait, we've already missed closest approach, and the opposition will be over before the actual talk happens? Then why bother?
Fortunately, opposition is actually an "opposition season", not a single date. And for most people, the best part is a little past opposition.
At opposition, Mars is highest at midnight. Since most people probably don't want to stay up til midnight to observe, it's actually better to wait a few weeks, until Mars is higher a little earlier in the evening, and it's nearly as big as it was at opposition.
A lot of my talk is about how to observe Mars through a telescope, and one of the important questions I need to answer is, "How can I figure out which Mars features are showing right now?" Mars features are somewhat subtle; except for Syrtis Major and Hellas, you probably won't be able to take a glance at Mars and immediately recognize what you're looking at.
So part of my talk preparation required answering that question.
I've been using an ancient Unix program called XEphem for many years. It's very accurate and reliable, but the program is no longer supported, and so it needs to be compiled. Not really an option for most people.
Sadly, the more accessible open source program, Stellarium, does not show Mars features. I'm told that the paid (and well respected) paid program Starry Night does, for Mac and Windows. On my Android tablet and phone, I use a paid program called Sky Safari (it's also available for iOS and Mac). I bought the middle, "Plus", level since I use it for basic observing, not finding ultra-faint galaxies, and it shows Mars features pretty well. I suspect the cheaper basic version also shows Mars features, but you might want to check to make sure before purchasing.
So, several paid programs plus a program you have to compile from source. What free options are there?
Sky & Telescope magazine has a Javascript app called Mars Profiler -- but it seems to be wrong! At least right now, XEphem and Sky Safari (and my MarsMap, which I'll talk about in a sec), are both showing Solis Lacus front and center; Mars Profiler shows it way off to one side. So if you use it, be wary.
MarsMap
My app. Ahem. A long time ago, solving this same problem, I wrote a little C app called MarsMap for Linux/Unix and PalmOS (remember Palm Pilots?). Later I translated it into a Java applet (remember Java applets?) Neither of those is viable now (though the source is linked from my software page.
After failing to find a reasonable, free, web app to show Mars features accurately, I realized I ought to translate MarsMap to JavaScript so people (including me) could use it on modern browsers and phones.
The Java version of MarsMap used a color Mars map I made by adding labels to an unlabeled JPL Mars map (there are also east-west flipped and north-south rotated versions courtesy of Bill Arnett). I translated the Mars meridian calculation code from C to JavaScript. Then the only remaining issue was the code that takes the rectangular map and projects it so it looks like a globe. In the C and Java versions, I just did the trigonometry, but I suspected that in 2020, there was probably a library that would do that for me, using nifty WebGL accelerations and other stuff I'd rather not have to learn.
Sure enough. Three.js works wonderfully and can do all kinds of amazing things, way beyond what I needed for MarsMap. So not only was I able to show a globe and offer buttons to change the time, but I could hook up mouse events that let you drag the globe around (use shift-Drag for that; sorry, touchscreen users).
So here is MarsMap. It's a bit feature poor at the moment (for instance, it doesn't offer those nice flipped and reversed maps) but hey, it's a free Mars map, in time for the 2020 opposition. And it's set up to "Install to Home Screen" on phones and tablets, so you can pretend it's a regular app.
And if you're interested in Mars observing, you might want to come to my talk! Virtually, that is, since it'll be on Zoom. friday, October 16 at 7pm: Observing Mars at Opposition.
Tags: astronomy, programming, javascript[ 18:10 Oct 07, 2020 More science/astro | permalink to this entry | ]
Recommend
-
12
Petition for Better Los Alamos Broadband Los Alamos (and White Rock) Alert! Los Alamos and White Rock readers: please direct your attent...
-
13
Removed RSS 0.9.1 feed; Calendar Working Better Fixing the Disqus comment system required reg...
-
18
Blog Comments should be working again The Disqus comments here have been broken for quite some time, and I didn't realize it. I just thought nobody must interested in...
-
9
Y is for Yunque Dave was browsing through satellite imagery and noticed what looked like an old bridge across the Rio Grande just north of Española, near the Ohkay Owingeh p...
-
8
Pho 1.0, Belated Release I was doing some disk housekeeping and noticed that my venerable image viewer, Pho,...
-
10
Resizing Images for a Twitter Stream
-
13
Key Bindings for Copy and Paste Under X11 In the previous article I wrote about how the two X sel...
-
9
Android Studio Workarounds, and Command-Line Gradle Builds I got a new phone. (Not something that happens often.) Fun, right? Well, partly, but...
-
8
Track Bills in the 2021 New Mexico Legislative Session This year's New Mexico Legislative Session started Tuesday. For the last few weeks I've been mad...
-
8
A Junco Goes "Umbrella Fishing" One memorable sequence from Sir David Attenborough's stellar Life of Birds do...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK