Setting up Astrometry.net program

Easy install astrometry.net

apt install astrometry.net

Program giving azimuth/elevation for each pixel of your sky image

[Optional] compile and install astrometry.net:

1. Prereqs:

apt install libcairo2-dev libnetpbm10-dev netpbm libpng12-dev libjpeg-dev zlib1g-dev swig libcfitsio-dev

2. Install:

If you have Anaconda/Miniconda Python as your default, Astrometry.net will use them (or whatever your default Python is). Back to at least Astrometry.net 0.70, it is Python 3 compatible.

cd /tmp

wget http://astrometry.net/downloads/astrometry.net-latest.tar.gz

tar xf astrometry.net-*.gz

cd astrometry.net-*

make -j4
make py
make extra

make install INSTALL_DIR=~/astrometry.net

3. Required Configuration

  1. add this line to ~/.bashrc

     export PATH="$PATH:$HOME/astrometry.net/bin"
    

    do not use ~ or you’ll get error cannot find executable astrometry-engine

  2. uncomment inparallel in ~/astrometry.net/etc/astrometry.cfg.
  3. Use this script

     ./setup_data.sh
    

    to copy the star map files

Notes

If it can’t find the index file, be sure your ~/astrometry.net/etc/astrometry.cfg contains

add_path /home/yourusername/astrometry/data

~ or $HOME won’t work!
Actually use /home/username where username is your Linux login.

Leave a Comment