running an iraf script from a cshell script
mmessineo wrote on Sep 02, 2010
Hello everyone,
I have a set of iraf scripts that run from a cshell script
e.g.
#!/bin/cshell
#
.....
cp $irafscriptdir/sed.txt $irafscriptdir/daofind.cl
cl< $irafscriptdir/daofind.cl
cd $datadir
.....
where daofind.cl is
cd /data/mmessine/ZHU/cl1.5/iraf/
daofind input1.fits default veri-
logout
This works very well when running iraf in linux.
It does not work anymore in my MAC system.
Do you have any suggestion for a fix.
Many many thanks
Maria
I have a set of iraf scripts that run from a cshell script
e.g.
#!/bin/cshell
#
.....
cp $irafscriptdir/sed.txt $irafscriptdir/daofind.cl
cl< $irafscriptdir/daofind.cl
cd $datadir
.....
where daofind.cl is
cd /data/mmessine/ZHU/cl1.5/iraf/
daofind input1.fits default veri-
logout
This works very well when running iraf in linux.
It does not work anymore in my MAC system.
Do you have any suggestion for a fix.
Many many thanks
Maria
Mike Fitzpatrick wrote on Sep 02, 2010
This is a known problem in the ECL (the default CL for v2.13 onward) that will be fixed in the upcoming v2.15 release. The workaround is to use the "old" CL by invoking the /iraf/iraf/bin.<arch>/cl.e binary directly or with e.g.
-Mike
cl -o < $irafscriptdir/daofind.cl -Mike
mmessineo wrote on Sep 02, 2010
I have noticed that the task psf (daophot)
does not run properly when called from outside iraf:
e.g.:
cl -o < psfscript.cl
more psfscript.cl
cd /Users/mmessine/Desktop/ZHUpipeline/cl1.5/reducmachi41000/
del /Users/mmessine/Desktop/ZHUpipeline/cl1.5/reducmachi41000/J_check.fits.*psf*
displ /Users/mmessine/Desktop/ZHUpipeline/cl1.5/reducmachi41000/J_check.fits 1
psf /Users/mmessine/Desktop/ZHUpipeline/cl1.5/reducmachi41000/J_check.fits J_check.fits.als.1 psfselect.tab default default default inter=yes
logout
The interactive mode does not work.
The problem does not occur if you run the same command
line by line within iraf.
That is a problem.
Any fix?
Best regards,
Maria
does not run properly when called from outside iraf:
e.g.:
cl -o < psfscript.cl
more psfscript.cl
cd /Users/mmessine/Desktop/ZHUpipeline/cl1.5/reducmachi41000/
del /Users/mmessine/Desktop/ZHUpipeline/cl1.5/reducmachi41000/J_check.fits.*psf*
displ /Users/mmessine/Desktop/ZHUpipeline/cl1.5/reducmachi41000/J_check.fits 1
psf /Users/mmessine/Desktop/ZHUpipeline/cl1.5/reducmachi41000/J_check.fits J_check.fits.als.1 psfselect.tab default default default inter=yes
logout
The interactive mode does not work.
The problem does not occur if you run the same command
line by line within iraf.
That is a problem.
Any fix?
Best regards,
Maria
Mike Fitzpatrick wrote on Sep 02, 2010
Be sure that the DAOPHOT package 'verify' parameter is turned off. This is causing the task to prompt for input, but because the input is redirected the answers are the next line in the script. Just a guess.
Last post on Sep 02, 2010