Posted: Mon Oct 05, 2009 8:56 pm Post subject: splot specturm
Hi! I am a beginner on iraf script.I am writing a script that would input a .fit image file then rspectext the image file to an IRAF image spectra and at last splot the output iraf spectra. And my script look like this:
procedure askchan
string input
string output
begin
string image10, image20
image10=input ; rspectext(image10)=output
splot(output)
end
But when I try running the script I keep having errors, can somebody help?
You didn't say what error you were seeing specifically. Since the task has parameters (i.e. anything declared between the 'procedure' and the 'begin') you'll need to declare the task as
Code:
cl> task askchan = /path/askchan.cl
If you want the input/output parameter to be supplied on the command line you'll need to declare them as part of the procedure statement,i.e.
fitz, I try to rewrite my script according to you instruction as follow
procedure askchan (input, output)
string input
string output
begin
string in, out
in=input ; out=output
rspectext(in)
splot(out)
end
I try to run it but still have an error which saids "task "rspectext" not found"
can anyone help me figure out what is wrong?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum