Welcome to iraf.net Sunday, May 12 2024 @ 10:05 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Script problem
   
nrowell
 08/31/2007 04:34PM (Read 2638 times)  
+----
Newbie

Status: offline


Registered: 04/26/2007
Posts: 9
Hi,
I'm relatively new to writing scripts, i've used IRAF a lot but only just started combining operations into cl scripts. I've got a script that performs CCD reductions on a bunch of fits images. All steps work fine except the very last call to CCDPROC, it reaches this stage then returns an error:** Syntax error
**: naverage=1, niterate=1, low_reject=3., high_reject=3., grow=1.)
^
I'm completely stumped as to why it's doing this. If i paste the CCDPROC command into the prompt rather than run it through the script it works fine. Is there a limit on script length or something?
Here's the script:[code:1:9ab8919909]
noao
imred
ccdredzerocombine ("bias*",
output="Zero", combine="average", reject="minmax", ccdtype=" ", process=no,
delete=no, clobber=no, scale="none", statsec="", nlow=0, nhigh=1, nkeep=1,
mclip=yes, lsigma=3., hsigma=3., rdnoise="5.4", gain="2.43", snoise="0.",
pclip=-0.5, blank=0.)mkdir calib
mv bias* calib/ccdproc ("dflat*, skyflat*, Target*, SP*, Tell*, Arc*",
output=" ", ccdtype=" ", max_cache=0, noproc=no, fixpix=no, overscan=yes,
trim=yes, zerocor=yes, darkcor=no, flatcor=no, illumcor=no, fringecor=no,
readcor=no, scancor=no, readaxis="column", fixfile=" ",
biassec="[51:501,4105:4190]", trimsec="[75:501,1:2200]", zero="Zero", dark="",
flat=" ", illum=" ", fringe="", minreplace=1., scantype="shortscan", nscan=1,
interactive=no, function="chebyshev", order=9, sample="*", naverage=1,
niterate=1, low_reject=3., high_reject=3., grow=1.)combine ("skyflat*",
"sFlat", plfile="", sigma="", ccdtype="", subsets=no, delete=no, clobber=no,
combine="median", reject="none", project=no, outtype="real", offsets="none",
masktype="none", maskvalue=0., blank=0., scale="mode", zero="none",
weight="none", statsec="", lthreshold=INDEF, hthreshold=INDEF, nlow=1,
nhigh=1, nkeep=1, mclip=yes, lsigma=3., hsigma=3., rdnoise="5.4", gain="2.43",
snoise="0.", sigscale=0.1, pclip=-0.5, grow=0)mv skyflat* calib/hedit ("sFlat",
"OBSTYPE", "TARGET", add=no, addonly=no, delete=no, verify=no, show=yes,
update=yes)flatcombine ("dflat*",
output="dFlat", combine="median", reject="crreject", ccdtype=" ", process=no,
subsets=no, delete=no, clobber=no, scale="mode", statsec="", nlow=1, nhigh=1,
nkeep=1, mclip=yes, lsigma=3., hsigma=3., rdnoise="5.4", gain="2.43",
snoise="0.", pclip=-0.5, blank=1.)twodspec
longslitresponse ("dFlat",
"dFlat", "nFlat", interactive=no, threshold=INDEF, sample="*", naverage=1,
function="spline3", order=20, low_reject=0., high_reject=0., niterate=1,
grow=0., graphics="stdgraph", cursor="")mv dflat* calib/ccdproc ("Target*, SP*, Tell*, Arc*, sFlat*",
output=" ", ccdtype=" ", max_cache=0, noproc=no, fixpix=no, overscan=yes,
trim=yes, zerocor=yes, darkcor=no, flatcor=yes, illumcor=no, fringecor=no,
readcor=no, scancor=no, readaxis="column", fixfile=" ",
biassec="[51:501,4105:4190]", trimsec="[75:501,1:2200]", zero="Zero", dark="",
flat="nFlat", illum=" ", fringe="", minreplace=1., scantype="shortscan",
nscan=1, interactive=yes, function="chebyshev", order=9, sample="*",
naverage=1, niterate=1, low_reject=3., high_reject=3., grow=1.)illumination ("sFlat",
"Illum", interactive=yes, bins="", nbins=5, sample="*", naverage=1,
function="spline3", order=9, low_reject=0., high_reject=0., niterate=1,
grow=0., interpolator="poly3", graphics="stdgraph", cursor="")ccdproc ("Target*, SP*, Tell*, Arc*",
output=" ", ccdtype=" ", max_cache=0, noproc=no, fixpix=no, overscan=yes,
trim=yes, zerocor=yes, darkcor=no, flatcor=yes, illumcor=yes, fringecor=no,
readcor=no, scancor=no, readaxis="column", fixfile=" ",
biassec="[51:501,4105:4190]", trimsec="[75:501,1:2200]", zero="Zero", dark="",
flat="nFlat", illum="Illum", fringe="", minreplace=1., scantype="shortscan",
nscan=1, interactive=yes, function="chebyshev", order=9, sample="*",
naverage=1, niterate=1, low_reject=3., high_reject=3., grow=1.)[/code:1:9ab8919909]It crashes between the second last two commands, right after it's finished running ILLUMINATION.
Any help on this would be greatly appreciated!
Cheers,
Nick Rowell

 
Profile Email
 Quote
fitz
 08/31/2007 04:34PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try getting rid of the spaces in the first argument list given to CCDPROC.-Mike

 
Profile Email
 Quote
   
Content generated in: 0.08 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