Posted: Mon Jan 31, 2011 8:13 pm Post subject: imcomb in script help
Friends,
For s few years I have been reducing some images using bash scripts calling an IRAF task. During this time I have no upgraded iraf, nor my OS, Kubuntu linux, 2.6.24-19. Two days ago one of the procedures stopped working.
What I do here is in a bash script I set up a cmd string, which I pass to an iraf script. Here is the one not working, with no essential parts left out.
BASH script::
ls -1 image*.fit > list
cmd=$(echo "@list" "dark_ave.fits" "combine=median" "reject=sigclip")
mk_dark_ave.cl $cmd
Here I make a list of files and use it in a cmd which gets passed to iraf.
Here is the contents of $cmd;
echo $cmd
@list ave.fits combine=median reject=sigclip
IRAF script:
#!/iraf/irafbin/bin.redhat/cl.e -f
logver = "IRAF V2.12.2a July 2004"
set arch=.redhat
set home = "/root/"
set imdir = "./"
set uparm = "home$uparm/"
set clobber = yes
stty xgterm
I have unlearned imcomb, and done a mkiraf, with no success.
Given that this has worked for several years, with no changes really bothers me.
This exact command line works from within in iraf window, both cl and ecl
If you're positive nothing has changed with either the scripts or the iraf installation, then the /root/uparm directory is where the parameters are being stored but you didn't confirm this is what is being used when you do an unlearn from the CL. Perhaps you were earlier running as the root user and now its as yourself?
Try deleting the contents of /root/uparm and/or put the unlearn in the script itself to ensure a fresh set of default params. The only other explanation is that you've done all this but there is now a new value of $iraf that is pointing to a different iraf installation with a different immatch$imcombine.par file from which the defaults are read.
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