Hi. If this has been addressed before I did not find it.
I am on a MAC 10.9.3 Mavericks computer.
According to the internet I can call a IRAF task by doing
% $iraf/bin.sparc/x_images.e listpix @listpix.par
I have my parameters in *.par files, for example:
for i in "${f[@]}"; do
cat \$this->_split2($m[0])${path}/${cluster}/objmask_${i}.par <<EOL
objmasks.images = "s${cluster}_F${i}.fits"
objmasks.objmasks = "s${cluster}_$F{i}.mask"
objmasks.omtype = "boolean"
objmasks.skys = ""
objmasks.sigmas = ""
objmasks.masks = "!BPM"
objmasks.extnames = " "
objmasks.logfiles = "STDOUT"
objmasks.blkstep = 1
objmasks.blksize = 10
objmasks.convolve = "block 11 11"
objmasks.hsigma = 1.
objmasks.lsigma = 10.
objmasks.hdetect = yes
objmasks.ldetect = no
objmasks.neighbors = "4"
objmasks.minpix = 2
objmasks.ngrow = 2
objmasks.agrow = 2.
objmasks.mode = "al"
# EOF
EOL
cat ${path}/${cluster}/objmask_${i}.par; done
I then try to run the OBJMASK routine, which is part of NPROTO:
for i in "${f[@]}"; do /iraf/iraf/bin.macintel/x_nproto.e objmasks > @objmask_${i}.par; done
The shell then outputs nothing.
I then try to get into the task OBJMASK through the Bash shell.
I do
$ ./x_nproto.e
This works well, but when I put
\$this->_split2($m[0])objmask
they shell complains with
\$this->_split2($m[0])ERROR (0, "Iraf Main: Unknown task name (objmasks)")
Do you have any ideas?
The command is given in the correct folder holding
x_nproto.e. Task OBJMASK exists in
x_nproto.e although
nproto.cl says that
ask objmasks = "nproto$ace/objmasks.cl"
Is $ace doing something funny here?
Thank you