Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waveform plot improvements #252

Closed
wants to merge 8 commits into from
Closed

Waveform plot improvements #252

wants to merge 8 commits into from

Commits on Feb 8, 2024

  1. Fixed typos in waveform header

    Corrected some misspelled 'Exception()' in header.py
    thurinj committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    3925ad6 View commit details
    Browse the repository at this point in the history
  2. Fixed missing function for distance in degrees

    m_to_deg was not an existing function. Used obspy locations2degrees instead.
    thurinj committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    b33b924 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. Added station number in the header

    Added a header field for N-Np-Ns which changed depending on which type of plot is used. I used a decorator to append additional header information to the header class, which gets written on plot if present.
    They will be present by default, but the decorator make it easy to remove if needed.
    thurinj committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    b26c79f View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2024

  1. Rework normalization for waveform plot.

    Added a new normalization based on median amplitude. Fixed issues with station_amplitude that was not working properly. Moved normalization logic (now based on precomputed list of amplitude factor instead of internal loop that compare dat and syn).
    thurinj committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    fdace83 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2024

  1. Refactored median amplitude normalization

    Changed the median normalization logic into a function, in order improve readability and reduce redundancy in the plot_waveforms1 and plot_waveforms2 functions.
    thurinj committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    579c908 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Solved normalization issue

    Modified normalization list building logic. Previously, it would break on calls of 'station_amplitude' and 'trace_amplitude' due to previously added changes.
    thurinj committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    0b3c08a View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Rollback of features.

    I reverted the pull request back to including only the median scaling (removing new header treatment and decorator function). The new header field will come in it's own PR.
    thurinj committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    baee1fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c4fb27d View commit details
    Browse the repository at this point in the history