x1dcorr¶
x1dcorr - Extract 1-D spectra.
To run this task from within Python:
>>> from costools import x1dcorr >>> x1dcorr.x1dcorr(["rootname_corrtag_a.fits", "rootname_corrtag_b.fits"], outdir="out/", update_input=True, find=True, cutoff=5., verbosity=2) >>> x1dcorr.x1dcorr(["rootname_corrtag_a.fits"], outdir="out/", update_input=True, find=False, location=527.88, extrsize=15, verbosity=2) >>> x1dcorr.x1dcorr(["rootname_corrtag_b.fits"], outdir="out/", update_input=True, find=False, location=586.68, extrsize=15, verbosity=2) >>> x1dcorr.x1dcorr(["rootname_corrtag.fits"], outdir="out/", find=False, location=[196.84, 290.87, 424.62], extrsize=[15, 15, 15])
Note
make sure the costools package is on your Python path
To run this task using the TEAL GUI to set the parameters under PyRAF:
>>> import costools >>> teal x1dcorr # or 'epar x1dcorr'
To run this task from the operating system command line:
# Extract a 1-D spectrum xxx
-
costools.x1dcorr.
getHelpAsString
(fulldoc=True)¶ Return help info from <module>.help in the script directory
-
costools.x1dcorr.
help
()¶
-
costools.x1dcorr.
main
()¶ Run the CalCOS 1-D extraction function.
-
costools.x1dcorr.
prtOptions
()¶ Print a list of command-line options and arguments.
-
costools.x1dcorr.
run
(configobj=None)¶ TEAL interface for running this code.
-
costools.x1dcorr.
x1dcorr
(input, outdir='', update_input=False, find=False, cutoff=None, location='', extrsize='', verbosity=1)¶