GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.Frame_Cross_Correlation.Frame_LH module¶
Frame_LH.py
This module contains the FrameLH class for performing likelihood computations in cross-correlation analysis of exoplanet atmospheric spectra.
The main functionality includes:
Setting up GUI elements for parameter input
Computing likelihood grids over Kp (planetary semi-amplitude), RV (radial velocity), and scale factor parameters
Generating diagnostic plots and saving results
Author: [Original Author] Date: [Date]
- class GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.Frame_Cross_Correlation.Frame_LH.FrameLH(parent, color, row, column, path_default, frame_input, window, width_GUI, height_GUI, widget_nights, **kwargs)[source]¶
Bases:
MyPanelGUI panel for likelihood computation in cross-correlation analysis.
This class provides a user interface for setting up and running likelihood computations over grids of planetary parameters (Kp, RV, scale factor). It handles data loading, parameter setup, computation execution, and result visualization.
- target_information¶
Information about the target system
- path_folder_targets¶
Path to target data folder
- widget_nights¶
Widget containing night selection controls
- frame_input¶
Input frame containing path information
- Various GUI elements for parameter input and control
- __init__(parent, color, row, column, path_default, frame_input, window, width_GUI, height_GUI, widget_nights, **kwargs)[source]¶
Initialize the FrameLH panel with GUI elements.
- Parameters:
parent – Parent widget
color – Background color for the panel
row – Grid row position
column – Grid column position
path_default – Default path for file operations
frame_input – Input frame containing path controls
window – Main window reference
width_GUI – GUI width for sizing calculations
height_GUI – GUI height for sizing calculations
widget_nights – Widget containing night selection controls
**kwargs – Additional keyword arguments for parent class
- lh_func()[source]¶
Perform likelihood computation over multiple nights and orders.
This is the main function that orchestrates the entire likelihood computation process. It: 1. Retrieves GUI parameters and sets up file paths 2. Loads cross-correlation models and creates parameter grids 3. Iterates over nights and spectral orders 4. Computes likelihood arrays over (Kp, RV, scale) parameter space 5. Computes detection significance and creates diagnostic plots 6. Saves results to pickle files and updates the GUI display
The function maintains the exact sequence of operations from the original implementation while organizing the code into logical helper functions for better readability and maintainability.