Thank you. I should have known that
I struggled a bit and finally got it working yesterday. Unfortunately I decided to change the name of the 'daoeditfile' variable/parameter, and got an error. I then changed it back to the way it was when it worked, and got the same error. Unlearning the parameters for the tasks involved didn't fix it either. Below is the code and the error message:[code:1:646a1b7a4e]# The main task for the pipeline, from which
# other tasks are calledprocedure main (imagenames)# PARAMETER DECLARATIONS #string imagenames {prompt="file containing filenames of FITS frames"}# LIST-DIRECTED STRUCTS #struct *imagenames_list#-------------------------------------------------------#begin# VARIABLE DECLARATIONS # string dummy, filename, sourcefile, daoeditfile#-------------------------------------------------------# imagenames_list = imagenames # Makes the list of image names list-directed
dummy = fscan(imagenames_list, filename) # Assigns first image name to filename
display(filename,1) # Displays the frame with name filename in ds9 sourcefile = mktemp("tmp$source")
daoeditfile = mktemp("tmp$daoedit") getsources(sourcefile,daoeditfile)
daoedit.icommands = daoeditfile#-------------------------------------------------------## DELETE TEMPORARY FILES # delete(sourcefile, ver-, >& "dev$null")
delete(daoeditfile, ver-, >& "dev$null")end
[/code:1:646a1b7a4e][code:1:646a1b7a4e]# Task getsources allows the user to select
# sources of interest through ds9 and to
# assign a flag to each one, indicating whether
# it is a target, comparison or standard. In
# the 'daoeditfile', the flags are replaced
# with an 'a', allowing this file to be passed
# to daoedit.icommandsprocedure getsources(sourcefile,daoeditfile)begin# VARIABLE DECLARATIONS # string wcs, key, command
real x, y#----------------------------------------------------------#
while (fscan (imcur, x, y, wcs, command) != EOF)
{
key = substr (command, 1, 1)
if ((key == "t") || (key == "c") || (key == "s"))
{
print(x," ",y," ",wcs," ",command, >> sourcefile)
print(x," ",y," ",wcs," ","a", >> daoeditfile)
}
else if (key == "q")
break
else
beep
}end
[/code:1:646a1b7a4e]$wium> main
file containing filenames of FITS frames (list.txt):
z1=2325.564 z2=8213.384
ERROR: Required parameter 'daoeditfile' not defined.
"getsources(sourcefile,daoeditfile)"
line 31: wium$main.cl
called as: 'main ()'
$wium>