jw01571-c1071_t000_niriss_f115w-gr150r_c1d.fits.zip
FITS binary-table columns can use TDIM#n to describe the shape of one table cell. The one-dimensional column may have a header like
TFORM1 = '70D'
TDIM1 = '(70)'
Currently, FITSFiles parses the TDIM string using:
In Julia, (70) evaluates to the integer 70, not the one-element tuple (70,). BinaryField.dims expects Union{Tuple, Nothing}, so reading the table fails with:
MethodError: Cannot convert an object of type Int64 to an object of type Tuple
Multi-dimensional values such as "(5,14)" already evaluate to tuples, which is why the issue mainly appears for one-dimensional TDIM values.
I encountered this while reading vector-valued columns in JWST x1d and c1d products.
Attached is one of the c1d FITS files that caused the failure.
jw01571-c1071_t000_niriss_f115w-gr150r_c1d.fits.zip
FITS binary-table columns can use TDIM#n to describe the shape of one table cell. The one-dimensional column may have a header like
Currently, FITSFiles parses the TDIM string using:
In Julia, (70) evaluates to the integer 70, not the one-element tuple (70,). BinaryField.dims expects Union{Tuple, Nothing}, so reading the table fails with:
Multi-dimensional values such as "(5,14)" already evaluate to tuples, which is why the issue mainly appears for one-dimensional TDIM values.
I encountered this while reading vector-valued columns in JWST x1d and c1d products.
Attached is one of the c1d FITS files that caused the failure.