DAS routines and modelling.
das
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
553 B

1 year ago
import numpy as num
from lightguide import restitution as res
1 year ago
from pyrocko import trace
1 year ago
def test_de2e(syn_das_data):
syn_e = syn_das_data(quantity="strain", sample_rate=5.0, smoothing_sigma=100.0)
syn_de = syn_das_data(
quantity="strain_rate", sample_rate=5.0, smoothing_sigma=100.0
)
1 year ago
1 year ago
res_e = res.de_to_e(syn_de, copy=True)
1 year ago
1 year ago
# num.testing.assert_equal(
# [tr.ydata for tr in res_e],
# [tr.ydata for tr in syn_e]
# )
for tr in res_e:
tr.set_location("RES")
trace.snuffle(syn_e + res_e)