Welcome to iraf.net Thursday, April 18 2024 @ 02:44 PM GMT
fmeynadier |
03/03/2006 05:19PM (Read 4320 times)
|
|
|
Status: offline
Registered: 12/27/2005
Posts: 1
|
Hello,Due to a disk crash I had to reinstall iraf and pyraf. (my system is now Mandriva 2006. Proceeding as I used to, xgterm graphs won't display with pyraf. Error message :
--> splot spectre.fits
Traceback (innermost last):
File "<CL script CL1>", line 1, in ?
TypeError: list indices must be integersI don't have any idea of what I have to fix... Graphs display well with cl/ecl.
So I suppose this concerns the pyraf team, but I was wondering if anybody had faced the same problem and could share the solution on this forum.- besides, I found that CL scripts standards are more strict in v2.12.2a : if I am not mistaken, variables *must* be declared right after the "begin" statement. Some of my old (working !) scripts were c++/c99 style, with declarations in the middle of the script. This doesn't seem to work anymore. To my surprise, the cl gives the correct faulty line, whereas the ecl does not !--
Frédéric Meynadier
|
|
|
|
fitz |
03/03/2006 05:19PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
I can't help with the pyraf part of your question, you might try the STScI helpdesk (help@stsci.edu) if you don't get an answer here. First thing to try though is to unlearn the task, this may be a simple parameter translation problem.You're right that the error line numbers are different in the cl vs. ecl, this is in part due to how internal CL errors are handled. However, declarations in the middle of a procedure have never been allowed and should be an error in all cases. The exception is perhaps when using redirection on scripts (e.g. "cl < foo.cl") versus procedure scripts. Can you post an example of one of these inline declarations that (used to) work?Cheers,
-Mike
|
|
|
|
Anonymous: |
03/03/2006 05:19PM
|
|
|
|
[quote:e1798d952a="fitz"]I can't help with the pyraf part of your question, you might try the STScI helpdesk (help@stsci.edu) if you don't get an answer here. First thing to try though
is to unlearn the task, this may be a simple parameter translation problem.
[/quote:e1798d952a]Thanks for the trick, but it does not work. I will try to contact STScI.[quote:e1798d952a="fitz"]You're right that the error line numbers are different in the cl vs. ecl, this is in part due to how internal CL errors are handled. However, declarations in the middle of a procedure have never been allowed and should be an error in all cases.
[/quote:e1798d952a]My mistake : tolerance for variable declaration in the middle of a procedure is only a pyraf feature. I didn't realise that my "testing" system was under pyraf.So, apologies for my off-topic post !And many thanks for the development of ecl. Tab completion and, more generally, command-line editing were a real need (which were my main motivations for installing pyraf...). Maybe one suggestion : would it be possible to tab-complete paths without having to type "./" at the beginning ?Cheers,--
Frédéric Meynadier
|
|
|
|
| |
|
Content generated in: 0.08 seconds |
|