pypeit.scripts.ql_multislit module
Script for quick-look reductions for Multislit observations.
- class pypeit.scripts.ql_multislit.QL_Multislit[source]
Bases:
ScriptBase
- classmethod get_parser(width=None)[source]
Construct the command-line argument parser.
Derived classes should override this. Ideally they should use this base-class method to instantiate the ArgumentParser object and then fill in the relevant parser arguments
Warning
Any argument that defaults to the string
'current working directory'
will be replaced by the result ofos.getcwd()
when the script is executed. This means help dialogs will include this replacement, and parsing of the command line will useos.getcwd()
as the default. This functionality is largely to allow for PypeIt’s automated documentation of script help dialogs without the “current working” directory being that of the developer that most recently compiled the docs.- Parameters
description (
str
, optional) – A short description of the purpose of the script.width (
int
, optional) – Restrict the width of the formatted help output to be no longer than this number of characters, if possible given the help formatter. If None, the width is the same as the terminal width.formatter (argparse.HelpFormatter) – Class used to format the help output.
- Returns
Command-line interpreter.
- Return type
- pypeit.scripts.ql_multislit.build_calibrate(det, files, spectrograph, parset, bias_masterframe_name, slit_masterframe_name, wvcalib_masterframe_name, tilts_masterframe_name)[source]
- pypeit.scripts.ql_multislit.print_offset_report(files, dither_pattern, dither_id, offset_arcsec, target, platescale)[source]
- pypeit.scripts.ql_multislit.reduce(files, caliBrate, spectrograph, parset, bkg_files=None, show=False, std_trace=None)[source]
Peform 2d extraction for a set of files at the same unique A-B offset location.
- Parameters
strings) (B_files (list of) – Files at A position for this offset
strings) – Files at B position for this offeset
(object) (spectrograph) – CaliBrate object
(object) – spectrograph object
(int) (det) – Detector number
object) (parset (parsect) – Parset
(bool (show) – Show 2d reduction outputs. Default=False
optional) – Show 2d reduction outputs. Default=False
(string (std_trace) – Trace for standard star. Default=None
optional) – Trace for standard star. Default=None
- Returns
spec2DObj_A, spec2DObj_B
spec2DObj_A (object, Spec2D) – Spec2d Object for extraction at A position
spec2DObj_B (object, Spec2D) – Spec2d Object for extraction at B position