Welcome to iraf.net Friday, May 17 2024 @ 04:32 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 unpacking complex
   
duvall
 02/16/2011 04:50PM (Read 1553 times)  
+++--
Chatty

Status: offline


Registered: 03/08/2006
Posts: 59
I use a vector subroutine aupxr to unpack a series of complex numbers into real and imaginary parts. When the input number is complex(0.,0.), the output is 128. for both the real and imaginary parts. But only iraf v15 sees this. Iraf v14 (both on linux) sees the correct thing. It doesn't seem to matter if I do the conversion on v14 or v15, the output is seen as wrong on v15 and correct on v14.I made an output fits image that shows this. It is on http://soi.stanford.edu/~duvall/Iraf/ctestr.fits. It is a 1-d image with the first half of the line should be zero. Listpixels shows the problem. Iraf v15 really sees the pixels as 128 as one can find by squaring the image.
Tom

 
Profile Email
 Quote
fitz
 02/16/2011 04:50PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The good news is that it appears the FITS file actually has zero values on disk, the bad news is that it appears to be similar to another recent report in which reading real zero values from FITS produces the 128 value. A quick test program confirms that the aupxr() routine works as expected.I'm looking at it now, will post back when I get a solution.

 
Profile Email
 Quote
   
Content generated in: 0.09 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