code:
st = rsClient.get_waveforms(network=net, station=sta, channel=“HH*”, starttime=startday, endtime=startday+86400)
st.merge(fill_value=0)
st.detrend(‘simple’)
st.detrend(‘demean’)
output:
SL.BOJS…HHE | 2020-12-30T23:59:58.139539Z - 2021-01-01T00:00:01.274539Z | 200.0 Hz, 17280628 samples
/Users/bvicic/anaconda3/envs/qtt/lib/python3.7/site-packages/obspy/io/mseed/core.py:790: UserWarning: The encoding specified in trace.stats.mseed.encoding does not match the dtype of the data.
A suitable encoding will be chosen.
warnings.warn(msg, UserWarning)
SL.BOJS…HHN | 2020-12-30T23:59:58.479538Z - 2021-01-01T00:00:02.074538Z | 200.0 Hz, 17280720 samples
SL.BOJS…HHZ | 2020-12-30T23:59:58.269539Z - 2021-01-01T00:00:01.024539Z | 200.0 Hz, 17280552 samples
._cleanup() does not make any difference. and btw, it only works with stream, not trace 