Welcome to iraf.net Saturday, April 27 2024 @ 09:45 AM GMT


 Forum Index > Help Desk > IRAFNet
 Using diferent packages on Iraf Scripts
   
sebastian
 03/21/2007 05:18AM (Read 7735 times)  
+++--
Chatty

Status: offline


Registered: 03/20/2007
Posts: 45
Hello. I'm writing an iraf script and I would like to know how can I call diferent tasks (eg. forward, topolar, imstat) from whitin the srcipt itself since I can't load packages in it.
The aim of the script is to perform an homeomorphic filter on images.
I'm not very familiar with the idea of using tasks from an unix shell but probably the answer lies in there.
I would like to receive some sugestions on this subject
thank you in advance.
sincerelysebastian

 
Profile Email
fitz
 03/21/2007 05:18AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Sebastian,Packages are normally loaded from other package scripts (e.g. if you create your own package) or manually on the command line. Loading them from within scripts is also permitted but we recommend you only do it once to avoid filling the dictionary. To do this, use the defpac() CL function to check wheter the package is already loaded, if not you can load it then, e.g.[code:1:1fe5a8c09d]
if (defpac("stsdas") == no) {
stsdas
}
if (defpac("fourier") == no) {
fourier
}
[/code:1:1fe5a8c09d]Once a package is loaded you can simply use any of the tasks, note also that the end of your login.cl file contains some packages loaded by default and adding what you need to this list will also work.Cheers,
-Mike

 
Profile Email
sebastian
 03/21/2007 05:18AM  
+++--
Chatty

Status: offline


Registered: 03/20/2007
Posts: 45
thank you fitz for your fast response.
I'm will keep working on it, I will try to see If I could use the tasks "jumping" from diferent packages, e.g noao and fourier in an automated way using the script.
best regards!

 
Profile Email
   

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