def flexure_correct(self, sobjs, maskslits): """ Correct for flexure Spectra are modified in place (wavelengths are shifted) Args: sobjs (SpecObjs): maskslits (ndarray): Mask of SpecObjs """ if self.par['flexure']['method'] != 'skip': flex_list = wave.flexure_obj( sobjs, maskslits, self.par['flexure']['method'], self.par['flexure']['spectrum'], mxshft=self.par['flexure']['maxshift']) # QA # TODO: Need to fix these QA paths... wave.flexure_qa(sobjs, maskslits, self.basename, self.det, flex_list, out_dir=self.par['rdx']['redux_path']) else: msgs.info('Skipping flexure correction.')
def flexure_correct(self, sobjs, basename): """ Correct for flexure Spectra are modified in place (wavelengths are shifted) Args: sobjs: SpecObjs object maskslits: ndarray """ if self.flex_par['method'] != 'skip': flex_list = wave.flexure_obj(sobjs, self.maskslits, self.flex_par['method'], self.flex_par['spectrum'], mxshft=self.flex_par['maxshift']) # QA wave.flexure_qa(sobjs, self.maskslits, basename, self.det, flex_list, out_dir=self.par['rdx']['redux_path']) else: msgs.info('Skipping flexure correction.')
def flexure_correct(self, sobjs, basename): """ Correct for flexure Spectra are modified in place (wavelengths are shifted) Wrapper to wave.flexure_obj() Args: sobjs (:class:`pypeit.specobjs.SpecObjs`): basename (str): """ if self.par['flexure']['method'] != 'skip': flex_list = wave.flexure_obj( sobjs, self.maskslits, self.par['flexure']['method'], self.par['flexure']['spectrum'], mxshft=self.par['flexure']['maxshift']) # QA wave.flexure_qa(sobjs, self.maskslits, basename, self.det, flex_list, out_dir=self.par['rdx']['redux_path']) else: msgs.info('Skipping flexure correction.')