How to setup Astrometry.net program

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


Alternative: apt install astrometry.net

[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.

    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. add to ~/.bashrc
    export PATH="$PATH:$HOME/astrometry.net/bin"
    

    do not use ~ or you’ll get error

    cannot find executable astrometry-engine

  4. uncomment inparallel in ~/astrometry.net/etc/astrometry.cfg.
  5. Copy the star map files with get_data.sh
    ./get_data.sh
    

Notes

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

add_path /home/username/astrometry/data

~ or $HOME won’t work!

username
Linux login account name

Leave a Comment