Not extracting sources

47 views
Skip to first unread message

Lydia Makrygianni

unread,
Sep 29, 2022, 6:38:05 AM9/29/22
to astrometry
Hi,

I have an issue with astrometry-net version 0.91. I am trying to solve an image however I get this

Reading input file 1 of 1: "/Users/lydiamakrygianni/Documents/lcogtsnpipe/snexdata_target6919/tfn1m001-fa11-20210801-0425-e91.fits"...

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

sh: line 1:  3322 Done                    bin/plotxy -I /tmp/tmp.ppm.T1h9Jy -i /Users/lydiamakrygianni/Documents/lcogtsnpipe/snexdata_target6919/tfn1m001-fa11-20210801-0425-e91.axy -C red -w 2 -N 50 -x 1 -y 1 -P

      3323 Abort trap: 6           | bin/plotxy -i /Users/lydiamakrygianni/Documents/lcogtsnpipe/snexdata_target6919/tfn1m001-fa11-20210801-0425-e91.axy -I - -w 2 -r 3 -C red -n 50 -N 200 -x 1 -y 1 > /Users/lydiamakrygianni/Documents/lcogtsnpipe/snexdata_target6919/tfn1m001-fa11-20210801-0425-e91-objs.png

Solving...

Reading file "/Users/lydiamakrygianni/Documents/lcogtsnpipe/snexdata_target6919/tfn1m001-fa11-20210801-0425-e91.axy"...

Field 1 did not solve (index index-4208.fits, field objects 1-10).

Field 1 did not solve (index index-4207-11.fits, field objects 1-10).


Whereas for other similar images and for the example I get the "extracting sources..." line.


Do you know what might happen?


Thank you,


Lydia

Dustin Lang

unread,
Oct 1, 2022, 5:06:07 PM10/1/22
to astrometry
Hi,

Like the error message says, the Netpbm package, which is required, wasn't found when the code was compiled.

After installing netpbm, you can do a "make reconfig" to make it re-search for the Netpbm package, if you have it installed, and then re-run "make" and "make install".

cheers,
dustin

Lydia Makrygianni

unread,
Oct 2, 2022, 2:50:54 AM10/2/22
to astrometry
Hi,

Thank you for your reply! I'll do this however I doubt this is the issue as I get the same warning when solving the examples but I do get a solution.

Cheers,

Lydia

Lydia Makrygianni

unread,
Oct 2, 2022, 4:25:20 AM10/2/22
to astrometry

Still the same issue when netpbm is not the issue. First lines for image solved OK 

$ /usr/local/astrometry/bin/solve-field /home/lmakrygianni/tfn1m001-fa11-20210801-0423-e91.fits --no-verify

Reading input file 1 of 1: "/home/lmakrygianni/tfn1m001-fa11-20210801-0423-e91.fits"...

Extracting sources...

simplexy: found 1492 sources.

Solving...


First lines of image not solved:


/usr/local/astrometry/bin/solve-field /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.fits  --width 4069 --height 4069 --use-sextractor --overwrite

Reading input file 1 of 1: "/home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.fits"...

(null): EOF / read error reading magic number

(null): EOF / read error reading magic number

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.Sv8ULC -i /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.axy -C red -w 2 -N 50 -x 1 -y 1 -P | /usr/local/astrometry/bin/plotxy -i /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.axy -I - -w 2 -r 3 -C red -n 50 -N 200 -x 1 -y 1 > /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91-objs.png"


 solve-field.c:131:run_command Command exited with exit status 1

Solving...



Lydia Makrygianni

unread,
Oct 2, 2022, 5:02:47 AM10/2/22
to astrometry
First lines of the not solved image using -v in command line

/usr/local/astrometry/bin/solve-field /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.fits  --width 4069 --height 4069 --use-sextractor --overwrite --no-verify -v

Reading input file 1 of 1: "/home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.fits"...

Base: "/home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91", basefile "tfn1m001-fa11-20210801-0425-e91.fits", basedir "/home/lmakrygianni", suffix "fits"

Checking if file "/home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.fits" ext 0 is xylist or image: xyls

Removing lines of (spurious) sources from xylist "/home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.fits", writing to "/tmp/tmp.removelines.9ZQIRs"

Running: /usr/local/astrometry/bin/removelines /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.fits /tmp/tmp.removelines.9ZQIRs

removelines.py: Removed 0 sources

Running: /usr/local/astrometry/bin/uniformize -n 10 /tmp/tmp.removelines.9ZQIRs /tmp/tmp.uniform.Sgboer

Uniformizing into 3 x 3 bins

Image bounds: x [5.9134,4079.02], y [43.7204,4060.02]

Writing headers to file /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.axy

Copying data block of file /tmp/tmp.uniform.Sgboer to output /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.axy.

Deleting temp file /tmp/tmp.removelines.9ZQIRs

Deleting temp file /tmp/tmp.uniform.Sgboer

Running: /usr/local/astrometry/bin/plotxy -I /tmp/tmp.ppm.QVqgHw -i /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.axy -C red -w 2 -N 50 -x 1 -y 1 -P | /usr/local/astrometry/bin/plotxy -i /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.axy -I - -w 2 -r 3 -C red -n 50 -N 200 -x 1 -y 1 > /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91-objs.png

(null): EOF / read error reading magic number

(null): EOF / read error reading magic number

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.QVqgHw -i /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.axy -C red -w 2 -N 50 -x 1 -y 1 -P | /usr/local/astrometry/bin/plotxy -i /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.axy -I - -w 2 -r 3 -C red -n 50 -N 200 -x 1 -y 1 > /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91-objs.png"


 solve-field.c:131:run_command Command exited with exit status 1

Solving...


Dustin Lang

unread,
Oct 2, 2022, 12:32:30 PM10/2/22
to Lydia Makrygianni, astrometry
Hi,
That looks weird.  What kind of file is /home/lmakrygianni/tfn1m001-fa11-20210801-0425-e91.fits .  Is it an image?  It looks like solve-field thinks it is a FITS *table* of X,Y star positions.
But then plotxy is failing to read it -- my guess is there's something weird about that file.
You can turn off plots with --no-plots, but that shouldn't really matter, it should continue on and solve the field if possible.
If you can post that file, or, eg, upload it to nova.astrometry.net, I may be able to comment further.
cheers,
dustin

--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/c523b557-f6fe-4cbf-a589-756f3c273b43n%40googlegroups.com.

Dustin Lang

unread,
Oct 2, 2022, 12:33:03 PM10/2/22
to Lydia Makrygianni, astrometry
PS, netpbm is absolutely required to read jpeg/png images, but not FITS images.

Lydia Makrygianni

unread,
Oct 3, 2022, 3:06:37 AM10/3/22
to astrometry

Hi,

It's a fits image which seems normal in terms of opening it with ds9. I uploaded it on nova.astrometry.net, and for some reason, it was solved there. It's Job 7113474.
If you figure out what's wrong or different with the online solution. please let me know.

Thanks,

Lydia

Dustin Lang

unread,
Oct 3, 2022, 5:48:02 PM10/3/22
to Lydia Makrygianni, astrometry
Hi,
Okay, so what's happening is, the code is trying to figure out if your FITS file is a FITS image, or a FITS table of source positions.  Since you files have a table HDU containing "x" and "y" columns, it thinks it's a table of source positions, and tries to read that.  You can add the "--fits-image" argument to your solve-field command to tell it that it should treat your file as an image.
cheers,
dustin


You received this message because you are subscribed to a topic in the Google Groups "astrometry" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/astrometry/P3M_QYjb8Rg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/b8b0b2f6-c73c-47ca-85b2-eaf2fbb37f05n%40googlegroups.com.

Lydia Makrygianni

unread,
Oct 5, 2022, 7:05:41 AM10/5/22
to astrometry
Hi Dustin,

Thank you very much! This solved the issue!

Cheers,
Lydia

Reply all
Reply to author
Forward
0 new messages