Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

imcomb in script help

 
Post new topic   Reply to topic    iraf.net Forum Index -> Applications
View previous topic :: View next topic  
Author Message
jcadien1



Joined: 28 Nov 2006
Posts: 12

PostPosted: Mon Jan 31, 2011 8:13 pm    Post subject: imcomb in script help Reply with quote

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
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3256
Location: Tucson

PostPosted: Mon Jan 31, 2011 8:26 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
jcadien1



Joined: 28 Nov 2006
Posts: 12

PostPosted: Tue Feb 01, 2011 6:31 pm    Post subject: Reply with quote

Thanks, Fitz
Deleting uparm dir AND re-booting did the trick. Much appreciated.
Jim
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Applications All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.12 seconds