<p>You can easily use something like Astropy. It already has the capacity to accept time and location as inputs for an Alt/Az calculation. You can just output a stream of data in a table with a varying variable: time or location. It's been well-tested and is the recommended solution for this kind of thing.</p>

CC BY-SA 4.0
2018-08-29T22:59:02.170Z
2018-08-29T22:59:02.170Z
Alphecca
<p>It's difficult to answer this question with any confidence, since it is so wide ranging, and the original poster has not (yet) provided any clarification.</p>

<p>However, it seems likely that the book "Astronomical Algorithms" by Jean Meeus, published by Willmann-Bell, will provide the answer(s).  Failing that, the publisher's website contains several other reference works on this topic. I have no affiliation with the publisher or author.</p>

<p>Finally, as the author of the question is a beginner, I wonder whether in fact a simple introduction to astronomy, of which there are hundreds, might be a better place to start.  Jumping in by trying to model the positions of stars looks hard, particularly as there are plenty of good applications already available, some of which are free.</p>

CC BY-SA 4.0
2018-05-27T16:22:33.047Z
2018-05-27T16:22:33.047Z
Dr Chuck
<p>The planet beneath us is providing the majority of movement.  The simplest possible model to figure out where a star should be is to just rotate the celestial sphere by 360 degrees every 24 hours.  This is what a clockdrive on an equatorial mount does, to track a particular star's position as the planet rotates.  If you know a star's coordinates in right ascension and declination, you can convert this to altitude and azimuth by rotating the spherical coordinate system.  Over longer periods of time though, there are many other motions that have to be included for better accuracy.</p>

CC BY-SA 4.0
2018-05-31T18:16:11.053Z
360$^\circ$/24h is the solar rate; the sidereal rate is 1/365 faster.
Mike G
CC BY-SA 4.0
2018-05-31T17:06:59.853Z
2018-05-31T17:06:59.853Z
Nicole Sharp
<p>I'm a beginner in astronomy and I'm trying to figure out how to model the positions of stars in the night sky mathematically (ie a function which spits out azimuth and altitude as a function of time). I was wondering if anyone knew of any such function, I understand it would vary with your position on earth. </p>

<p>Furthermore, does anyone know anything about the mathematics of star movements, I'm trying to learn all I can. </p>

<p>Thanks!</p>

CC BY-SA 4.0
2018-05-26T01:27:21.530Z
I think you could write a more detailed problem, the correct answer to your question would be probably too long. Typically, a good question has an answer at most a page length. But I am not sure, maybe also yours belongs to them. Good luck!
peterh
CC BY-SA 4.0
2018-05-26T11:23:16.963Z
Are you asking about the apparent movement of the stars in the sky (mostly due to the Earth/'s rotation) or are you asking about the much, much smaller proper motions of the stars with respect to one another? Or both?
Mark Olson
CC BY-SA 4.0
2018-05-26T21:57:35.763Z
Also see [Wikipedia: Celestial coordinates](https://en.wikipedia.org/wiki/Celestial_coordinate_system#Equatorial_%E2%86%94_horizontal) for conversion between equatorial and horizontal systems.
Mike G
CC BY-SA 4.0
2018-05-27T00:53:12.520Z
Smarte's Spherical Astronomy is [archived here](https://archive.org/details/SphericalAstronomy), it's in there somewhere, but I can't point to one single page.
uhoh
<star><coordinate>
Position of specific stars in the sky as a function of time
John Smith
# Position of specific stars in the sky as a function of time

(Asked by: username_0 on 2018-05-26)

I'm a beginner in astronomy and I'm trying to figure out how to model the positions of stars in the night sky mathematically (ie a function which spits out azimuth and altitude as a function of time). I was wondering if anyone knew of any such function, I understand it would vary with your position on earth.

Furthermore, does anyone know anything about the mathematics of star movements, I'm trying to learn all I can.

Thanks!

**Tags:** star, coordinate
> **Comments:**
> **username_1**: I think you could write a more detailed problem, the correct answer to your question would be probably too long. Typically, a good question has an answer at most a page length. But I am not sure, maybe also yours belongs to them. Good luck!  
> **username_2**: Are you asking about the apparent movement of the stars in the sky (mostly due to the Earth/'s rotation) or are you asking about the much, much smaller proper motions of the stars with respect to one another? Or both?  
> **username_3**: Also see [Wikipedia: Celestial coordinates](https://en.wikipedia.org/wiki/Celestial_coordinate_system#Equatorial_%E2%86%94_horizontal) for conversion between equatorial and horizontal systems.  
> **username_4**: Smarte's Spherical Astronomy is [archived here](https://archive.org/details/SphericalAstronomy), it's in there somewhere, but I can't point to one single page.  

---

## 3 answers

### Answer by username_5 on 2018-08-29. Score: 1

You can easily use something like Astropy. It already has the capacity to accept time and location as inputs for an Alt/Az calculation. You can just output a stream of data in a table with a varying variable: time or location. It's been well-tested and is the recommended solution for this kind of thing.


---

### Answer by username_6 on 2018-05-27. Score: 1

It's difficult to answer this question with any confidence, since it is so wide ranging, and the original poster has not (yet) provided any clarification.

However, it seems likely that the book "Astronomical Algorithms" by Jean Meeus, published by Willmann-Bell, will provide the answer(s). Failing that, the publisher's website contains several other reference works on this topic. I have no affiliation with the publisher or author.

Finally, as the author of the question is a beginner, I wonder whether in fact a simple introduction to astronomy, of which there are hundreds, might be a better place to start. Jumping in by trying to model the positions of stars looks hard, particularly as there are plenty of good applications already available, some of which are free.


---

### Answer by username_7 on 2018-05-31. Score: 0

The planet beneath us is providing the majority of movement. The simplest possible model to figure out where a star should be is to just rotate the celestial sphere by 360 degrees every 24 hours. This is what a clockdrive on an equatorial mount does, to track a particular star's position as the planet rotates. If you know a star's coordinates in right ascension and declination, you can convert this to altitude and azimuth by rotating the spherical coordinate system. Over longer periods of time though, there are many other motions that have to be included for better accuracy.

> **Comments:**
> **username_3**: 360$^\circ$/24h is the solar rate; the sidereal rate is 1/365 faster.  

---

