Dear all,
Hope this mail finds you well.
I have some raspyshake data downloaded from an offline station (no internet near).
The length of data is 1 hour per channel but I need only some part of the data, so I trim them.
Once the waveforms are trim I wanted to stare them in a new Stream, the code I wrote is:
import obspy
from obspy.core import read
from obspy import UTCDateTime
import os
import glob
os.chdir('/home/tonino/Documents/Inv/ML/3erdreport/Data/events_regional')
fechahora = '2020, 11, 3, 09, 35, 00'
ntr_bo = obspy.Stream()
t_bo = UTCDateTime(fechahora)
data = read(variable)
#----Bolivia RaspyShake ----
for f in glob.glob('2020-11-03*.AM_REDDE*EH*'):
datas = read(f)
datas.trim(t_bo, t_bo + 420)
print (datas)
for t in datas:
ntr_bo.append(datas)
Unfortunately I am not able to append the new data into the new Stream, I got the following error.
TypeError: Append only supports a single Trace object as an argument.
What am i doing wrong?, thanks in adavance.
Tonino