Problem with depth ( or smthg else ) with FITS files
Posted: 2009-06-09T08:04:49-07:00
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
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