How do I get plotting to work?

578 views
Skip to first unread message

Menno Van leeuwen

unread,
May 16, 2016, 8:59:16 AM5/16/16
to astrometry
Hello,

I am having troubles getting plotxy or the others to work.
It does process my image and show the RA and Dec correctly but I don't get any output with those circles and such.
I am receiving this error before it starts solving though.

kodserfing145@StarDebris-PC:~/Pictures/bodes$ sudo /usr/local/astrometry/bin/solve-field bodes.png 
Reading input file 1 of 1: "bodes.png"...
Read file stdin: 1280 x 943 pixels x 1 color(s); maxval 255
Using 8-bit output
Extracting sources...
simplexy: found 2109 sources.
cairoutils.c:715:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM images
cairoutils.c:715:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM images
cairoutils.c:715:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM images
cairoutils.c:715:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM images
libpng warning: Image width is zero in IHDR
libpng warning: Image height is zero in IHDR
libpng error: Invalid IHDR data
Aborted (core dumped)
solve-field.c:326:plot_source_overlay Plotting command failed
 solve-field.c:132:run_command Command was: "/usr/local/astrometry/bin/plotxy -I /tmp/tmp.ppm.7jB4Sn -i ./bodes.axy -C red -w 2 -N 50 -x 1 -y 1 -P | /usr/local/astrometry/bin/plotxy -i ./bodes.axy -I - -w 2 -r 3 -C red -n 50 -N 200 -x 1 -y 1 > ./bodes-objs.png"

 solve-field.c:131:run_command Command exited with exit status 134
Solving...Reading file "./bodes.axy"...
Field 1 did not solve (index index-4219.fits, field objects 1-10).
Field 1 did not solve (index index-4218.fits, field objects 1-10).
Field 1 did not solve (index index-4217.fits, field objects 1-10).
Blablablabla.......
Field 1 did not solve (index index-4214.fits, field objects 11-20).
Field 1 did not solve (index index-4213.fits, field objects 11-20).
Field 1 did not solve (index index-4212.fits, field objects 11-20).
  log-odds ratio 68.0745 (3.66747e+29), 8 match, 0 conflict, 18 distractors, 11 index.
  RA,Dec = (149.184,69.0928), pixel scale 5.03185 arcsec/pix.
  Hit/miss:   Hit/miss: +-+--+-+---++-+----------+(best)--------------------------------------------------------------------------
Field 1: solved with index index-4211.fits.
Field 1 solved: writing to file ./bodes.solved to indicate this.
Field: bodes.png
Field center: (RA,Dec) = (149.181853, 69.093339) deg.
Field center: (RA H:M:S, Dec D:M:S) = (09:56:43.645, +69:05:36.019).
Field size: 1.78977 x 1.31922 degrees
Field rotation angle: up is -91.9148 degrees E of N
Creating new FITS file "./bodes.new"...

I also included my output files of the solving maybe its of use.
Anyway I hope someone can explain or help me on how to fix this.

result.zip

Dustin Lang

unread,
May 16, 2016, 12:41:02 PM5/16/16
to astrometry
Hi,

The plotting requires the "netpbm" library to be found and linked.  This can be a bit fiddly to get working.

I do this (in my ~/.bashrc file):

export NETPBM_LIB="-L/usr/local/lib -lnetpbm"
export NETPBM_INC="-I/usr/local/include/netpbm -I/usr/local/include"

The exact paths will depend on where you (or your distribution) have installed the netpbm libraries and headers.

After you have done that, you will need to recompile the Astrometry.net code:

make reconfig

and if everything has gone correctly, it should end with:

...
Config results:
------------------------------

cat makefile.os-features
# This file is generated by util/Makefile.
HAVE_NETPBM := yes

------------------------------

And, by the way, is WCSlib support being compiled in?

pkg-config --exists wcslib && echo yes || echo no
yes

  WCSLIB_INC: -I/usr/local/Cellar/wcslib/5.7/include/wcslib
  WCSLIB_LIB: -L/usr/local/Cellar/wcslib/5.7/lib -lwcs -lm

------------------------------
make[1]: Nothing to be done for `config'.
>

and then

make
make extra


Good luck,
--dustin


Menno Van leeuwen

unread,
May 22, 2016, 7:01:59 AM5/22/16
to astrometry
One more question, how do I get the names to be in the plot file?
Right now I only get red circles and green lines and circles but I would like to see the names of the objects in screen is that possible?

Dustin Lang

unread,
May 22, 2016, 8:27:00 AM5/22/16
to astrometry
Cool, thanks for the update.

There should be three plots for solved images: *-objs.png shows just sources detected in your image, *-indx.png shows those red circles plus green ones for sources from the reference catalog, and *-ngc.png is the annotated plot.

There is a better script for making annotated images, with controls for more things -- "python blind/plotann.py".

cheers,
--dustin

Reply all
Reply to author
Forward
0 new messages