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

manually edit misfit windows before adjoint source creation #19

Open
bch0w opened this issue Oct 20, 2022 · 0 comments
Open

manually edit misfit windows before adjoint source creation #19

bch0w opened this issue Oct 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@bch0w
Copy link
Member

bch0w commented Oct 20, 2022

Pyatoa currently does not allow the User to manually edit the automatically selected windows that come out of Pyflex, before they are used to calculate adjoint sources. However this can be a useful feature when you want to remove windows, isolate certain phases, or edit window start and end times.

Pyflex has option to write misfit windows to JSON files.

We can include the ability to read these files back in Pyatoa or Pyflex to be used for subsequent adjoint source creation. Workflow code this could look something like:

ds = ASDFDataSet("event.h5")
mgmt = Manager(ds=ds, config=cfg)
for station in stations:
    mgmt.gather(station_code=station)
    mgmt.standardize()
    mgmt.preprocess()
    mgmt.window(write="windows.json")

# >>> User manually edits the windows file here

for station in stations:
    mgmt.load(ds=ds, file="windows.json", station=station)
    mgmt.measure() 
    mgmt.plot()
@bch0w bch0w added the enhancement New feature or request label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant