How to calculate the position of stars

  • Thread starter Thread starter zackola
  • Start date Start date
  • Tags Tags
    Position Stars
AI Thread Summary
The discussion focuses on developing software for mobile devices to create star maps using data from the Yale bright star catalog, incorporating local time, date, and GPS location to calculate the altitude and azimuth of stars. The main challenge is accurately mapping these celestial coordinates onto a 2D screen without distortion, particularly as altitude approaches the zenith. Suggestions include using polar coordinates and implementing tilt sensors and digital compasses to enhance user experience. The conversation also references existing apps like Stellarium and discusses the potential for a heads-up display feature for easier star identification. Overall, the thread emphasizes the complexities of translating 3D star positions into a usable 2D format.
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?
 
Hi! I did find Stellarium, thanks. They are doing things in a much more 3d way than I had anticipated, but the good news is that plain old polar coordinates are working out pretty well for me.

The good news for you is that there are already several iPhone apps like this:

http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=295430577&mt=8

and

http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=284408099&mt=8

Haven't used either, but they look cool. Later
 
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.
 
Publication: Redox-driven mineral and organic associations in Jezero Crater, Mars Article: NASA Says Mars Rover Discovered Potential Biosignature Last Year Press conference The ~100 authors don't find a good way this could have formed without life, but also can't rule it out. Now that they have shared their findings with the larger community someone else might find an explanation - or maybe it was actually made by life.
TL;DR Summary: In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect alien signals, it will further expand the radius of the so-called silence (or rather, radio silence) of the Universe. Is there any sense in this or is blissful ignorance better? In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect...
This thread is dedicated to the beauty and awesomeness of our Universe. If you feel like it, please share video clips and photos (or nice animations) of space and objects in space in this thread. Your posts, clips and photos may by all means include scientific information; that does not make it less beautiful to me (n.b. the posts must of course comply with the PF guidelines, i.e. regarding science, only mainstream science is allowed, fringe/pseudoscience is not allowed). n.b. I start this...
Back
Top