astrojs / fitsjs

JavaScript library for reading the FITS astronomical format. Functionality includes reading of images, data cubes, compressed images, binary and ascii tables.
http://astrojs.github.io/fitsjs/
MIT License
85 stars 21 forks source link

Interpretting incorrect values for a very small number of pixels in compressed images. #10

Closed kapadia closed 11 years ago

kapadia commented 11 years ago

Perhaps an endian issue. These pixels appear hot (e.g. values are much larger than surrounding pixels). Observing four failures of:

Expected 26450.36328125 to be close to -4.440351

for a row of pixel in CFHTLS_02_i_sci.fits.fz.

kapadia commented 11 years ago

Whew, fixed. In some cases, the incorrect typed array was initialized.