Status: offline
Registered: 07/22/2016
Posts: 2
|
Hello,
I'm trying to make a script that automates my reduction process for ccd images. However in my script ccdproc doesn't seem to want to change my parameters in between the steps. For instance after the first step where the bias is made, I want the parameters in ccdproc to change so the zero level correction is on and the master bias file is used. I will post part of my script below:
procedure reductionPipeline (input, masterBias)
string input ="" {prompt="Please specify bias frames to use"}
string masterBias ="" {prompt="Please enter desired name for master bias"}
string dark2 ="" {prompt="Please enter dark frames to combine for master dark for flat frame"}
string masterDark2 ="" {prompt="Please enter name for master dark frame for flat field"}
string pdark60="" {prompt="Please enter dark frames to combine for master dark for raw data images"}
string masterDark60="" {prompt="Please enter name for master dark frame for raw data images"}
string flat="" {prompt="Please enter flat frames to combine into master flat"}
string masterFlat="" {prompt="Please enter name for the master flat"}
string rawData="" {prompt="Please enter the name of the raw data frames"}
begin
#Here are the parameter declarations
string ims
ims = input
zerocombine (ims,output=masterBias, combine="average", reject="minmax", ccdtype="zero",process=no, delete=no, clobber=no, scale="none", statsec="", nlow=0, nhigh=1,nkeep=1, mclip=yes, lsigma=3, hsigma=3, rdnoise="0.", gain="1.",snoise="0.", pclip=-0.5, blank=0)
ccdproc("Xz-Cyg-120712-***V.fit", output="", ccdtype="Light Frame", max_cache=0, noproc=no, fixpix=no, overscan=no, trim=no, zerocor=yes, darkcor=no, flatcor=no, illumcor=no, fringecor=no, readcor=no, scancor=no, readaxis="column", fixfile="", biassec="image", trimsec="", zero=masterBias, dark="", flat="", illum="", fringe="",minreplace=1., scantype="shortscan", nscan=1, interactive=no, function="chebyshev", order=1, sample="*", naverage=1, niterate=1, low_reject=3., high_reject=3., grow=0.)
darkcombine (dark2, output=masterDark2, combine="average", reject="minmax", ccdtype="dark", process=yes, delete=no, clobber=no, scale="exposure", statsec="", nlow=0, nhigh=1, nkeep=1, mclip=yes, lsigma=3., hsigma=3., rdnoise="0.", gain="1.", snoise="0.", pclip=-0.5, blank=0.)
end
|