Welcome to iraf.net Tuesday, May 21 2024 @ 11:59 AM GMT
dbrenner |
09/25/2008 03:22PM (Read 2352 times)
|
|
|
Status: offline
Registered: 05/05/2006
Posts: 115
|
I have been writing simple cl scripts without too much trouble (Although I never could get a script to run hselect)Now I've written my own working cl procedure which I can't call from a script.
I get an "INTERNAL ERROR: parser gagged.
Suggestions?
PROCEDURE:
procedure align(name)string namebeginstring filename
noao
imred
crutil
stsdas
analysis
fourier
dither
images
imgeomfilename = namecrosscor (input1 = "/Users/dsb/data/fiducal/meanflat.fits[924:1124,924:1124]", input2 = filename//"[0][924:1124,924:1124]", output = "/Users/dsb/data/fiducal/corr.fits[0,overwrite]", verbose = no)
magnify (input = "/Users/dsb/data/fiducal/corr.fits", output = "/Users/dsb/data/fiducal/mcorr.fits[0,overwrite]", xmag = 3, ymag = 3, interp = "linear")
imextreme (image = "/Users/dsb/data/fiducal/mcorr.fits", verbose = yes);endSCRIPT"
#! /scisoft/all/packages/iraf/irafbin/bin.macintel/cl.e -f
noao
imred
crutil
stsdas
analysis
fourier
dither
task align = /Users/dsb/datapipeline/align.cl
printf ("align %s\n ", args) | cl()logout
|
|
|
|
dbrenner |
09/25/2008 03:22PM
|
|
|
Status: offline
Registered: 05/05/2006
Posts: 115
|
The logout command should have been logout | cl().
|
|
|
|
fitz |
09/25/2008 03:22PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
For the record, the pipe to the cl() of the logout command shouldn't be necessary. I suspect that the wrapper script calling it was missing a newline at the end of the file (this happens sometimes to emacs users). Adding the pipe may have just rewritten the file with the proper newline.-Mike
|
|
|
|
| |
|
Content generated in: 0.10 seconds |
|