On Nov 23, 2010, at 10:21 PM, David Berry wrote:
> Do all conversions (e.g. _double -> _integer, etc) handle bad values
> incorrectly, or is it just _integer -> _word ?
>
Confirmed. Well, it depends on the size. For example, reading a VAL__BADD into an integer fails because of the size test regardless so this is only an issue when you map something into a larger size.
Mapping a _REAL into _DOUBLE ends up with all the VAL__BADRs coming out in the double array as VAL__BADR and not VAL__BADD. This seems like a bug to me. Surely the point of the bad value and the automatic type conversion is that badness will be converted?
I'll fix it on Friday unless Brian stops me.
--
Tim Jenness
Joint Astronomy Centre
|