FITS BZERO incorrect header value
Posted: 2018-11-24T06:54:19-07:00
Hi,
I'm using Imagick library for PHP (ImageMagick 6.9.3-7 Q16 x64 2016-03-27).
I noticed that FITS files saved by the library have a BZERO key value set to 32767.5, while the true value is 32768 (comparing raw bytes and FITS bytes).
According to convention:
true_value = BZERO + BSCALE x array_value
BSCALE is usually 1, so it's even impossible to express true integer value with a offset of 32767.5.
Do you know how to workaround this issue? I could replace header values simply replacing it with 32768, however I have no idea how it would impact further internal image calculations (substarcting, composite etc).
Kind Regards,
Gajowy
I'm using Imagick library for PHP (ImageMagick 6.9.3-7 Q16 x64 2016-03-27).
I noticed that FITS files saved by the library have a BZERO key value set to 32767.5, while the true value is 32768 (comparing raw bytes and FITS bytes).
According to convention:
true_value = BZERO + BSCALE x array_value
BSCALE is usually 1, so it's even impossible to express true integer value with a offset of 32767.5.
Do you know how to workaround this issue? I could replace header values simply replacing it with 32768, however I have no idea how it would impact further internal image calculations (substarcting, composite etc).
Kind Regards,
Gajowy