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

adds ability to plot misfit windows and read ASDFDataSets #136

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

bch0w
Copy link
Member

@bch0w bch0w commented Feb 29, 2024

This PR adds some features to improve integration of PySEP with the other adjTomo tools (SeisFlows and Pyatoa).

  1. RecSec ability to plot misfit windows as rectangles over record sections, windows must be input as a dictionary of list of tuples where the keys are trace IDs and the tuple values are start and end time of the windows, in seconds, e.g.,
{"NN.SSS.LL.CCC": (0, 100)}
  1. Ability to read streams and windows from ASDFDataSets so that they may be plotted with RecSec. These datasets are the outputs of SeisFlows + Pyaflowa inversions and contain additional Pyatoa auxiliary data that is required for plotting.

@bch0w bch0w merged commit 8a47656 into devel Feb 29, 2024
@bch0w bch0w deleted the feature-pyatoa_compatability branch February 29, 2024 00:54
@bch0w bch0w mentioned this pull request Apr 19, 2024
bch0w added a commit that referenced this pull request Apr 19, 2024
* added read function for asdfdatasets and allow RecSec to plot windows on top of record section (#136)

* added test to check zero division error, (#137)

added logger warning about zero amplitude scaling
feature: user can now set kwargs for obs_color and syn_color

* Improve SAC header append functions (#138)

* extending read_sem_cartesian test to check for evdp related to #132
adding warning messages to sac header append when evdp or mag not
present

* extended cartesian sac headers to match all normal sac header values except for cmpinc and cmpaz
added better warning message for missing sac header values in normal sac header reading
extended tests to cover new functionalities

* Improve RecSec preprocessing architecture (#139)

* reorganizing docstring, restructuring preprocess flag
default value for overwrite is now set True so User does not have to unset
changed default preprocess flag to True, removed 'both' option

* fixed up check function to reflect new preprocess flag

* restructuring preprocessing function to put each individual feature behind a boolean flag so that they can be turned on/off at will
also expose some key arguments as keyword arguments so the User has more control

* all preprocessing now behind tunable knobs

* moved kwargs to args of process_st
reorganized init parameter input to organize a bit better
added new parameters to main docstring

* allow preprocess=True to be more flexible and just take st and st_syn if available, removed hard check on preprocess=True requireing st_syn to be more intutive by users
bugfix move fill value to after assignment of trace in loop

* moved parameters back to internal kwargs to match recsec structure and allow passing them in through command line

* bump version 0.6.0 and bump copyright year in docs

* update changelog

* slim down changelog to include only most recent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant