Welcome to iraf.net Friday, May 17 2024 @ 10:25 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 complex array in imh file
   
rclark
 11/11/2008 07:21PM (Read 2018 times)  
+----
Newbie

Status: offline


Registered: 10/15/2008
Posts: 11
I have several imh/pix files, each containing an array of type complex.
How do I convert them to fits files?wfits seems to only extract the real part.I've tried some other non-iraf fits utilities that recognize iraf
files but they choke on the complex data type.Is there some utility that will split the real and imaginary
parts into separate files?Or is there a way to convert it 'in place' by
doctoring the headers to redefine the m x n
complex array as a real array of 2 x m x n?Richard

 
Profile Email
 Quote
valdes
 11/11/2008 07:21PM  
+++++
Active Member

Status: offline


Registered: 11/11/2005
Posts: 728
Wow, I had long forgotten IRAF allowed complex images! The sad answer is that the IRAF FITS kernel doesn't allow complex values and there are not many tasks that correctly handle complex values. There may be something useful but the only thing I can think of is to use listpixel or wtextimage to dump the values out as text and the use an editor, filter (like sed), or a script to extract the information to another text file. You can then convert it back to an image with something like rtextimage. You can go directly to FITS by specifying something like[code:1:24f5396fc9]
rtextimage abc.txt abc.fits
[/code:1:24f5396fc9]I hope this helps. Maybe someone will have another idea. It is possible the ttools package might be useful for this problem.Yours,
Frank Valdes

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