DAS routines and modelling.
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.

21 lines
553 B

import numpy as num
from lightguide import restitution as res
from pyrocko import trace
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
res_e = res.de_to_e(syn_de, copy=True)
# num.testing.assert_equal(
# [tr.ydata for tr in res_e],
# [tr.ydata for tr in syn_e]
# )
for tr in res_e:
trace.snuffle(syn_e + res_e)