Welcome to iraf.net Friday, May 10 2024 @ 09:23 AM GMT
mmessineo |
09/02/2010 09:05AM (Read 2628 times)
|
|
|
Status: offline
Registered: 09/02/2010
Posts: 3
|
Hello everyone,I have a set of iraf scripts that run from a cshell scripte.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 thanksMaria
|
|
|
|
fitz |
09/02/2010 09:05AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
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.[code:1:f880c37404]cl -o < $irafscriptdir/daofind.cl [/code:1:f880c37404]
-Mike
|
|
|
|
mmessineo |
09/02/2010 09:05AM
|
|
|
Status: offline
Registered: 09/02/2010
Posts: 3
|
I have noticed that the task psf (daophot)
does not run properly when called from outside iraf:e.g.:
cl -o < psfscript.clmore psfscript.clcd /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
|
|
|
|
fitz |
09/02/2010 09:05AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
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.
|
|
|
|
| |
|
Content generated in: 0.17 seconds |
|