Posted: Mon Jul 28, 2008 1:51 pm Post subject: Strange problems with cl script/parameter file
Hi Everyone,
I've been beating my head against this problem for a couple of days now, without being able to solve it myself. Maybe someone here can point me in the right direction.
I am attempting to run a cl script that someone gave me. It works for them and it works for them when they log into the same machine I am using. When I try to run the cl script (imal2.cl) myself WITHOUT a pre-existing .par file, I get the following message:
cl> imal2
ERROR: Required parameter `reference' not defined.
When I use the .par file from the person who gave me the script, I get the following message instead:
cl> imal2
unmatched quotes in prompt field for `images'
unmatched quotes in prompt field for `coords'
unmatched quotes in prompt field for `reference'
unmatched quotes in prompt field for `shifts'
unmatched quotes in prompt field for `copyorg'
'ust specify at least name,type,mode for `
unmatched quotes in prompt field for `shiftimages'
unmatched quotes in prompt field for `verbose'
'ust specify at least name,type,mode for `
unmatched quotes in prompt field for `boxsize'
unmatched quotes in prompt field for `bigbox'
'ust specify at least name,type,mode for `
unmatched quotes in prompt field for `negative'
unmatched quotes in prompt field for `autoback'
unmatched quotes in prompt field for `background'
unmatched quotes in prompt field for `lower'
unmatched quotes in prompt field for `upper'
unmatched quotes in prompt field for `niterate'
unmatched quotes in prompt field for `tolerance'
'ust specify at least name,type,mode for `
'ad mode spec `\r' in `h
in `tmplist'
'ad mode spec `\r' in `h
in `imglist'
ERROR: cannot read parameter file `scripts$imal2.par'
When I look at the parameter file, all of the parameters are enclosed by " ". However, judging from the error messages, IRAF is apparently looking for parameters to be enclosed by ` '. Does anyone know why this would happen?
It is hard to comment without seeing either the script or the parameter file, could you please post these?
If your uparm directory has a corrupted version of the parameters then you could try unlearning the task to start fresh, this might explain why you're having problems but your friend isn't.
# read the shifts
shifts_found = no
tmplist = imcefile
while (fscan (tmplist, line) != EOF) {
if (substr(line,1,7) == '#Shifts') {
shifts_found = yes
break
}
}
if (shifts_found) {}
else{
print(workimage," no shift was calculated !")
print("Continue with next frame? (yes/no)")
n=scan(tmp)
if(stridx('yY',tmp) == 0) error (1, "aborted on request")
}
images,s,a,,,,"List of images"
coords,s,a,,,,"Coordinate file"
reference,s,a,,,,"Reference image"
shifts,s,h,"",,,"Initial shift file"
copyorg,b,h,no,,,"Copy original images to org* ?\n"
shiftimages,b,h,yes,,,"Shift the images?"
verbose,b,h,yes,,,"Print the centers and shifts?\n"
boxsize,i,h,7,1,,"Size of the small centering box"
bigbox,i,h,45,1,,"Size of the big centering box\n"
negative,b,h,no,,,"Are the features negative?"
autoback,b,h,yes,,,"Find reference background level"
background,r,h,INDEF,,,"Reference background level"
lower,r,h,INDEF,,,"Lower threshold for data"
upper,r,h,INDEF,,,"Upper threshold for data"
niterate,i,h,5,2,,"Maximum number of iterations"
tolerance,i,h,0,0,,"Tolerance for convergence\n"
I don't see anything obviously wrong with either the parameter file or the script. Did unlearning the task change anything? What happens if you create a new login.cl/uparm in some other directory and declare the task from there? I'm trying to work out whether this is a problem with your account, rarely there are problems with e.g. a file not containing an EOF (sometimes happens with emacs), but since things seem to work for me and your friend, it sounds like something in your setup is the issue.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum