Variable-length complex column array descriptors are incorrect #455
Labels
breaking-potential
Alters functionality in ways that may break prior application.
bug
Erroneous behavior of the existing code
standard
Improved compliance to FITS standard
Milestone
When storing variable-length data in FITS, the main table contains only array descriptors, which locate the data on the heap. The descriptor consists of an element count, and a heap byte offset.
However, prior to 1.18, we used the count of Java elements, rather than the count of FITS elements. Thus, when complex values were stored, the length component indicated the number of
float
ordouble
components, which are a factor of 2 larger than the number of expected complex components. While our library would read this back fine (hence tests passed), other libraries would not be able to properly read FITS produced by us as a result.This issue is resolved in PR #442
The text was updated successfully, but these errors were encountered: