1. 22 Jan, 2022 4 commits
  2. 03 Jan, 2022 3 commits
    • Kris Vanneste's avatar
      Added "rupture_model" key to current_state property of MainWindow. · 60bba0d4
      Kris Vanneste authored
      Added rupture model submenu to options menu in _setup_menu method of MainWindow.
      Added _on_rup_model_toggle method to MainWindow.
      Clear time_windows property in clear_results method of MainWindow.
      Pass rupture_model in calc_current_solution, recalc_solutions and calc_all methods of MainWindow.
      Set "use_for_SD" key of result depending on whether fc is between fmin and fmax in _on_accept_values, recalc_solutions and calc_all methods of MainWindow.
      Determine site parameters explicitly in calc_all method of MainWindow, and set "is_modified" flag.
      Read "use_for_SD" in _on_file_load_belshake method of MainWindow.
      60bba0d4
    • Kris Vanneste's avatar
      Added calc_surface_amplification function. · e7825625
      Kris Vanneste authored
      Modified moment_from_low_freq_amplitude function to compute free-surface amplification if "incidence_angle" argument is given.
      Added "model" argument to source_radius_from_corner_frequency function.
      Added "rupture_model" argument to calc_single_solution and calc_xolution_by_wavetype functions.
      Increased depth for reducing free-surface amplification from 100 to 200 m in calc_single_solution function, and rearranged computation of takeoff and incidence angles.
      e7825625
    • Kris Vanneste's avatar
      Changed indentation from spaces to tabs. · 0609d0bc
      Kris Vanneste authored
      0609d0bc
  3. 31 Dec, 2021 6 commits
  4. 28 Dec, 2021 4 commits
    • Kris Vanneste's avatar
      Added 'radiation_pattern' and 'restitution_method' keys to current_state property of MainWindow. · c6e78b42
      Kris Vanneste authored
      Added submenus for radiation pattern and restitution method to options menu in _setup_menu method of MainWindow, and updated update_menu method.
      Added closeEvent method to MainWindow.
      Added _get_options_submenu method to MainWindow, and simplified _on_specmodel_toggle and _on_specgmt_toggle methods.
      Added _on_radpatt_toggle and _on_restitute_toggle methods to MainWindow.
      Added recalc_solutions method to MainWindow.
      Recompute solutions in _on_vmodel_sel_change method of MainWindow.
      Fetch focal mechanism in fetch_event_from_db and fetch_belshake_event methods of MainWindow.
      Fixed bug in update_hypocentral_velocities method of MainWindow.
      Pass restitution method in _on_process_data method of MainWindow.
      Set column labels to bold in populate_pick_table and populate_result_table methods of MainWindow.
      Added axis labels in plot_traces and redraw_spectrum methods of MainWindow.
      Pass use_focmec argument in _calculate_final_values and calc_all methods of MainWindow.
      c6e78b42
    • Kris Vanneste's avatar
      Renamed calc_hypocentral_distance function to... · 40b54750
      Kris Vanneste authored
      Renamed calc_hypocentral_distance function to calc_hypocentral_distance_and_azimuth, and return tuple of values.
      Added calc_radiation_pattern, _rad_patt_P, _rad_patt_S, _rad_patt_SH and _rad_patt_SV functions (copied from sourcespec package).
      Added 'sdr', 'azimuth','takeoff_angle' and 'incidence_angle' arguments to moment_from_low_freq_amplitude function.
      Applied more complex geometrical spreading factor for S waves in moment_from_low_freq_amplitude function.
      Removed 'seed_code' argument from calc_single_solution function.
      Added 'use_focmec' argument to calc_single_solution and calc_solution_by_wavetype functions.
      Further improved calc_solution_by_wavetype function.
      Improved calculation of overall standard deviations in calc_overall_solution function.
      40b54750
    • Kris Vanneste's avatar
      Taper returned seismogram in download_rob_seismogram function. · 11eeb9d3
      Kris Vanneste authored
      Added 'restitution_method' argument to process_waveforms function, and store actually applied restitution method in component headers.
      11eeb9d3
    • Kris Vanneste's avatar
      Removed "Mode" column and added "Azimuth" column in PickTableView. · e2405af4
      Kris Vanneste authored
      Renamed _calc_distance method of PickTableView to _calc_distance_and_azimuth.
      Updated data and sort methods of PickTableView.
      Updated _get_restitution_status method of PickTableView.
      e2405af4
  5. 12 Dec, 2021 3 commits
    • Kris Vanneste's avatar
      Added 'deleted_results' property to MainWindow. · 646cd1bc
      Kris Vanneste authored
      Added show_unsaved_changes_msgbox method to MainWindow, and updated quit_application method accordingly.
      Show unsaved changes dialog in clear_results method of MainWindow, and clear all results lists.
      Recalculate results in _on_phase_comp_sel_change method of MainWindow.
      Moved code from _load_rob_event method of MainWindow to new fetch_event_from_db and fetch_belshake_event methods.
      Clear previous results in event_chosen method of MainWindow.
      Fetch instrument type from Belshake database instead of main database for Belshake events in _on_download_rob_data method of MainWindow.
      Update menu in _on_result_table_click method of MainWindow.
      Added delete_result method to MainWindow.
      Updated _calculate_final_values method of MainWindow to changes in source_spectrum.py.
      Clear all previous results iin calc_all method of MainWindow if 'overwrite' argument is True.
      Added 'remove_deleted' argument to _on_file_save_belshake method of MainWindow.
      646cd1bc
    • Kris Vanneste's avatar
      Print message if error occurs in get_site_parameters function. · 374c1082
      Kris Vanneste authored
      Renamed calc_overall_solution function to calc_solution_by_wavetype, added fix for picks without data, and moved step 4 to new calc_overall_solution function.
      374c1082
    • Kris Vanneste's avatar
      Constrain end of Ppick data window to start of Spick in process_waveforms function. · 6e945cbd
      Kris Vanneste authored
      Use square root of scaling factor in rescale_noise_spectrum function.
      6e945cbd
  6. 02 Dec, 2021 4 commits
    • Kris Vanneste's avatar
      Added _on_file_save_belshake and _on_file_load_belshake methods to MainWindow. · 80b3e184
      Kris Vanneste authored
      Moved code from _on_file_load_json method of MainWindow to new set_phase_component_selection method.
      Added 'overwrite' argument to _on_file_load_json method of MainWindow.
      Added "spectral_smoothing_bw", "spectral_model" and "spectral_gmt" keys to current_state in __init__ method of MainWindow.
      Added options menu in _setup_menu method of MainWindow.
      Added _on_specsmooth_toggle, _on_specmodel_toggle and _on_specgmt_toggle methods to MainWindow.
      Modified _load_rob_event method of MainWindow for belshake data.
      Small fix in _on_download_rob_data method of MainWindow.
      Moved code from calculate_and_plot_spectrum method of MainWindow to new redraw_spectrum method, and removed 'first_time' argument.
      Pass spectral_model and spectral_gmt in calc_theoretical_spectrum, _on_fit_spectrum and calc_all methods of MainWindow.
      Added draw_fc method to MainWindow.
      Moved code from _on_accept_values method of MainWindow to new append_result method.
      80b3e184
    • Kris Vanneste's avatar
      Added some other radiation coefficients from literature as comments in... · 13d50886
      Kris Vanneste authored
      Added some other radiation coefficients from literature as comments in moment_from_low_freq_amplitude function.
      Added 'gmt' argument to calculate_source_spectrum and fit_spectrum functions.
      Renamed 'fix_f_c' argument of fit_spectrum function to 'fix_fc'.
      Compute mean results for different wave types rather than phases in calc_overall_solution function, and within each wave type, compute median fc and Q.
      13d50886
    • Kris Vanneste's avatar
    • Kris Vanneste's avatar
  7. 28 Nov, 2021 4 commits
    • Kris Vanneste's avatar
      Renamed current_state["fix_f_c"] to current_state["fix_fc"]. · 4e1cf69d
      Kris Vanneste authored
      Initialize "fix_omega_0", "fix_fc" and "fix_Q" keys of current_state in __init__ method of MainWindow.
      Connect file menu items to methods in _setup_menu method of MainWindow, and added Edit menu.
      Removed triggers for save buttons in _connect_signals_and_slots method of MainWindow.
      Added has_belshake and update_menu methods to MainWindow.
      Added clear_results and clear_all methods to MainWindow.
      Moved code from event_chosen method of MainWindow to new update_event_display method, and added possibility to clear event display.
      Removed toggling of "Load/Write JSON" button from populate_result_table method of MainWindow.
      Fixed bugs in clear_trace_window method of MainWindow.
      Update menu at end of _On_accept_values method of MainWindow.
      Removed enabling/disabling of "Write QuakeML" button in _calculate_final_values method of MainWindow.
      Renamed _on_file_save method of MainWindow to _on_file_save_quakeml.
      Split _on_file_load_save_json method of MainWindow to _on_file_load_json and _on_file_save_json methods.
      4e1cf69d
    • Kris Vanneste's avatar
      c7a8f317
    • Kris Vanneste's avatar
      Added _setup_ui and _setup_menu methods to MainWindow. · 92678fe0
      Kris Vanneste authored
      Added quit_application method to MainWindow.
      Added _on_vmodel_change method to MainWindow.
      Moved code from _load_rob_event method of MainWindow to update_hypocentral_velocities, and updated event_chosen method.
      Made calculate_and_plot_spectrum method of MainWindow more robust if there is no noise data.
      Simplified __init__ method of MainWindow, and added "is_modified" key to current_state.
      92678fe0
    • Kris Vanneste's avatar
      Added menu bar to main window. · ac4bca56
      Kris Vanneste authored
      Moved initialization of phase-component selector to gui_main_window.py.
      Added group box for velocities, containing spin boxes for density, VP and VS, and new velocity model selector.
      Changed order of density, VP, VS to VP, VS, density.
      Changed main window title.
      ac4bca56
  8. 26 Nov, 2021 4 commits
  9. 21 Nov, 2021 3 commits
    • Kris Vanneste's avatar
      Fixed bugs related to plotting of noise spectrum and related to estimation of... · 3d65b540
      Kris Vanneste authored
      Fixed bugs related to plotting of noise spectrum and related to estimation of initial fc and Q values in calculate_and_plot_spectrum method of MainWindow.
      Added _on_Q_corr_change method to MainWindow.
      Added 'phases' argument to _calculate_final_values method of MainWindow.
      Added _update_mean_parameter_display method to MainWindow, and modified _calculate_final_values method accordingly.
      Fixed _on_file_save method of MainWindow.
      Improved _on_file_load_save method of MainWindow by also reading final result if available.
      3d65b540
    • Kris Vanneste's avatar
      Added 'phases' argument to calc_overall_solution function. · e2868a5e
      Kris Vanneste authored
      Remove outliers for computing mean and stddev for fc,  radius and stress drop in calc_overall_solution function.
      Added computation of overall (P+S) uncertainties in calc_overall_solution function.
      Only compute mean and stddev for P+S if both P and S are available in calc_overall_solution function.
      e2868a5e
    • Kris Vanneste's avatar
      Added Qcorr button. · 2df2666e
      Kris Vanneste authored
      Changed f_c label to fc.
      2df2666e
  10. 20 Nov, 2021 2 commits
    • Kris Vanneste's avatar
    • Kris Vanneste's avatar
      Ensure fitted spectrum is plotted correctly in _on_load_result method of MainWindow. · d1e4b12f
      Kris Vanneste authored
      Changed X axis to time in seconds with respect to pick (instead of sample number) in plot_traces method of MainWindow.
      Don't round click position in _on_timeframe_selected method of MainWindow.
      Renamed 'selection_indices' argument of calculate_and_plot_spectrum method of MainWindow to 'selection_window', and updated calculation of imin and imax.
      Redraw figure at end of _set_fmax method of MainWindow.
      Change Q value in steps of 25/50/100 in _on_spectrum_canvas_mouse_scroll method of MainWindow.
      Updated _on_accept_values method of MainWindow to determine tmin and tmax from stored time window.
      Updated calc_all method of MainWindow to set imin, imax and tmin, tmax.
      Updated _on_file_load_save_json method of MainWindow to determine tmin and tmax from result file.
      d1e4b12f
  11. 19 Nov, 2021 3 commits