GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.TabPanels.Frame_Retrieval_Analysis.Tab_Analysis.FrameCornerPlot.FrameCornerPlot module¶
Frame Corner Plot Module
This module provides a GUI panel for creating and displaying corner plots for atmospheric retrieval analysis. It handles plotting, data visualization, and statistical analysis of MCMC chains.
- Classes:
FrameCornerPlot: Main panel class for corner plot functionality
- GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.TabPanels.Frame_Retrieval_Analysis.Tab_Analysis.FrameCornerPlot.FrameCornerPlot.calculate_solar_metallicity(names_molecules=None, dataset='Lodders09')[source]¶
Calculate Z/H (metals to hydrogen ratio) based on numerical abundances.
- Parameters:
dataset – str, either “AGSS09” (Asplund et al. 2009) or “Lodders09” (Lodders et al. 2009)
- Returns:
Z/H ratio (sum of all metal abundances relative to hydrogen)
- Return type:
float
- class GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.TabPanels.Frame_Retrieval_Analysis.Tab_Analysis.FrameCornerPlot.FrameCornerPlot.FrameCornerPlot(parent, color, row, column, path_default, frame_input, width, height, window, **kwargs)[source]¶
Bases:
MyPanelA GUI panel for creating and displaying corner plots for atmospheric retrieval analysis.
This class provides functionality to: - Generate corner plots from MCMC chains - Display statistical information (likelihood, AIC, etc.) - Show reduced parameter plots - Display component details and comments - Plot temperature-pressure profiles
- __init__(parent, color, row, column, path_default, frame_input, width, height, window, **kwargs)[source]¶
Initialize the FrameCornerPlot panel.
- Parameters:
parent – Parent widget
color – Background color for the panel
row – Grid row position
column – Grid column position
path_default – Default path for the application
frame_input – Input frame containing filter and table data
width – Panel width
height – Panel height
window – Main window reference
**kwargs – Additional keyword arguments for parent class
- display_comp()[source]¶
Display component details from the retrieval results.
Shows the string_res.txt file content in a popup window.
- show_comments()[source]¶
Display comments associated with the selected retrieval.
Reads comments from df_general_info.csv and displays them in a popup window.
- plot()[source]¶
Generate and display the main corner plot.
This method: 1. Extracts data from the selected retrieval 2. Processes MCMC chains using pre_plot function 3. Saves processed data to pickle files 4. Starts subprocess to generate corner plot 5. Creates additional plots (likelihood distribution, TP profile)
- check_proc()[source]¶
Check if the plotting subprocess has completed.
This method is called periodically to monitor the subprocess status. When complete, it updates the GUI with results and creates additional plots.
- show()[source]¶
Display the last generated corner plot.
Loads data from saved pickle file and displays the plot without regenerating it.