WCS via AstroImageJ

264 views
Skip to first unread message

tgkd...@gmail.com

unread,
Apr 12, 2019, 3:24:32 PM4/12/19
to astrometry
I think I have two problems. Most important: after a plate solution, I click on "new-image.fits" to download it. I get the following error message:

image2pnm.py failed: out Dirs: ['/home/nova/nova/util', '/home/nova/nova/util'] , err ERROR: Image type not recognized: Unknown image type "['ASCII text', 'data']"

I think this is a file with the necessary wcs data that AIJ will use to determine RA/DEC of objects in the field (?).

Less important: whenever I try to submit an image to the plate solver using AIJ, it returns an error to the effect that the submission failed, (not the plate solution). When I look my account at astrometry.net, the image is there with a successful plate solution. Thanks, -tim

Dustin Lang

unread,
Apr 12, 2019, 3:28:13 PM4/12/19
to tgkd...@gmail.com, astrometry
Instead of new-image.fits (which is supposed to be the image file with the new WCS header), try wcs.fits .

As for the other issue, you should contact the AIJ author (who is not here).

cheers,
--dustin

--
You received this message because you are subscribed to the Google Groups "astrometry" group.
Visit this group at https://groups.google.com/group/astrometry.

tgkd...@gmail.com

unread,
Apr 18, 2019, 4:54:35 PM4/18/19
to astrometry
Neither AIJ nor AIP4WIN recognize the wcs.fit file. Neither will open it. Can you recommend a program that will open it and take advantage of the plate solution? i.e. click on an object and the program returns RA/DEC?  I do appreciate your time. -tim

Dustin Lang

unread,
Apr 18, 2019, 5:03:12 PM4/18/19
to tgkd...@gmail.com, astrometry
The wcs.fits file is only a *header* -- it's just a specially-formatted text description of the WCS.

If you look on the nova.astrometry.net site's results page for an image, the "new-image.fits" link is your image plus that new header.  Programs like "SAOImage ds9" will open it and give you RA,Dec at your cursor position.

cheers,
--dustin

Ravi Gupta

unread,
Apr 18, 2019, 5:12:18 PM4/18/19
to astrometry
You can open just the WCS FITS header using astropy if you like:
```
from astropy.io import fits
wcs = fits.getheader('wcs.fits')
```

tgkd...@gmail.com

unread,
Apr 18, 2019, 6:37:33 PM4/18/19
to astrometry
This was my original understanding. Not sure why it didn't work before. I reinstalled AIJ and it works now. Thanks & venerations. -tim

tgkd...@gmail.com

unread,
Apr 19, 2019, 4:59:15 PM4/19/19
to astrometry
I think I figured out the original difficulty, which may be an AstroImageJ  problem. When I submit an image via the astrometry.net web interface, I get a solution page with a link to the new-image.fits file. I click on it, and it downloads into my windows "download" folder.  

When I submit it from AstroImageJ, it gives me solution page I've come to know and love, but when I click on the new-image.fits file I get this error message:

image2pnm.py failed: out Dirs: ['/home/nova/nova/util', '/home/nova/nova/util'] , err ERROR: Image type not recognized: Unknown image type "['ASCII text', 'data']"

-tim

Dustin Lang

unread,
Apr 19, 2019, 8:54:28 PM4/19/19
to tgkd...@gmail.com, astrometry
Oh, I bet AIJ doesn't upload your image, it uploads a text x,y list of star positions, which we can't make into a new image (because it's not an image).
--dustin

--
Reply all
Reply to author
Forward
0 new messages