Welcome to iraf.net Tuesday, May 21 2024 @ 11:59 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 scripting
   
dbrenner
 09/25/2008 03:22PM (Read 2352 times)  
++++-
Regular Member

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

 
Profile Email
 Quote
dbrenner
 09/25/2008 03:22PM  
++++-
Regular Member

Status: offline


Registered: 05/05/2006
Posts: 115
The logout command should have been logout | cl().

 
Profile Email
 Quote
fitz
 09/25/2008 03:22PM  
AAAAA
Admin

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

 
Profile Email
 Quote
   
Content generated in: 0.10 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login