imred fibresponse problem
Guest wrote on Feb 21, 2007
Dear Sir, Madam,
When running dohydra, it aborts saying
SyntaxError: Error in CL script
/usr/stsci/iraf/noao/imred/src/fibers/fibresponse.cl
Duplicate keyword 'ansrecenter' in call to apscript (line 113)
Duplicate keyword 'ansrecenter' in call to apscript (line 204)
Indeed, the script shows duplicate keywords at those locations.
Is apscript supposed to be able to take duplicate keywords (as long as
the parameter is the same)? Is this an issue that I should take up with
the local Iraf support people?
I am running Pyraf on a Solaris desktop.
I hope you can help me with this.
Sincerely,
Jonathan Heiner
Post generated using Mail2Forum (http://www.mail2forum.com)
When running dohydra, it aborts saying
SyntaxError: Error in CL script
/usr/stsci/iraf/noao/imred/src/fibers/fibresponse.cl
Duplicate keyword 'ansrecenter' in call to apscript (line 113)
Duplicate keyword 'ansrecenter' in call to apscript (line 204)
Indeed, the script shows duplicate keywords at those locations.
Is apscript supposed to be able to take duplicate keywords (as long as
the parameter is the same)? Is this an issue that I should take up with
the local Iraf support people?
I am running Pyraf on a Solaris desktop.
I hope you can help me with this.
Sincerely,
Jonathan Heiner
Post generated using Mail2Forum (http://www.mail2forum.com)
Mike Fitzpatrick wrote on Feb 21, 2007
Jonathan,
For fun, let's call it a shortcoming of Pyraf that the same parameter can't be passed twice on the command line the way it's apparently legal in the CL. In CL parsing the parameters are pushed onto a stack before the call so the second value is used. I'll fix the script for the next release or you can edit a local copy for use there. I'm not aware of any other tasks that do this (it's obviously a typo) but you should probably let the local Pyraf guys know about it.
Cheers,
-Mike
For fun, let's call it a shortcoming of Pyraf that the same parameter can't be passed twice on the command line the way it's apparently legal in the CL. In CL parsing the parameters are pushed onto a stack before the call so the second value is used. I'll fix the script for the next release or you can edit a local copy for use there. I'm not aware of any other tasks that do this (it's obviously a typo) but you should probably let the local Pyraf guys know about it.
Cheers,
-Mike
Jon1234 wrote on Feb 21, 2007
Thanks for the quick reply. I will use CL for now and contact the local support folks.
--Jonathan
--Jonathan
Last post on Feb 21, 2007