Search found 4 matches

by Gajowy
2018-11-26T23:04:02-07:00
Forum: Bugs
Topic: FITS BZERO incorrect header value
Replies: 6
Views: 10296

Re: FITS BZERO incorrect header value

Thank you in advance!

Gajowy
by Gajowy
2018-11-26T06:12:02-07:00
Forum: Bugs
Topic: FITS BZERO incorrect header value
Replies: 6
Views: 10296

Re: FITS BZERO incorrect header value

Simplest code below. You can use any input file, eg. the one from Imagick set.

Code: Select all

<?php
$im= new Imagick('rose.png');
$im->setFormat('FITS');
$im->setImageDepth(16);
$im->writeImage('rose.fit');
$im->destroy();
?>
by Gajowy
2018-11-24T18:34:52-07:00
Forum: Bugs
Topic: FITS BZERO incorrect header value
Replies: 6
Views: 10296

Re: FITS BZERO incorrect header value

It's exactly the same: SIMPLE = T BITPIX = 16 NAXIS = 2 NAXIS1 = 1936 NAXIS2 = 1096 BSCALE = 1 BZERO = 32767.5 DATAMAX = 65535 DATAMIN = 0 HISTORY e:\Program Files\ImageMagick-6.9.10-Q16\\index.html END Kindly ask for solution. Regards, Gajowy
by Gajowy
2018-11-24T06:54:19-07:00
Forum: Bugs
Topic: FITS BZERO incorrect header value
Replies: 6
Views: 10296

FITS BZERO incorrect header value

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...