Welcome to iraf.net Friday, March 29 2024 @ 09:39 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Help with a simple zerocombine script
   
tasso1db
 07/22/2016 05:38PM (Read 785 times)  
+----
Newbie

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

 
Profile Email
 Quote
fitz
 07/22/2016 05:45PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The 'output' parameter is not a query parameter, try using

zerocombine (input, output=output, ......

 
Profile Email
 Quote
   
Content generated in: 0.06 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