How to calculate the position of stars

  • Context: Undergrad 
  • Thread starter Thread starter zackola
  • Start date Start date
  • Tags Tags
    Position Stars
Click For Summary

Discussion Overview

The discussion revolves around the challenges of calculating and displaying the positions of stars on a mobile device for creating star maps. Participants explore methods for translating celestial coordinates (altitude and azimuth) into a 2D representation on a screen while minimizing distortion, particularly near the zenith. The conversation includes software development, user interface design, and the use of existing applications as references.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant describes their approach using the Yale bright star catalog and calculations for mean sidereal time to determine altitude and azimuth for star mapping.
  • Another participant suggests looking into the Stellarium program as a potential resource for ideas, noting its 3D approach.
  • Some participants discuss the general problem of mapping a spherical sky onto a rectangular screen, mentioning various strategies like centering the pole or using tilt sensors for dynamic viewing.
  • A participant proposes using a smaller window that changes with device tilt to create a more intuitive star viewing experience.
  • There is mention of existing iPhone apps that serve similar purposes, although no specific features are discussed.
  • One participant reflects on the difficulties of translating star charts to real sky observations and suggests a phone screen could function as a Head Up Display for star names.

Areas of Agreement / Disagreement

Participants express various ideas and suggestions, but there is no clear consensus on the best method for minimizing distortion in star mapping or the optimal user interface design. Multiple competing views remain regarding the approaches to take.

Contextual Notes

Participants acknowledge limitations in existing methods, such as the challenges of mapping a sphere onto a rectangle and the potential inaccuracies of GPS for compass heading. There are also unresolved considerations regarding the effectiveness of different display techniques and user interaction methods.

Who May Find This Useful

Developers interested in astronomy applications, users looking for star mapping software, and those exploring user interface design for mobile devices in the context of celestial navigation.

zackola
Messages
3
Reaction score
0
Hi all, hope everyone is doing well this rainy cold night. Hopefully it's not like that wherever you are. Anyhow - I hope someone can help me out.

I'm writing some software for a mobile device to create star maps. I've gotten pretty far into it. I'm using data from the Yale bright star catalog that has the right ascension and declination of stars, then taking into account a users local time/date and geographic location (using the gps on the device), and from that info, calculating MST (mean sidereal time) and using that calculating what the Altitude and Azimuth of a star should be from your observation point on Earth. I've verified my calculations of alt + az are correct using some static star charts, but what I'm wrestling with now is how to map the star onto a plane in order to display it in on a screen, with minimal distortion.

Right now, I'm using a simple map to put stars onto the 2d drawing surface. So, if for example my intended vertical and horizontal FOVs are 90 degrees, I want to only display stars with an Altitude 0-90 (0 being the local horizon) and I can easily figure out that:

Altitude / verticalFOV = y / heightOfScreen
Azimuth / 360 / horizontalFOV = x / widthOfScreen

The problem arises as Altitude approaches the zenith (90) and because of this very linear mapping, the distances between the stars on screen is stretched and warped (makes drawing of constellations look pretty dumb).

Anyhow, anyone know any way to project a star's location to 2d space given it's altitude and azimuth that minimizes the distortion at the zenith? Welcome to hear about any other ways of calculating or doing this type of thing. Many thanks in advance!
 
Astronomy news on Phys.org
Have you had a look at the program stellarium? Its free to download and might give you some ideas. Sorry I can't be of more help.

P.S. I have been waiting for an application to arrive like this for my iphone, makes perfect sense with the GPS facility. Will this app be available for iphone?
 
It is a general problem of mapping a large sphere onto a small rectangle.
Obvious solutions are to show the pole in the centre, but this wastes screen space, show north/east/south/west views but this goes wrong at the pole

Could you use the tilt sensor to show a smaller window that changes as you raise the device (so the tilt becomes the azimuth) - the unit would then be simple window onto the stars in front of you?
The GPS might not be good enough to give you the compass heading.
 
Thanks mgb_phys,

That's a pretty good idea too. The tilt sensor and compass are sensitive enough to do what you suggest. I'm already getting the compass heading and using that. (There's a digital compass in the device, don't need the gps for that) I think maybe a 30 degree swath of altitude might look pretty good on the device...Food for thought...
 
Translating star charts into what you see in the sky is difficult with paper charts.
People have tried printing them reversed so looking down is the same as looking up.
Holding them up at arms length is tricky.

A phone screen that you could hold up in front of you and became effectively a Head Up Display with star names could be interesting. You would set the scale for the screen size held a comfortable distance (8-12") in front of you.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 4 ·
Replies
4
Views
12K
  • · Replies 2 ·
Replies
2
Views
5K