[AstroPy] astropy.io.fits

Paul Kuin npkuin at gmail.com
Mon Nov 30 10:42:59 EST 2015


Well, I did work around it, NP. It would be good to have that done some
time.  I was creating an ascii table from the FITS version and for
consistency I changed all the NaN and -2147483648 to blanks. It was one
shot thing. Keep up the good work!

Cheers,

    Paul

On Mon, Nov 30, 2015 at 2:00 PM, Erik Bray <embray at stsci.edu> wrote:

> On 11/26/2015 04:28 PM, Paul Kuin wrote:
>
>> I was reading in a fits binary table.
>>
>> Some fields have defined TNULL??=-2147483648, while TFORM?? = 'J       '
>>
>> If I display the variable, it shows -2147483648, while it should be set
>> to Nan,
>> or blank, I think.
>>
>> Is that a bug or a feature?
>>
>
> Looks to be a bug, more or less.  I only recently implemented working(?)
> support for the BLANK keyword in image arrays [1].  Proper support for
> TNULL would involve applying the same work to table columns, which should
> be straightforward.  I think just nobody's ever asked.
>
> Erik
>
>
> [1] https://github.com/astropy/astropy/pull/3865
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> https://mail.scipy.org/mailman/listinfo/astropy
>



-- 

* * * * * * * * http://www.mssl.ucl.ac.uk/~npmk/ * * * *
Dr. N.P.M. Kuin      (n.kuin at ucl.ac.uk)
phone +44-(0)1483 (prefix) -204927 (work)
mobile +44(0)7806985366  skype ID: npkuin
Mullard Space Science Laboratory  – University College London  –
Holmbury St Mary – Dorking – Surrey RH5 6NT–  U.K.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20151130/cf451380/attachment.html>


More information about the AstroPy mailing list