How to setup Astrometry.net program

less than 1 minute read

Most Linux users should just:

  1. download/install the pre-compiled binary code
    apt install astrometry.net
    
  2. Copy the star index files with downloadIndex.py
    python downloadIndex.py
    

[Optional] compile

This is normally not necesary.

  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, Astrometry.net is Python 3 compatible.

    wget http://astrometry.net/downloads/astrometry.net-latest.tar.gz
    
    tar xf astrometry.net-*.gz
    
    cd astrometry.net-*
    
    make
    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 index files with downloadIndex.py
    python downloadIndex.py
    

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 will NOt work!

Leave a Comment