Status: offline
Registered: 07/22/2016
Posts: 2
|
Hello,
I am trying to write a very simple reduction pipeline for my schools observatory. However I am getting the following error: "Too many positional arguments for 'zerocombine'" on line 12. I'm slightly confused as to how I could have too many arguments. I originally used mkscript to make the zerocombine part. I then tried adding the user defined variables for the input files names and output file name. This is my very first shot at scripting, as I have been doing reductions manually in IRAF. Anyone have any suggestions? Here is the code:
procedure masterBias (input, output)
string input ="" {prompt="Please specify bias frames"}
string output ="" {prompt="Please enter desired name for master bias"}
begin
#Here are the parameter declarations
string input
string output
zerocombine (input,output, combine="average", reject="minmax", ccdtype="zero",process=no, delete=no, clobber=no, scale="none", statsec="", nlow=0, nhigh=1,nkeep=1, mclip=yes, lsigma=3, hsigma=3, rdnoise="0.", gain="1.",snoise="0.", pclip=-0.5, blank=0)
end
Thanks, Dom
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
The 'output' parameter is not a query parameter, try using
zerocombine (input, output=output, ......
|