[AstroPy] astropy.io

Peter Weilbacher pweilbacher at aip.de
Fri Jan 12 04:21:40 EST 2018


Hi Diego,

On Thu, 11 Jan 2018, Diego Farias wrote:

> I have posted this as an issue on github also, but I think it could be
> forgotten because it is a reply to another open issue.

You might have better success to get someone to look at this, if you
also posted the FITS file in question. And also mentioning the issue ID
(which seems to be https://github.com/astropy/astropy/issues/7043).

> While using astropy.io on images with several HIERARCH cards (e.g.,
> HIERARCH ESO INS RETA2 ROT = 0.0), which are Not-STANDARD FITS format, I
> encounter with a possible bug: if I do for example
>
> hdulist = fits.open(IMAGE,mode='update')
> hdulist[0].header.set('DISPAXIS', '1')
> hdulist.close(output_verify = 'ignore')
>
> It should prevent to print any warning message, but instead I get warning
> and ALSO fixes:
>
> WARNING: VerifyWarning: Verification reported errors:
> [astropy.io.fits.verify]
> WARNING: VerifyWarning: Card 'ESO INS IMAGE DISTOR1' is not FITS standard
> (invalid value string: '7.771690e-06 / distortion coefficient').  Fixed
> 'ESO INS IMAGE DISTOR1' card to meet the FITS standard.
> [astropy.io.fits.verify]
> WARNING: VerifyWarning: Note: astropy.io.fits uses zero-based indexing.
>  [astropy.io.fits.verify]

I don't know any of the internals, but it seems to me that it is not
complaining about the ESO-style keyword naming but about the value of
the keyword, probably the lower-case 'e' of the floating-point exponent.
Maybe something to take up with ESO, if their software has written this
file.

   Peter.
-- 
Dr. Peter M. Weilbacher             http://www.aip.de/People/PWeilbacher
Phone +49 331 74 99-667                       encryption key ID 7D6B4AA0
------------------------------------------------------------------------
Leibniz-Institut für Astrophysik Potsdam (AIP)
An der Sternwarte 16, D-14482 Potsdam

Vorstand: Prof. Dr. Matthias Steinmetz, Matthias Winker
Stiftung bürgerlichen Rechts, Stiftungsverz. Brandenburg: 26 742-00/7026


More information about the AstroPy mailing list