GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.Frame_Cross_Correlation.Frame_run_CC module¶
Cross-correlation analysis module for spectroscopic data.
This module implements cross-correlation analysis for spectroscopic observations, allowing for both single-night and multi-night analysis. It supports different correlation methods and can handle both transmission and emission spectroscopy.
The main class FrameRunCC provides a GUI interface for running cross-correlation analysis with various parameters and visualization options.
- class GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.Frame_Cross_Correlation.Frame_run_CC.FrameRunCC(parent, color, row, column, path_default, frame_input, window, filters_and_table, widget_nights, **kwargs)[source]¶
Bases:
MyPanelGUI panel for running cross-correlation analysis on spectroscopic data.
This class provides a graphical interface for performing cross-correlation analysis between observed spectra and model templates. It supports both single-night and multi-night analysis, with options for different correlation methods and visualization tools.
The panel includes controls for: - Radial velocity range and step size - Phase binning parameters - Correlation method selection - Eccentric orbit handling - Speed optimization options
- __init__(parent, color, row, column, path_default, frame_input, window, filters_and_table, widget_nights, **kwargs)[source]¶
Initialize the cross-correlation analysis panel.
- Parameters:
parent – Parent widget
color – Background color
row – Row position in parent
column – Column position in parent
path_default – Default path for file operations
frame_input – Input frame containing target information
window – Main application window
filters_and_table – Filter and table widget (optional)
widget_nights – Nights widget (optional)
**kwargs – Additional keyword arguments
- run_cc()[source]¶
Run cross-correlation analysis.
Collects GUI parameters, saves them to the exchange pkl, and launches run_cc_background.py as a subprocess. The GUI remains responsive while computation runs. check_proc() polls every 500ms for completion.
- check_proc()[source]¶
Poll the background cross-correlation subprocess every 500ms.
When the process finishes, re-enables the RUN button and either displays the result PDF or shows an error dialog.
- show_run_cc()[source]¶
Display previously computed cross-correlation results.
Loads and displays the PDF file containing cross-correlation plots from a previous analysis run. Locates the correct results directory based on the current analysis mode (retrieval or night/manual) and selected nights/parameters.
The method constructs the appropriate file path based on: - Retrieval mode: Uses filter table to locate results in RESULTS_FOLDER - Night/manual mode: Uses selected nights, order, telluric method, and model name
For multi-night analysis, looks for results with
"multi_"prefix. Shows an error message if no nights are selected.