You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to astrometry
Dear Dustin!
I have problems using output files of the latest version from github (b6c762ab). When i read the .new file with wcs solution and pass its header to astropy.wcs.WCS() (astropy ver.2.0.2) i get the following exception:
ValueError: FITS header values must contain standard printable ASCII characters; 'Created by the Astrometry.net suite.\nFor more details, see http://astrom' contains characters/bytes that do not represent printable characters in ASCII.
This problem is easy to solve by removing all "COMMENT" and "HISTORY" keywords from the header of .new file, but it is not very convenient. It would be great if it could be fixed in future versions.
Thanks,
Dmitry
Dustin Lang
unread,
Nov 6, 2018, 1:54:02 PM11/6/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to astrometry
Hi,
Can you run the "fitsverify" command on the .new file (I think there is also a web version of the service)? That is my go-to utility for determining if a FITS file is valid.
Can you tell which character is causing problems? Is it the '\n'?
thanks,
--dustin
Matt Craig
unread,
Nov 6, 2018, 4:11:19 PM11/6/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to astrometry
Hi,
I've hit this in the past (I wrote \n into FITS headers on my own, it wasn't an astrometry.net thing) so I happen to have the FITS standard handy. Non-printing ASCII characters like \n may not appear in FITS headers; it is discussed in section 3.2 of the most recent FITS standards paper.
Matt Craig
Dmitriy Blinov
unread,
Nov 6, 2018, 4:17:17 PM11/6/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to astro...@googlegroups.com
Thanks for clarification Matt,
at the same time fitsverify does not complain about new line symbols:
HDU# Name (version) Type Warnings Errors 1 Primary Array 0 0
Dustin Lang
unread,
Nov 6, 2018, 5:15:45 PM11/6/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to astrometry
Hi,
I just inspected the Astrometry.net and checked out the results of a simple example case, and I don't see a "\n" character in the .new file.
You say you "read the .new file and pass its header to astropy..." ...... how are you doing the reading?? I'm wondering if your code is adding "\n".
cheers,
--dustin
Dmitriy Blinov
unread,
Nov 6, 2018, 5:44:59 PM11/6/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message