Welcome to iraf.net Saturday, April 27 2024 @ 09:45 AM GMT
sebastian |
03/21/2007 05:18AM (Read 7735 times)
|
|
|
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
|
|
|
|
fitz |
03/21/2007 05:18AM
|
|
|
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
|
|
|
|
sebastian |
03/21/2007 05:18AM
|
|
|
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!
|
|
|
|
| |
|