Login  Register

cannot open FITS image with extended header

Posted by Sergei Goshko on Jun 01, 2009; 7:02am
URL: http://imagej.273.s1.nabble.com/cannot-open-FITS-image-with-extended-header-tp3692336.html

Hi,

I cannot open FITS file downloaded from HLA (i.e. http://archive.stsci.edu/cgi-bin/hla/getdata.cgi?download=1&dataset=hlsp_coma_hst_acs-wfc_v19_f814w&filename=hlsp_coma_hst_acs-wfc_v19_f814w_v1_ivm-drz-cl.fits )

The file has extended FITS header and I believe it confuses ImageJ.
The message I get is "This does not appear to be a FITS file."
The image can be opened with no problem by SAO DS9 viewer. SAO shows both headers.
I just downloaded latest release of ImageJ 1.41 and the problem is still there.
Is there any work around?

Thank you.
Sergei


The header of the image above looks like:

SIMPLE  =                    T / Fits standard                                  
BITPIX  =                   16 / Bits per pixel                                
NAXIS   =                    0 / Number of axes                                
EXTEND  =                    T / File may contain extensions                    
ORIGIN  = 'NOAO-IRAF FITS Image Kernel July 2003' / FITS file originator        
IRAF-TLM= '10:58:58 (24/07/2007)' / Time of last modification                  
NEXTEND =                    3 / Number of standard extensions                  
DATE    = '2007-02-19T22:26:34' / date this file was written (yyyy-mm-dd)      
.............
END                                                                            
XTENSION= 'IMAGE   '           / Image extension                                
BITPIX  =                  -32 / Bits per pixel                                
NAXIS   =                    2 / Number of axes                                
NAXIS1  =                 4225 / Axis length                                    
NAXIS2  =                 4300 / Axis length                                    
PCOUNT  =                    0 / No 'random' parameters                        
GCOUNT  =                    1 / Only one group                                
ORIGIN  = 'NOAO-IRAF FITS Image Kernel July 2003' / FITS file originator        
EXTNAME = 'SCI     '           / Extension name                                
EXTVER  =                    1 / Extension version                              
DATE    = '2007-02-19T22:26:35' / Date FITS file was generated                  
IRAF-TLM= '11:00:08 (24/07/2007)' / Time of last modification                  
INHERIT =                    T / inherit the primary header                    
EXPNAME = 'j9ty19xyq                ' / exposure identifier                    
BUNIT   = 'ELECTRONS'          / brightness units  
....................
END
<binary data>