Welcome to iraf.net Sunday, May 19 2024 @ 09:24 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 photometry data pre-reduced by idl cannot be opned by iraf
   
china_108
 03/16/2010 04:37AM (Read 1950 times)  
++---
Junior

Status: offline


Registered: 09/24/2008
Posts: 25
I've got some data pre-reduced by IDL(flat, bias and dark) and now I need to perform photometry on them using IRAF. The pre-reduced data is still in fit format and can be open directly using ds9. But the problem is that it cannot be opened by IRAF. It says "cannot open pixel file xxx.fit".

 
Profile Email
 Quote
fitz
 03/16/2010 04:37AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Please post a sample image to the anonftp at ftp://iraf.noao.edu/pub Otherwise it is impossible to guess what might be going on.-Mike

 
Profile Email
 Quote
china_108
 03/16/2010 04:37AM  
++---
Junior

Status: offline


Registered: 09/24/2008
Posts: 25
Thank you so much, Mike. I 've already posted the two files there. Please see china_108.fits, which is the original data and china_108.fit, which is the pre-reduced data done by idl.

 
Profile Email
 Quote
fitz
 03/16/2010 04:37AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I think the problem is due to the current FITS kernel implementation: The original image is of type 'ushort', a 16-bit pix with a BZERO=32768 to make all values positive. Following the IDL processing the image is of type real (BITPIX=-32) however the BSCALE/BZERO keywords haven't been removed.DS9 is apparently properly applying the scale value (even though I doubt they still apply), however the FITS kernel doesn't fully implement this. On an Intel system the pixels are of order -2e-9 to 2e9, on a PPC or Sun system I see the same truncation error, but I think this is bogus. What's likely happening is there is some sort of floating-point error and the error recovery is overwriting the real error with something generic about not being able to read the pixels.In any case, the workaround is to use HSELECT or HFIX to remove the BSCALE/BZERO keywords from the IDL-processed image (this is something that should also be done by the IDL program).-Mike

 
Profile Email
 Quote
china_108
 03/16/2010 04:37AM  
++---
Junior

Status: offline


Registered: 09/24/2008
Posts: 25
Thank you so much, Mike. Actually I checked your other replies to a similar problem. https://iraf.net/phpBB2/viewtopic.php?p=1461901And iraf can now open the pre-reduced data with BZERO/BSCALE removed using HEDIT.

 
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