Welcome to iraf.net Friday, May 17 2024 @ 11:49 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 calling an iraf routine from c
   
dbrenner
 07/23/2008 01:59PM (Read 2047 times)  
++++-
Regular Member

Status: offline


Registered: 05/05/2006
Posts: 115
Can it be done? How?
Thanks.

 
Profile Email
 Quote
fitz
 07/23/2008 01:59PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
In the sense that I suspect you're asking (e.g. invoking IMCOMBINE as a procedure call), then, no. There are lots of aspects to executing a task such as parameters, graphics, i/o redirection, etc that are supplied by the CL and have no equivalents in any existing C lib.That said, you might have a look at creating a #!cl script (http://iraf.noao.edu/iraf/web/new_stuff/cl_host.html) as a way to create a host command out of the task you want, then calling it from C could be as simple as a system() command with an appropriately constructed command-line. Alternatively, your program might be restructured as something like a Python script that makes mixed use of C, IRAF and other components to achieve the same end. If all you really need is a quick and dirty way to rotate your image by 23.2 degrees then the #!cl trick is a quick way to call the task that'll do it.Cheers,
-Mike

 
Profile Email
 Quote
dbrenner
 07/23/2008 01:59PM  
++++-
Regular Member

Status: offline


Registered: 05/05/2006
Posts: 115
Thanks.
I looked at the FAQ section on Unix-shell scripts but didn't get anywhere. I'll take a look at the page you recommended.

 
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