Skip to content
Snippets Groups Projects
Commit c9b1546e authored by Erin (Josh) Rigler's avatar Erin (Josh) Rigler
Browse files

Work-around for issue #216

ObsPy/NumPy have a bug related to masked arrays that this small
change works around by forcing gaps to be filled by NaNs, even
during intermediate processing.
parent 2a6314a9
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,9 @@ def merge_streams(*streams):
# 1 = do not interpolate
interpolation_samples=0,
# 1 = when there is overlap, use data from trace with last endtime
method=1)
method=1,
# np.nan = work-around for (problematic) intermediate masked arrays
filled_value=numpy.nan)
# convert back to NaN filled array
merged = unmask_stream(split)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment