Commit 76688925 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

apply weighting

parent fff09948
......@@ -212,7 +212,7 @@ def scan(
if p.is_empty():
raise common.LassieError('no usable waveforms found')
check_data_consistency(p, receivers)
check_data_consistency(p, config)
deltat_cf = max(p.deltats.keys())
assert deltat_cf > 0.0
......@@ -346,9 +346,7 @@ def scan(
for tr in trs_selected],
dtype=num.int32)
w = num.array(
[station_weights.get(nsl, 1.0) for nsl in nsls_selected],
dtype=num.float)
w = ifc.get_weights(nsls_selected)
weights = num.ones((ngridpoints, nstations_selected))
weights *= w[num.newaxis, :]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment