Repository navigation
Conversation
Works by serializing fill_value. A problem is that now even integers go this route, and TNULL is no longer used.
|
p.s. Test failure is because it now requires yaml to run - they pass locally. Clearly, there should be one with and one without yaml. |
|
I'm not sure this is a good route, for the reason you mentioned about The recommended route for masked float data is to use the |
|
In the example above it seems like the masked |
|
Ah, if there is a standard, that is definitely the way to go! And better for my |
|
As part of trying to look at where this might happen: astropy/astropy/io/fits/convenience.py Lines 487 to 500 in 7fb6027 |
|
@taldcroft - looking more at the conversion of tables to FITS, could it be that something was missed in changing the meaning of astropy/astropy/io/fits/convenience.py Lines 475 to 478 in 7fb6027 |
I think you are right. But there is still more that seems just broken, even when Things that seem wrong:
This comment below completely confuses me. From the code above it seems that it can be reached only for int-type data, but the comment refers to character data. astropy/astropy/io/fits/convenience.py Line 495 in 7fb6027 |
|
So it looks like both on the writing and on the reading side there are some problems, with the writing one perhaps just the oversight of Need to see where the reading comes from... |
|
Somehow I had thought that writing losslessly to FITS was working better than this. Note that |
|
A less invasive solution to A separate question perhaps remains whether the fill value should be serialized, if only for the |
@taldcroft - while looking at writing masked data to FITS, I noticed that it does not currently work for non-integer data. It seemed the solution was simple: just serialize fill_value. I tried that in this draft.
A problem is that now even integers go this route, and TNULL is no longer used, so perhaps this is too blunt.
Anyway, mostly for discussion for now.