imcomb in script help
jcadien1 wrote on Jan 31, 2011
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
plot # graphics tasks
dataio # data conversions, import export
lists # list processing
images # load needed packages
tv # image display
utilities # miscellaneous utilities
noao # optical astronomy packages
stsdas
tables
imutil
noao
digiphot
apphot
keep
{
# Execute the command.
set clobber="yes"
printf ("imcomb %s\n",args) | cl()
logout # shut down
}
I get the following errors:
ERROR: parameter `combine' not found
cl ()
cl ()
cl ()
cl ()
cl ()
apphot ()
cl ()
digiphot ()
cl ()
cl ()
cl ()
tables ()
cl ()
noao ()
cl ()
utilities ()
cl ()
tv ()
cl ()
cl ()
imutil ()
cl ()
immatch ()
cl ()
imgeom ()
cl ()
imfit ()
cl ()
imfilter ()
cl ()
imcoords ()
images ()
cl ()
cl ()
dataio ()
cl ()
plot ()
cl ()
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.
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
I could use help in solving this.
Thanks,
Jim
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
plot # graphics tasks
dataio # data conversions, import export
lists # list processing
images # load needed packages
tv # image display
utilities # miscellaneous utilities
noao # optical astronomy packages
stsdas
tables
imutil
noao
digiphot
apphot
keep
{
# Execute the command.
set clobber="yes"
printf ("imcomb %s\n",args) | cl()
logout # shut down
}
I get the following errors:
ERROR: parameter `combine' not found
cl ()
cl ()
cl ()
cl ()
cl ()
apphot ()
cl ()
digiphot ()
cl ()
cl ()
cl ()
tables ()
cl ()
noao ()
cl ()
utilities ()
cl ()
tv ()
cl ()
cl ()
imutil ()
cl ()
immatch ()
cl ()
imgeom ()
cl ()
imfit ()
cl ()
imfilter ()
cl ()
imcoords ()
images ()
cl ()
cl ()
dataio ()
cl ()
plot ()
cl ()
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.
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
I could use help in solving this.
Thanks,
Jim
Mike Fitzpatrick wrote on Jan 31, 2011
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.
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.
jcadien1 wrote on Jan 31, 2011
Thanks, Fitz
Deleting uparm dir AND re-booting did the trick. Much appreciated.
Jim
Deleting uparm dir AND re-booting did the trick. Much appreciated.
Jim
Last post on Jan 31, 2011