Commit 50d1cda7 authored by Javier Quinteros's avatar Javier Quinteros

Convert data back to int16 and reduce storage space needed by 50%.

parent 8cc57332
......@@ -496,10 +496,11 @@ def main():
with td:
for data, stats in td:
st = Stream([Trace(data=data, header=stats)])
# print(data)
st[0].decimate(args.decimate)
# print(st[0].data)
tr0 = Trace(data=data, header=stats)
tr0.decimate(args.decimate)
tr1 = Trace(data=tr0.data.astype(td.datatype), header=stats)
st = Stream([tr1])
try:
fout = openedfiles[(stats['network'], stats['station'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment