nature: 100% reproducible
the PDL command "wfits" allows the user to store strings in a fits format file, via the use of gethdr and sethdr. I decide to try to use this facilty to store long strings describing my data. I created the strings using Data::Dumper.
here's how to create the bug:
use Data::Dumper to store a multi-level hash into a string and place this string in the piddle header hash.
you can read it back so you know this step worked.
Next write it to a fits format file using wfits.
now read the fits file and recover the stored string. you will see that it is truncated.
Perhaps there is undocumented limit of the size of strings in the fits file format?
Log in to post a comment.