Closed vforchi closed 3 years ago
In general, STIL doesn't like working with arrays of wrapper classes like java.lang.Boolean
where primitive arrays can be used instead. You should present it with a boolean[]
array instead of a java.lang.Boolean[]
array. It is possible to write boolean[]
arrays to FITS:
% stilts tpipe in=:test:3,f cmd='keepcols f_boolean' out=x.fits
% stilts tpipe in=x.fits
Table name: votable
+-----------------------+
| f_boolean |
+-----------------------+
| (false, false, false) |
| (true, false, false) |
| (false, true, false) |
+-----------------------+
Having said that, I'm not sure why there's a difference between VOTable and FITS handling here. If you still have problems, get back to me.
I see, thanks.
Hi,
I'm using STIL in my TAP server, and I noticed that I cannot serialize a boolean array to FITS (works fine with VOTABLE). If I try I get this error:
I don't see a boolean array in the codecs:
Is this the reason?
Cheers, Vincenzo