Problem with depth ( or smthg else ) with FITS files

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Dark_Heros_117

Problem with depth ( or smthg else ) with FITS files

Post by Dark_Heros_117 »

Hello,
I had been trying to normalize a FITS image for 2 days. The problem il that the image come from IDL and so the header starts this way (then there are astro data, irrelevant to my problem) :

SIMPLE = T / Written by IDL: Sun Jun 7 11:47:27 2009
BITPIX = -32 / IEEE single precision floating point
NAXIS = 2 / number of data axes
NAXIS1 = 4096 / length of data axis 1
NAXIS2 = 4096 / length of data axis 2
EXTEND = T / FITS dataset may contain extensions
COMMENT = 'ASTEPSUD'
COMMENT Astrophysics Supplement Series v44/p363, v44/p371, v73/p359, v73/p365.
COMMENT Contact the NASA Science Office of Standards and Technology for the
COMMENT FITS Definition document #100 and other FITS information.
BZERO = '0 ' / offset data range to that of unsigned short
BSCALE = 1 / default scaling factor

When I -normalize this FITS, the out file is not normalize. Let me explain you the problem !
Using the basic image ASUD...... I can normalize it and I can see much more star after the "normalization".
But after a sophisticated treatment using IDL a new image is created C-ASUD....
The problem is that IDL works with 32 floating ( I think ) and Imagemagick and the fonction normalize are clearly not working the same way with that than with the original file ASUD which header is :

SIMPLE = T / file does conform to FITS standard
BITPIX = 16 / number of bits per data pixel
NAXIS = 2 / number of data axes
NAXIS1 = 4096 / length of data axis 1
NAXIS2 = 4096 / length of data axis 2
EXTEND = T / FITS dataset may contain extensions
COMMENT = 'ASTEPSUD'
COMMENT Astrophysics Supplement Series v44/p363, v44/p371, v73/p359, v73/p365.
COMMENT Contact the NASA Science Office of Standards and Technology for the
COMMENT FITS Definition document #100 and other FITS information.
BZERO = 32768 / offset data range to that of unsigned short
BSCALE = 1 / default scaling factor

Can you help me ? I have tried -depth 32 -define:quantum .... -colors etc... But After the normalization the Stars did never appeared ! (Solutions I found in a previous topic but they didn't work out for me )
If someone want the two files I can provide them ! Just leave an email by MP !

Best Regards
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with depth ( or smthg else ) with FITS files

Post by magick »

Post a URL to one or a few of your FiTS images. We need to download it and reproduce the problem before we can offer any help.
Dark_Heros_117

Re: Problem with depth ( or smthg else ) with FITS files

Post by Dark_Heros_117 »

Here come my files ...

http://dl.free.fr/rOM8F2lJD The ASUD file with a working normalization, directly from the CCD.

http://dl.free.fr/rFPYdVBbF The C-ASUD after treatment of the ASUD one by IDL. Normalization not working !

For help : If in IDL we ask to save the C-ASUD file using unsignedint then the normalization is working well with it but for physical studies we need to save like it is on the URL !

Thanks for your incoming help !

PS: Clic on "Télécharger ce fichier" (underlined) on the third line under "Service d'envoi de fichiers http://dl.free.fr"
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with depth ( or smthg else ) with FITS files

Post by magick »

Download http://www.imagemagick.org/C-ASUD-2008- ... -30-11.png. Is this close to what you are looking for? We're using ImageMagick 6.5.3-3 at Q16. You can create a Q32 version of ImageMagick for additional precision or try an HDRI version.
Dark_Heros_117

Re: Problem with depth ( or smthg else ) with FITS files

Post by Dark_Heros_117 »

I am trying to install from source the 6.5.3-3 version on ubuntu but It is not working !
Can you release me the binairies ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with depth ( or smthg else ) with FITS files

Post by magick »

We don't do binaries. Typically you grab the .gz source distribution and type
  • tar xvfz ImageMagick-6.5.3-3.tar.gz
    cd ImageMagick-6.5.3
    ./configure
    make
    make install
Post Reply