GWeasy v3.0.1
No code GW analysis interface
 
Loading...
Searching...
No Matches
GWeasy.PSDs Class Reference

Public Member Functions

 __init__ (self, root)
 
 copy_url (self)
 
 prefetch_data (self)
 
 fetch_events (self, event=None)
 
 fetch_event_details (self, event=None)
 
 update_urls (self, event=None)
 
 toggle_mode (self)
 
 convert_time (self)
 
 save_params (self)
 
 psds (self, event_name, detectors, gps_start, gps_end, fftlengths, methods)
 

Public Attributes

 root = root
 
 canvas = tk.Canvas(root)
 
 scroll_y = ttk.Scrollbar(root, orient="vertical", command=self.canvas.yview)
 
 scroll_x = ttk.Scrollbar(root, orient="horizontal", command=self.canvas.xview)
 
 frame = ttk.Frame(self.canvas)
 
 catalog_dropdown = ttk.Combobox(input_frame, state="readonly")
 
 fetch_events = "ew")
 
 event_dropdown = ttk.Combobox(input_frame, state="readonly")
 
 fetch_event_details = "ew")
 
 run_dropdown = ttk.Combobox(input_frame, state="readonly")
 
 detector_dropdown = tk.Listbox(input_frame, selectmode="multiple", height=3)
 
 update_urls = "ew")
 
 gps_start_entry = ttk.Entry(input_frame, width=20)
 
 gps_end_entry = ttk.Entry(input_frame, width=20)
 
 fft_length_entry = ttk.Entry(input_frame, width=10)
 
 method_entry = ttk.Combobox(input_frame, width=10, values=["median", "welch"], state="readonly")
 
 mode = tk.StringVar(value="gps_to_utc")
 
 convert_entry = ttk.Entry(conversion_frame, width=20)
 
 convert_button = ttk.Button(conversion_frame, text="Convert", command=self.convert_time)
 
 result_label = ttk.Label(conversion_frame, text="Result: ")
 
 toggle_button = ttk.Button(conversion_frame, text="Switch to UTC → GPS", command=self.toggle_mode)
 
 url_dropdown = ttk.Combobox(url_frame, state="readonly")
 
 copy_button = ttk.Button(url_frame, text="Copy URL", command=self.copy_url)
 
 save_button = ttk.Button(input_frame, text="Save Parameters", command=self.save_params)
 
 plot_frame = ttk.Frame(self.frame)
 
 plot_button = tk.Button(root, text="Plot TimeSeries", command=lambda: self.psds(self.catalog_dropdown.get(),[self.detector_dropdown.get(idx) for idx in self.detector_dropdown.curselection()],float(self.gps_start_entry.get()),float(self.gps_end_entry.get()),int(self.fft_length_entry.get()),self.method_entry.get()))
 

Detailed Description

Definition at line 1791 of file GWeasy.py.

Constructor & Destructor Documentation

◆ __init__()

GWeasy.PSDs.__init__ ( self,
root )

Definition at line 1792 of file GWeasy.py.

Member Function Documentation

◆ convert_time()

GWeasy.PSDs.convert_time ( self)

Definition at line 1980 of file GWeasy.py.

◆ copy_url()

GWeasy.PSDs.copy_url ( self)

Definition at line 1896 of file GWeasy.py.

◆ fetch_event_details()

GWeasy.PSDs.fetch_event_details ( self,
event = None )

Definition at line 1939 of file GWeasy.py.

◆ fetch_events()

GWeasy.PSDs.fetch_events ( self,
event = None )

Definition at line 1923 of file GWeasy.py.

◆ prefetch_data()

GWeasy.PSDs.prefetch_data ( self)

Definition at line 1907 of file GWeasy.py.

◆ psds()

GWeasy.PSDs.psds ( self,
event_name,
detectors,
gps_start,
gps_end,
fftlengths,
methods )
Plot Power Spectral Densities (PSDs) for multiple detectors in Tkinter.

Parameters:
- event_name: Name of the gravitational wave event
- detectors: List of detector names (e.g., ['H1', 'L1', 'V1'])
- gps_start: GPS start time
- gps_end: GPS end time
- fftlengths: List of FFT lengths (same length as detectors)
- methods: List of ASD computation methods (same length as detectors)

Definition at line 2030 of file GWeasy.py.

◆ save_params()

GWeasy.PSDs.save_params ( self)
Overwrite 'gwfparams.csv' with the latest input values, including headers.

Definition at line 2000 of file GWeasy.py.

◆ toggle_mode()

GWeasy.PSDs.toggle_mode ( self)

Definition at line 1971 of file GWeasy.py.

◆ update_urls()

GWeasy.PSDs.update_urls ( self,
event = None )

Definition at line 1954 of file GWeasy.py.

Member Data Documentation

◆ canvas

GWeasy.PSDs.canvas = tk.Canvas(root)

Definition at line 1798 of file GWeasy.py.

◆ catalog_dropdown

GWeasy.PSDs.catalog_dropdown = ttk.Combobox(input_frame, state="readonly")

Definition at line 1818 of file GWeasy.py.

◆ convert_button

GWeasy.PSDs.convert_button = ttk.Button(conversion_frame, text="Convert", command=self.convert_time)

Definition at line 1866 of file GWeasy.py.

◆ convert_entry

GWeasy.PSDs.convert_entry = ttk.Entry(conversion_frame, width=20)

Definition at line 1863 of file GWeasy.py.

◆ copy_button

GWeasy.PSDs.copy_button = ttk.Button(url_frame, text="Copy URL", command=self.copy_url)

Definition at line 1882 of file GWeasy.py.

◆ detector_dropdown

GWeasy.PSDs.detector_dropdown = tk.Listbox(input_frame, selectmode="multiple", height=3)

Definition at line 1835 of file GWeasy.py.

◆ event_dropdown

GWeasy.PSDs.event_dropdown = ttk.Combobox(input_frame, state="readonly")

Definition at line 1824 of file GWeasy.py.

◆ fetch_event_details

GWeasy.PSDs.fetch_event_details = "ew")

Definition at line 1826 of file GWeasy.py.

◆ fetch_events

GWeasy.PSDs.fetch_events = "ew")

Definition at line 1820 of file GWeasy.py.

◆ fft_length_entry

GWeasy.PSDs.fft_length_entry = ttk.Entry(input_frame, width=10)

Definition at line 1851 of file GWeasy.py.

◆ frame

GWeasy.PSDs.frame = ttk.Frame(self.canvas)

Definition at line 1804 of file GWeasy.py.

◆ gps_end_entry

GWeasy.PSDs.gps_end_entry = ttk.Entry(input_frame, width=20)

Definition at line 1847 of file GWeasy.py.

◆ gps_start_entry

GWeasy.PSDs.gps_start_entry = ttk.Entry(input_frame, width=20)

Definition at line 1843 of file GWeasy.py.

◆ method_entry

GWeasy.PSDs.method_entry = ttk.Combobox(input_frame, width=10, values=["median", "welch"], state="readonly")

Definition at line 1855 of file GWeasy.py.

◆ mode

GWeasy.PSDs.mode = tk.StringVar(value="gps_to_utc")

Definition at line 1859 of file GWeasy.py.

◆ plot_button

GWeasy.PSDs.plot_button = tk.Button(root, text="Plot TimeSeries", command=lambda: self.psds(self.catalog_dropdown.get(),[self.detector_dropdown.get(idx) for idx in self.detector_dropdown.curselection()],float(self.gps_start_entry.get()),float(self.gps_end_entry.get()),int(self.fft_length_entry.get()),self.method_entry.get()))

Definition at line 1892 of file GWeasy.py.

◆ plot_frame

GWeasy.PSDs.plot_frame = ttk.Frame(self.frame)

Definition at line 1888 of file GWeasy.py.

◆ result_label

GWeasy.PSDs.result_label = ttk.Label(conversion_frame, text="Result: ")

Definition at line 1869 of file GWeasy.py.

◆ root

GWeasy.PSDs.root = root

Definition at line 1793 of file GWeasy.py.

◆ run_dropdown

GWeasy.PSDs.run_dropdown = ttk.Combobox(input_frame, state="readonly")

Definition at line 1830 of file GWeasy.py.

◆ save_button

GWeasy.PSDs.save_button = ttk.Button(input_frame, text="Save Parameters", command=self.save_params)

Definition at line 1886 of file GWeasy.py.

◆ scroll_x

GWeasy.PSDs.scroll_x = ttk.Scrollbar(root, orient="horizontal", command=self.canvas.xview)

Definition at line 1800 of file GWeasy.py.

◆ scroll_y

GWeasy.PSDs.scroll_y = ttk.Scrollbar(root, orient="vertical", command=self.canvas.yview)

Definition at line 1799 of file GWeasy.py.

◆ toggle_button

GWeasy.PSDs.toggle_button = ttk.Button(conversion_frame, text="Switch to UTC → GPS", command=self.toggle_mode)

Definition at line 1872 of file GWeasy.py.

◆ update_urls

GWeasy.PSDs.update_urls = "ew")

Definition at line 1839 of file GWeasy.py.

◆ url_dropdown

GWeasy.PSDs.url_dropdown = ttk.Combobox(url_frame, state="readonly")

Definition at line 1879 of file GWeasy.py.


The documentation for this class was generated from the following file: