File indexing completed on 2024-09-08 03:29:00
0001 #!/bin/bash 0002 # Usage: visualize-trixel.sh <USNO NOMAD Data File> <Trixel ID> 0003 0004 TEMPFILE='/tmp/nomad-trixel-dump' 0005 NOMADBINFILETESTER='./nomadbinfiletester' 0006 0007 $NOMADBINFILETESTER $1 $2 &> /tmp/nomad-trixel-dump 0008 grep -E 'RA = |Dec = ' $TEMPFILE | sed ':a;N;s/\s*RA = \([\.0-9]*\)\s*\n\s*Dec = \([+-][\.0-9]*\)/\1 \2/' > "${TEMPFILE}-plot" 0009 gnuplot -p -e "plot \"${TEMPFILE}-plot\" title \"Trixel $2\"" 0010