Welcome to iraf.net Sunday, May 12 2024 @ 08:56 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 dealing with non-standard FITS files.
   
rowe
 12/19/2007 12:13AM (Read 3183 times)  
+----
Newbie

Status: offline


Registered: 02/21/2006
Posts: 3
I have some CCD images that IRAF simply skips when trying to read. They all have this line at the top of the header:SIMPLE = F / FITS StandardFrom reading around the F seems to indicate that the file has some non-standard formating. The FITS file can be displayed with DS9 just fine. Anyway to access this file within the IRAF environment?Thanks,
Jason

 
Profile Email
 Quote
fitz
 12/19/2007 12:13AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
SIMPLE=F means, according to the FITS standard, that the file is NOT FITS standard. IRAF (both the FITS kernel and the RFITS task) check this field and simply punt if it isn't true, the CFITSIO code used in DS9 may be more lenient. In practice many files put SIMPLE=T even if they use non-standard conventions (e.g. the ESO HIERARCH keywords) and the tasks read them fine.I think your options are to change the value, or look at something like the IMPORT task to read the image as a raw raster file. If the file really isn't conforming then changing the value may still be an error. What's the origin of these files?-Mike

 
Profile Email
 Quote
rowe
 12/19/2007 12:13AM  
+----
Newbie

Status: offline


Registered: 02/21/2006
Posts: 3
I figured it'd be something involving an edit to the header. The only way I've figured out how to do this is using the cfitsio routines. I read in the FITS file then write out a new FITS file with the SIMPLE=F changed to SIMPLE=T. It's not an elegant solution as it's heavy on disk io and I have about 400 GBs of images. I just want to do some quick stats on the files with IRAF rather than having to write my own routines to do this. I'm guessing there's no easy way to make the software assume the F-type is the same as the T-type?Thanks,
Jason

 
Profile Email
 Quote
fitz
 12/19/2007 12:13AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
[quote:65f4fb2e5d]I'm guessing there's no easy way to make the software assume the F-type is the same as the T-type? [/quote:65f4fb2e5d]Not unless you want to edit code and rebuild the system.The good news is, you can use CFITSIO to rewrite the files and get your holiday shopping done while it processes the 400Gb of data. 8-)Cheers,
-Mike[/quote]

 
Profile Email
 Quote
   
Content generated in: 0.15 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login