Welcome to iraf.net Saturday, May 11 2024 @ 06:29 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 The syntax error: **: }
   
cosmologist
 01/24/2011 03:40PM (Read 1686 times)  
++++-
Regular Member

Status: offline


Registered: 03/30/2009
Posts: 117
Does anyone know what this syntax error might mean?[code:1:988210480c]
** Syntax error, line 1315
**: }
[/code:1:988210480c]It says line 1315, but how do I know which file is that?

 
Profile Email
 Quote
fitz
 01/24/2011 03:40PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
It might help to know what command you are trying to use ..... Otherwise, type d_trace before running a script to trace its execution.

 
Profile Email
 Quote
cosmologist
 01/24/2011 03:40PM  
++++-
Regular Member

Status: offline


Registered: 03/30/2009
Posts: 117
I am using the wfreduce task in wifes package:[code:1:2d28c919e7]wifes> wfreduce
** Syntax error, line 1315
**: }
[/code:1:2d28c919e7]with d_trace:[code:1:2d28c919e7]wifes> d_trace wfreduce
ERROR: trace arg should be an integer
called as: `d_trace (wfreduce)'
[/code:1:2d28c919e7]wifes> d_trace
12 1692+3: end
wifes> wfreduce
----- task cl - line 12 (CALL) -----
12 1684+6: call wfreduce
12 1690+3: exec
----- exec script wfreduce (wifes$wfreduce.cl) - line 12 -----
** Syntax error, line 1315
**: }
^
----- task wfreduce - line 1315 (END) -----
1315 1696+3: end
----- task cl - line 12 (END) -----
12 1693+3: end
wifes> Could the problem in line 12 then?

 
Profile Email
 Quote
fitz
 01/24/2011 03:40PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
'd_trace' is a single command.Otherwise, look at line 1315 of the wfreduce.cl script and check for a missing match to the close brace.

 
Profile Email
 Quote
cosmologist
 01/24/2011 03:40PM  
++++-
Regular Member

Status: offline


Registered: 03/30/2009
Posts: 117
[code:1:b79df02027]
# Subtract sky from object
imdelete ( "s"//object//"_a", ver-, >& "dev$null" )
printlog ( "Subtracting combined and scaled sky frame..", logfile=wflogstr,
ver+ )
gemarith ( object//"_a", "-", object//"_b", "s"//object//"_a", \
fl_vardq=fl_vardq, logfile=nslogstr, ver- )
if (gemarith.status != 0) {
printlog ( "***GEMARITH returned with an error***", \
logfile=wflogstr, ver+ )
goto cleanup
} imdelete (object//"_a", ver-, >& "dev$null")
copy ( "s"//object//"_a.fits", object//"_a.fits", ver- )
printlog ( "Done\n", logfile=wflogstr, ver+ )
if (disp) {
print ( "Displaying result of subtracting sky frame: s"//object//"_a\n" )
display ( object//"_a[sci,1]", frame=1, fill+ )
}
date | scan(sdate)
nhedit ( object//"_a[0]", "SUBSKYIM", sdate, "WFREDUCE doskyframes "// \
"step completed", add+, delete-, ver-, show-, update+ )
nhedit ( object//"_b[0]", "SUBSKYIM", sdate, "WFREDUCE doskyframes "// \
"step completed", add+, delete-, ver-, show-, update+ )
nhedit ( "s"//object//"_a[0]", "SUBSKYIM", sdate, "WFREDUCE doskyframes "// \
"step completed", add+, delete-, ver-, show-, update+ )}It seems that there is an extra "}" in the end![/code:1:b79df02027]

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