Perl and IRAF
cflynn wrote on Apr 18, 2008
We at Tuorla Observatory have been using a publically available
perl module to run iraf, CL.pm, written about a decade ago.
Very recently, we updated to the latest iraf version,
V2.14, and find that it seems to be incompatible with CL.pm,
because many of the prompts in iraf have been changed.
We need this version for other reasons and don't want to
go back to the old one!
We've been trying to fix CL.pm ourselves, but we are
perl novices and getting nowhere fast, so I
thought I'd drop a line and ask if this is a known
issue. If so, does anyone know if it has been fixed already?
with best wishes and thanks in advance for any help,
Chris Flynn
perl module to run iraf, CL.pm, written about a decade ago.
Very recently, we updated to the latest iraf version,
V2.14, and find that it seems to be incompatible with CL.pm,
because many of the prompts in iraf have been changed.
We need this version for other reasons and don't want to
go back to the old one!
We've been trying to fix CL.pm ourselves, but we are
perl novices and getting nowhere fast, so I
thought I'd drop a line and ask if this is a known
issue. If so, does anyone know if it has been fixed already?
with best wishes and thanks in advance for any help,
Chris Flynn
Mike Fitzpatrick wrote on Apr 18, 2008
The Astro::iraf module was developed by a user a while ago and I've never actually used it myself. If what's causing the problems however is that the CL prompts have changed (from 2-char to full package name in v2.14 then what you may want to do is use the old CL instead of the new default ECL. This is done from the command-line by starting iraf as "cl -old", from Perl you just want to replace the 'ecl.e' binary with the 'cl.e' binary in your system. Alternatively, you could edit the hlib$cl.csh script to change the default.
Cheers,
-Mike
Cheers,
-Mike
cflynn wrote on Apr 18, 2008
Hi Mike,
thanks a lot for this tip! we were highly optimisic that it was just
what we were looking for, but at this point we don't yet have a
working solution -- it could really be somethng entirely different
which is the show stopper -- at least iraf fails to load properly
from perl, which eventually timesout (gives up). We are still working
on this, and will post here when we figure it out.
thanks again - Chris
thanks a lot for this tip! we were highly optimisic that it was just
what we were looking for, but at this point we don't yet have a
working solution -- it could really be somethng entirely different
which is the show stopper -- at least iraf fails to load properly
from perl, which eventually timesout (gives up). We are still working
on this, and will post here when we figure it out.
thanks again - Chris
Mike Fitzpatrick wrote on Apr 18, 2008
Chris,
Came across this in Google: http://www.mso.anu.edu.au/~grant/wp/2008/05/old-perl-iraf-module-and-ecl
You might contact the guy to see what he did if you still have problems.
-Mike
Came across this in Google: http://www.mso.anu.edu.au/~grant/wp/2008/05/old-perl-iraf-module-and-ecl
You might contact the guy to see what he did if you still have problems.
-Mike
cflynn wrote on Apr 18, 2008
Hi again!
problem now solved, we were able to get it working after all
following the advice just to modify the cl.csh file...
thanks a lot for the help!
- Chris
problem now solved, we were able to get it working after all
following the advice just to modify the cl.csh file...
thanks a lot for the help!
- Chris
Last post on Apr 18, 2008