Skip to content

Commit

Permalink
Merge pull request #314 from noisepy/manuela2
Browse files Browse the repository at this point in the history
replace interpolate with resample
  • Loading branch information
mdenolle authored Jun 24, 2024
2 parents 90e2713 + 50840d8 commit 9fd81c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/noisepy/seis/noise_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def preprocess_raw(
# make downsampling if needed
if abs(samp_freq - sps) > 1e-4:
# downsampling here
st.interpolate(samp_freq, method="weighted_average_slopes")
# st.interpolate(samp_freq, method="weighted_average_slopes")
st.resample(samp_freq)
delta = st[0].stats.delta

# when starttimes are between sampling points
Expand Down

0 comments on commit 9fd81c3

Please sign in to comment.