These are any little programs I write for the purpose of processing, organizing, or otherwise managing my modest astrophotos.
This script is used in the following situation:
- I have an arbitrary number of photo frames of a bright object (such as a planet) taken at roughly the same settings on the same date
- The frames aren't aligned, or close to being aligned, since I took them from an untracked mount using a photo camera instead of a video camera.
The script uses a threshold mask to locate the planet in each frame, and then crops the frames so that the planet is aligned perfectly. The resulting images can be then fed into a program like RegiStax or similar.
For example, consider this set of input frames, captured by manually slewing my untracked telescope and triggering the shutter a few times:
Running the command:
align_planet.py ./output_directory ./input_files/*.jpg
This script produces the following result, with each frame nicely aligned. You're now ready for stacking!
- Python 3 (tested with 3.4.3)
- ImageMagick (tested with 6.7.7)
- The Pillow Python module
RegiStax is great when you have a set of frames where the target doesn't move much between frames (such as a video), but I've gotten far better (and faster) results using this alignment script and selecting the "no alignment" option in RegiStax.
I don't own the requisite hardware, and I'm on a tight budget. It's also fun writing software to do this!

