Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Heimann
grond
Commits
0d6f1cdc
Commit
0d6f1cdc
authored
May 19, 2017
by
Sebastian Heimann
Browse files
modify 'extend_incomplete' to fill with median rather than zeros
parent
6e4f9931
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dataset.py
View file @
0d6f1cdc
...
...
@@ -403,11 +403,17 @@ class Dataset(object):
if
extend_incomplete
and
len
(
trs
)
==
1
:
trs
[
0
].
extend
(
tmin
+
toffset_noise_extract
-
tpad
,
tmax
+
toffset_noise_extract
+
tpad
)
tmax
+
toffset_noise_extract
+
tpad
,
fillmethod
=
'median'
)
if
not
want_incomplete
and
len
(
trs
)
!=
1
:
if
len
(
trs
)
==
0
:
message
=
'waveform missing or incomplete'
else
:
message
=
'waveform has gaps'
raise
NotFound
(
'waveform missing or incomplete'
,
message
,
codes
=
(
net
,
sta
,
loc
,
cha
),
time_range
=
(
tmin
+
toffset_noise_extract
-
tpad
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment