To calculate the exact location of a star, planet, or satellite, read the appropriate chapter in this book, download the source code, data files, or binaries, as needed from the publisher, and off you go on a wild adventure that combines star gazing, mathematics, and coding.
I am especially attracted to science or technology books that contain something the reader can work with. A book about a programming language should walk the reader through developing a good example of useful code. A book about computational science should include templates for workflow in data analysis. It is rare, though, to find a book about a pure science (as opposed to technology) that does this. Celestial Calculations: A Gentle Introduction to Computational Astronomy (The MIT Press) by J. L. Lawrence is one of those pragmatic publications.
J.L. Lawrence comes from the world of technology. He is a CTO of a company that builds computer systems for satellite-launching customers including the government. So, one might imagine that he has an interest in pulling out the old slide rule and doing applied rocket science.
Consider the situation of a serious amateur astronomer. You can look at the stars and planets through a good set of binoculars, or an amateur telescope. After a while, you may want to upgrade to a telescope that can be linked to your laptop for positioning. Or you might build a star tracker to allow your camera to get a nice shot of a comet. And so on.
But eventually you may also want to get into the math of the heavens, combining that with some coding skills you can easily pick up, and figure out how to locate planets, find specific stars, track the moon’s behavior with great accuracy, and convert between all the values of time and space that happen when round objects of various sizes find themselves falling towards each other in great, seemingly infinite time, spirals. And so on.
Celestial Calculations is written for amateur astronomers who want to use accessible math combined with extensive ready to go code written manly in python, java, and visual basic.
The prose that discusses the math and astronomy is straightforward and accessible, and if you read the book just for that you will come away much better informed about the solar system and broader universe. If you do that, you will probably skip about 20% of the technical discussions and math (maybe a bit more). The math is very clear and you can work through the concepts in your head, more or less, to get the idea, and appreciate the dynamic relationships between things in space. The programming is all relegated (but with notes in the book) to a major on line archive that you can download and use on your own computer to make the calculations, and modify as you wish.
The software is developed with a Microsoft Windows user in mind. The software should run on any platform, but you may have to fiddle with paths and other environment issues if you are using a non-Windows machine.