solid_waffle.spr_reduce
Single pixel reset reduction script.
Functions
- run_spr_reduce
Runs the single pixel reset reduction.
Attributes
Functions
|
Runs the single pixel reset reduction. |
Module Contents
- run_spr_reduce(arglist, verbose=False)[source]
Runs the single pixel reset reduction.
- Parameters:
arglist (list or dict) – The parameters for the SPR reduction (see Notes for formats).
verbose (bool, optional) – Whether to talk a lot.
- Return type:
None
Notes
In list format, the arguments are command-line options:
`arglist`[0] = not used
`arglist`[1] = input file name
`arglist`[2] = ouput stemp
`arglist`[3:] = options.
The options are:
-f=<format>: controls input format-n=<nfile>: controls number of files used (assumed sequential numbering if n>=2)-p=<pattern>: controls pattern number-d=<dark file>: dark data cube, same format, used for masking-nd=<ndarks>: controls number of dark files used (assumed sequential numbering if n>=2)-sca=<scanum>: SCA number (for output)-sd: if set, subtract dark (not recommended at this time, hasn’t worked as well as we had hoped)-i: if set, interpolate masked pixels-a=<parameter>: alternate file naming scheme. The options are:-a=0: most general name. In this case, the input file name is treated as a regular expression, i.e.,myfile_{:03d}.fits^5will be interpreted as the first file beingmyfile_005.fits, then the second ismyfile_006.fits, and so on.-a=1: default DCL numbering scheme, in which the first file is..._001.fits, and then the subsequent files replace the ending:..._002.fits,..._003.fits, and so on.-a=2: alternative including “_1_” in the file name (only needed for some cases).
-nl=<summary file>: summary file for NL information
In dictionary format, the options are specified as:
arglist["IN"]for the input file;arglist["OUT"]for the output stem; and e.g.arglist["-nd"]for the remaining options (for options that don’t have an “=” value in the command line, you can set e.g.arglist["-i"]=True).