
# 2020-08-14 10:53:54.221405
+import numpy as np

# 2020-08-14 10:53:59.452704
+from obspy import *

# 2020-08-14 10:54:10.593341
+st = read()

# 2020-08-14 10:54:15.287610
+data = st[0].data

# 2020-08-14 10:54:33.471650
+data_rev = np.reverse(data)

# 2020-08-14 10:55:12.449879
+data_rev = np.flip(data)

# 2020-08-14 10:55:20.024313
+data > data_rev

# 2020-08-14 10:55:37.442309
+(data > data_rev)[:10]

# 2020-08-14 10:55:44.023685
+(data > data_rev)[:50]

# 2020-08-14 10:55:58.620520
+(data > data_rev)[-50:]

# 2020-08-14 10:56:06.128950
+(data > data_rev)[-100:]

# 2020-08-14 10:56:15.648494
+(data > data_rev)[:100]

# 2020-08-14 10:56:20.582776
+(data > data_rev)[-100:]

# 2020-08-14 10:56:28.614236
+(data > data_rev)[100:200]

# 2020-08-14 10:56:37.573748
+(data > data_rev)[200:300]

# 2020-08-14 10:58:49.681304
+(data > data_rev).index(True)

# 2020-08-14 11:01:18.287804
+np.where((data > data_rev) == True)

# 2020-08-14 11:03:42.703064
+(data > data_rev).view(bool).argmax()

# 2020-08-14 11:17:44.128191
+np.where((data > data_rev)[:100] == True)

# 2020-08-14 11:17:50.539558
+np.where((data > data_rev)[:100] == True)[0]

# 2020-08-14 11:18:12.081790
+np.where((data > data_rev)[:100] == True)[0][0]

# 2020-08-14 11:18:40.440412
+bool_ar = data > data_rev[:100]

# 2020-08-14 11:18:46.452756
+bool_ar

# 2020-08-14 11:19:05.409840
+bool_ar = (data > data_rev)[:100]

# 2020-08-14 11:19:08.716029
+bool_ar

# 2020-08-14 11:20:19.144057
+np.where(bool_ar == True)

# 2020-08-14 11:22:54.399937
+np.where(bool_ar)

# 2020-08-14 11:23:20.842450
+np.where(bool_ar).empty()

# 2020-08-14 11:25:43.770625
+bool_ar = (data > data_rev)

# 2020-08-14 11:25:51.306056
+np.where(bool_ar)

# 2020-08-14 11:25:55.963322
+np.where(bool_ar)[0]

# 2020-08-14 11:26:44.318088
+bool_ar

# 2020-08-14 11:26:52.307545
+bool_ar[0]

# 2020-08-14 11:27:05.682310
+b_ar = np.where(bool_ar)

# 2020-08-14 11:27:07.610420
+b_ar

# 2020-08-14 11:27:30.577734
+b_ar[0][0]

# 2020-08-14 11:28:17.492417
+bool_ar = (data > data_rev)[:100]

# 2020-08-14 11:28:24.906841
+b_ar = np.where(bool_ar)

# 2020-08-14 11:28:28.527048
+b_ar[0]

# 2020-11-03 11:41:35.372963
+exit()

# 2020-11-14 18:44:17.543076
+from aiohttp import request

# 2020-11-14 18:45:06.456874
+payload = {'a': 1, 'b': 2}

# 2020-11-14 18:46:09.382473
+r = request('get', 'http://httpbin.org/get', params=payload)

# 2020-11-14 18:46:13.846728
+r.url

# 2020-11-14 18:48:14.119608
+print(r)

# 2020-11-14 19:10:03.064475
+import urllib

# 2020-11-14 19:10:30.454041
+urllib.urlencode({'count': 10, 'interval': 2})

# 2020-11-14 19:10:57.108566
+from urllib import parse

# 2020-11-14 19:11:16.169656
+parse({'count': 10, 'interval': 2})

# 2020-11-14 19:11:28.705373
+parse.urlencode({'count': 10, 'interval': 2})

# 2020-11-14 20:46:41.582131
+"task id %" 'str'

# 2020-11-14 20:46:58.934124
+print('task id: %d', 5)

# 2020-11-14 20:47:49.649024
+if {}: 'empty dic is true'

# 2020-11-14 20:56:54.209171
+{'a': 1, 'b': 2}.update({'c': 3})

# 2020-11-14 20:57:04.376753
+print({'a': 1, 'b': 2}.update({'c': 3}))

# 2020-11-16 14:20:42.442097
+'bla-bla %' % blew

# 2020-11-16 14:20:50.283545
+'bla-bla %' % 'blew'

# 2020-11-16 14:21:33.184999
+name = "John"

# 2020-11-16 14:21:33.236002
+age = 23

# 2020-11-16 14:21:35.996160
+print("%s is %d years old." % (name, age))

# 2020-11-16 14:21:43.017562
+"%s is %d years old." % (name, age)

# 2020-11-16 14:22:26.055023
+"%s is %d years old." % name % age

# 2020-12-23 21:42:05.794667
+ar = [1, 2, 3]

# 2020-12-23 21:42:17.569341
+ar.remove(2)

# 2020-12-23 21:42:18.828413
+ar

# 2020-12-23 21:42:29.298012
+ar = [1, 2, 3, 2]

# 2020-12-23 21:42:34.058284
+ar.remove(2)

# 2020-12-23 21:42:34.802326
+ar

# 2020-12-23 21:43:17.741782
+reverse([1, 2, 3])

# 2020-12-23 21:43:23.577116
+reversed([1, 2, 3])

# 2020-12-23 21:43:31.081545
+list(reversed([1, 2, 3]))

# 2020-12-25 14:31:14.603992
+from obspy import *

# 2020-12-25 14:32:28.199202
+import os

# 2020-12-25 14:32:33.621512
+os.chdir

# 2020-12-25 14:32:46.609255
+os.chdir('d:/converter_data/error')

# 2020-12-25 14:33:23.461363
+st = read('01927_201225_063020_BHN.mseed')

# 2020-12-25 14:33:54.261124
+st += read('01927_201225_063020_BHZ.mseed')

# 2020-12-25 14:34:01.002510
+st += read('01927_201225_063020_ch1.mseed')

# 2020-12-25 14:34:04.324700
+print(st)

# 2020-12-25 14:34:17.569457
+st.plot()

# 2020-12-25 15:15:47.757888
+print(st)

# 2020-12-25 15:16:20.716773
+st_sac = read('01927_201225_063020_BHN.sac')

# 2020-12-25 15:16:59.460989
+st_sac = read('02RS01927_201225_063020_BHN.sac')

# 2020-12-25 15:17:18.888100
+st_sac = read('02RS001927_201225_063020_BHN.sac')

# 2020-12-25 15:17:46.695691
+st_sac += read('02RS001927_201225_063020_BHZ.sac')

# 2020-12-25 15:17:59.911447
+st_sac += read('02RS001927_201225_063020_ch1.sac')

# 2020-12-25 15:18:06.808841
+print(st_sac)

# 2020-12-25 15:18:16.659405
+print(st)

# 2021-01-05 12:30:48.106863
+from obspy import *

# 2021-01-05 12:31:00.571576
+import numpy as np

# 2021-01-05 12:31:05.018831
+st = read()

# 2021-01-05 12:31:09.872108
+st.plot()

# 2021-01-05 12:31:29.328221
+tr = st[0]

# 2021-01-05 12:31:42.185956
+tr2 = tr.copy()

# 2021-01-05 12:32:27.797565
+tr2.slice(endtime=(tr2.stats.starttime + tr2.stats.endtime)/2)

# 2021-01-05 12:32:35.324996
+stats = tr2.stats

# 2021-01-05 12:32:40.763307
+starttime = stats.starttime

# 2021-01-05 12:32:52.112956
+endtime = stats.endtime

# 2021-01-05 12:33:14.902260
+middletime = (starttime + endtime) / 2

# 2021-01-05 12:33:40.888746
+middletime = starttime + (endtime - starttime)/2

# 2021-01-05 12:33:53.724480
+tr2.slice(endtime = middletime)

# 2021-01-05 12:34:17.742854
+(Stream() + tr + tr2).plot()

# 2021-01-05 12:34:36.135906
+tr2.stats.station

# 2021-01-05 12:34:45.180423
+tr2.stats.station = 'mod'

# 2021-01-05 12:34:48.647621
+(Stream() + tr + tr2).plot()

# 2021-01-05 12:35:10.826890
+tr2 = tr2.slice(endtime = middletime)

# 2021-01-05 12:35:13.406038
+(Stream() + tr + tr2).plot()

# 2021-01-05 12:37:20.785323
+(Stream() + tr + tr2).plot(color=['k', 'r'])

# 2021-01-05 12:37:54.268238
+(Stream() + tr + tr2).plot(color=['k', 'r', 'b', 'g'])

# 2021-01-05 12:38:13.001310
+(Stream() + tr + tr2).plot(color=[100, 150, 200])

# 2021-01-05 12:38:37.189693
+(Stream() + tr + tr2).plot(color=[1, 0, 1])

# 2021-01-05 12:39:02.975168
+(Stream() + tr + tr2).plot(color=[0, 1, 1])

# 2021-01-05 12:39:33.393908
+(Stream() + tr + tr2).plot(color=[1, 1, 1])

# 2021-01-05 12:39:48.744786
+(Stream() + tr + tr2).plot(color=[0, 0, 0])

# 2021-01-15 16:35:36.438497
+from obspy import *

# 2021-01-15 16:35:48.864208
+st = read()

# 2021-01-15 16:35:56.682655
+data = st[0].data

# 2021-01-15 16:36:05.355151
+print(data)

# 2021-01-15 16:36:12.747574
+max(data)

# 2021-01-15 16:36:21.237059
+min(data)

# 2021-01-15 16:36:28.172456
+abs(data)

# 2021-01-15 16:36:36.893955
+max(abs(data))

# 2021-01-15 16:36:43.831352
+min(abs(data))

# 2021-01-18 11:20:57.968613
+from obspy import *

# 2021-01-18 11:21:21.718971
+endtime = max([tr.stats.endtime for tr in st])

# 2021-01-18 11:21:27.721315
+st = read()

# 2021-01-18 11:21:31.677541
+endtime = max([tr.stats.endtime for tr in st])

# 2021-01-18 11:21:33.871667
+endtime

# 2021-01-18 11:21:40.676056
+str(endtime)

# 2021-01-18 11:21:46.981416
+print(st)

# 2021-01-27 11:23:01.577087
+[a, b] = range(2)

# 2021-01-27 11:23:04.408249
+a

# 2021-01-27 11:23:05.473310
+b

# 2021-01-27 12:59:51.973423
+[int(coord) for coord in sys.stdin.readline().strip()]

# 2021-01-27 13:01:07.812760
+trime('1 ')

# 2021-01-27 13:01:12.672038
+trim('1 ')

# 2021-01-27 13:01:22.849620
+'1 '.trim()

# 2021-01-27 13:02:12.681471
+[int(coord.strip()) for coord in sys.stdin.readline().strip()]

# 2021-01-27 13:02:40.069037
+s = sys.stdin.readline().strip()

# 2021-01-27 13:02:43.497233
+s

# 2021-01-27 13:03:04.558438
+' '.split(s)

# 2021-01-27 13:04:11.034240
+s.split()

# 2021-01-27 13:04:41.681993
+[int(coord.strip()) for coord in sys.stdin.readline().split()]

# 2021-01-31 12:03:16.643223
+my_set = {1, 2, 3}

# 2021-01-31 12:03:27.163825
+my_set.remove(2)

# 2021-01-31 12:03:29.318948
+my_set

# 2021-01-31 12:03:40.197570
+my_set.remove(-1)

# 2021-01-31 12:03:51.490216
+my_set.discard(-1)

# 2021-01-31 12:03:54.445385
+my_set

# 2021-02-02 17:06:28.120919
+from obspy import *

# 2021-02-02 17:06:39.749584
+tr = read()[0]

# 2021-02-02 17:06:44.294844
+print(tr.stats)

# 2021-02-02 17:06:59.878735
+tr.interpolate(101)

# 2021-02-02 17:07:04.627007
+print(tr.stats)

# 2021-02-02 17:08:24.447572
+tr.interpolate(99)

# 2021-02-02 17:08:31.669985
+print(tr.stats)

# 2021-02-02 17:08:43.713674
+tr.interpolate(100)

# 2021-02-02 17:08:46.038807
+print(tr.stats)

# 2021-02-02 17:37:15.331573
+lst = range(10)

# 2021-02-02 17:37:16.733653
+lst

# 2021-02-02 17:37:25.019127
+lst.remove(2)

# 2021-02-02 17:37:34.302658
+lst = list(range(10))

# 2021-02-02 17:37:42.770143
+lst.remove(2)

# 2021-02-02 17:37:44.285229
+lst

# 2021-02-02 17:37:58.341033
+lst.remove([3,4])

# 2021-02-02 17:38:14.419953
+lst.remove(3).remove(4)

# 2021-02-02 17:38:17.160110
+lst

# 2021-02-18 12:34:42.760915
+import os

# 2021-02-18 12:34:48.087219
+from obspy import *

# 2021-02-18 12:35:01.709998
+st = read('e:/te')

# 2021-02-18 12:36:04.557593
+st = read('e:/temp/conv/IVY_2_190318_090000_BHE.mseed')

# 2021-02-18 12:36:11.325980
+st.plot()

# 2021-02-18 19:53:52.719046
+lst = ['a', 'b', 'c']

# 2021-02-18 19:54:03.283650
+lst2 = "abc"

# 2021-02-18 19:54:19.817596
+reversed(lst2)

# 2021-02-18 19:54:29.395144
+list(lst2)

# 2021-02-18 19:54:35.228477
+lst2 == lst

# 2021-02-18 19:54:41.543839
+list(lst2) == lst

# 2021-03-02 11:17:50.234756
+import zmq

# 2021-03-02 11:17:59.299275
+context = zmq.Context()

# 2021-03-02 11:18:03.278502
+print(context)

# 2021-03-02 11:18:12.325020
+context.destroy()

# 2021-03-02 11:18:13.906110
+print(context)

# 2021-03-03 18:16:57.425116
+from obspy import *

# 2021-03-03 18:17:05.895600
+dt1 = UTCDat

# 2021-03-03 18:17:13.890058
+dt1 = UTCDateTime()

# 2021-03-03 18:17:25.650730
+dt2 = UTCDateTime()

# 2021-03-03 18:17:33.162160
+dt2 - dt1

# 2021-03-09 11:44:27.679222
+def f(): return 2

# 2021-03-09 11:44:28.967296
+f

# 2021-03-09 11:44:31.472439
+f()

# 2021-03-09 11:45:19.313176
+f.func_name

# 2021-03-09 11:45:54.853208
+f.__name__

# 2021-03-09 12:39:41.908785
+exit()

# 2021-03-12 15:39:20.786381
+list(range(5, 1))

# 2021-03-12 15:39:24.664602
+list(range(5, 1, -1))

# 2021-03-12 15:47:45.971275
+ar = list(range(5, 1, -1))

# 2021-03-12 15:47:48.359412
+ar

# 2021-03-12 15:47:53.873727
+ar.remove(0)

# 2021-03-12 15:48:22.718377
+del ar[0]

# 2021-03-12 15:48:24.552482
+ar

# 2021-03-12 16:10:54.724708
+del ar[-1]

# 2021-03-12 16:10:55.965779
+ar

# 2021-03-17 19:03:09.319387
+for i, e in enumerate([1,5,10,15]): print(f'i:{i} e:{e}')

# 2021-03-17 19:05:11.240360
+lst = [1,5,10,15]

# 2021-03-17 19:05:19.960859
+lst.index(5)

# 2021-03-17 19:05:24.163100
+lst.index(6)

# 2021-03-24 10:29:09.094743
+for i, a in enumerate([10,20,30]): print(f'i:{i} a:{a}')

# 2021-03-24 10:47:22.772298
+for (i, a), (j,b) in zip(enumerate([10,20,30]), enumerate([100,200])): print(f'i:{i} a:{a} j:{j} b:{b}')

# 2021-03-24 11:35:27.405290
+set([10,20,30])

# 2021-03-24 11:35:33.823657
+type({})

# 2021-03-24 11:35:40.983066
+type({1, 2})

# 2021-03-24 11:36:44.675709
+{1, 2, 3} - {1}

# 2021-03-24 11:37:56.847837
+{1, 2, 3}.intersection({1})

# 2021-03-24 11:38:05.951358
+{1}.intersection({1, 2, 3})

# 2021-03-24 11:52:14.156872
+[1,2,3,1].index(1)

# 2021-03-24 11:52:18.631128
+[1,2,3,1].index(1,1)

# 2021-03-24 11:54:00.695966
+[1,2,3,1].index(3,1)

# 2021-03-24 11:54:05.597246
+[1,2,3,1].index(5,1)

# 2021-03-24 11:56:20.527964
+[1,2,3,1].index(1,1)

# 2021-03-24 11:56:26.155286
+[1,2,3,1].index(1,-1)

# 2021-03-24 11:56:34.861784
+[1,2,3,1].index(1,-2)

# 2021-03-24 11:56:44.698347
+[1,2,3,1].index(1,-3)

# 2021-03-24 13:47:57.860745
+range(10)

# 2021-03-24 13:48:03.479067
+list(range(10))

# 2021-03-24 13:48:09.619418
+list(xrange(10))

# 2021-03-24 13:48:42.704310
+xrange(10)

# 2021-03-24 18:14:18.825804
+from scipy.spatial.transform import Rotation as R

# 2021-03-25 13:00:22.799365
+m = [[0, -1, 0],[1, 0, 0],[0, 0, 1]]

# 2021-03-25 13:00:46.727733
+r = R.from_matrix(m)

# 2021-03-31 14:09:21.488283
+from obspy import *

# 2021-03-31 14:09:27.976654
+import numpy as np

# 2021-03-31 14:09:57.461340
+import os

# 2021-03-31 14:10:20.610665
+os.chdir('e:/converter_data/angles')

# 2021-03-31 14:10:55.019633
+st76 = read('01976_210331_091738_BHE.mseed')

# 2021-03-31 14:10:58.902855
+print(st76)

# 2021-03-31 14:11:28.374540
+st76 += read('01976_210331_091738_BHN.mseed')

# 2021-03-31 14:12:00.943403
+st76 += read('01976_210331_091738_BHZ.mseed')

# 2021-03-31 14:12:09.527894
+st = st76

# 2021-03-31 14:12:58.631703
+st.plot()

# 2021-03-31 14:16:37.046195
+os.chdir('./chunk1')

# 2021-03-31 14:16:44.237607
+os.getcwd()

# 2021-03-31 15:29:40.891937
+files = [x for x in os.listdir('.')]

# 2021-03-31 15:29:45.992229
+print(files)

# 2021-03-31 15:29:57.147867
+st = Stream()

# 2021-03-31 15:30:17.872052
+for file in files:
+    st += read(file)

# 2021-03-31 15:30:20.811220
+print(st)

# 2021-03-31 15:30:32.483888
+st.plot()

# 2021-03-31 15:31:25.796937
+os.getcwd()

# 2021-03-31 15:31:50.652359
+os.chdir('e:/converter_data/angles/chunk2')

# 2021-03-31 15:32:54.650019
+files = [x for x in os.listdir('.')]

# 2021-03-31 15:33:15.443209
+st2 = Stream()

# 2021-03-31 15:33:36.882435
+for file in files:
+    st2 += read(file)

# 2021-03-31 15:33:40.832661
+st.plot()

# 2021-03-31 15:35:34.885184
+st2.plot()

# 2021-03-31 15:38:56.377709
+os.chdir('e:/converter_data/angles/chunk3')

# 2021-03-31 15:39:02.981087
+files = [x for x in os.listdir('.')]

# 2021-03-31 15:39:19.764047
+for file in files:
+    st2 += read(file)

# 2021-03-31 15:39:41.666299
+st2.plot()

# 2021-03-31 15:41:53.839859
+st2.plot(method='full')

# 2021-03-31 15:44:06.849467
+print(st2)

# 2021-03-31 15:44:54.120171
+trs = [tr for tr in st2 if tr.stats.channel!='BHZ']

# 2021-03-31 15:44:56.799324
+print(trs)

# 2021-03-31 15:45:20.548682
+[print(tr) for tr in trs]

# 2021-03-31 15:45:29.613201
+st3 = Stream()

# 2021-03-31 15:45:46.192149
+for tr in trs:
+  st3 += tr

# 2021-03-31 15:45:51.103430
+st3.plot()

# 2021-03-31 15:46:23.115261
+st3.plot(method='full')

# 2021-03-31 15:52:28.297148
+st.plot(method='full')

# 2021-03-31 15:52:58.348867
+trs = [tr for tr in st if tr.stats.channel!='BHZ']

# 2021-03-31 15:53:20.186116
+st_chunk1 = Stream()

# 2021-03-31 15:53:45.551567
+for tr in trs:
+  st_chunk1 += tr

# 2021-03-31 15:53:59.547367
+st_chunk1.plot(method='full')

# 2021-03-31 16:06:43.960089
+st3.plot(method='full', equal_scale=True)

# 2021-03-31 16:08:17.606446
+st_slice = st3.slice

# 2021-03-31 16:08:39.153678
+starttime = st3[0].stats.starttime

# 2021-03-31 16:08:41.445809
+starttime

# 2021-03-31 16:09:41.839263
+starttime = UTCDateTime(2021, 3, 31, 9, 38, 2)

# 2021-03-31 16:09:57.161140
+endtime = UTCDateTime(2021, 3, 31, 9, 38, 5)

# 2021-03-31 16:10:22.931614
+st_slice = st3.slice(starttime=starttime, endtime=endtime)

# 2021-03-31 16:10:35.067308
+st_slice.plot(method='full')

# 2021-03-31 16:12:52.155149
+starttime = UTCDateTime(2021, 3, 31, 9, 38, 2, 500000)

# 2021-03-31 16:12:56.264384
+st_slice = st3.slice(starttime=starttime, endtime=endtime)

# 2021-03-31 16:13:01.477682
+st_slice.plot(method='full')

# 2021-03-31 18:42:49.830786
+os.getcwd()

# 2021-03-31 18:43:08.418850
+os.chdir('.')

# 2021-03-31 18:43:10.315958
+os.getcwd()

# 2021-03-31 18:43:28.386992
+os.getcwd("./.")

# 2021-03-31 18:43:37.306502
+os.chdir('./.')

# 2021-03-31 18:43:39.071603
+os.getcwd("./.")

# 2021-03-31 18:43:43.207839
+os.getcwd("")

# 2021-03-31 18:43:46.889050
+os.getcwd()

# 2021-03-31 18:44:02.987971
+os.chdir('e:/converter_data/angles')

# 2021-03-31 18:45:40.988576
+os.chdir('e:/converter_data/angles/chunk3')

# 2021-03-31 18:46:01.068725
+files = [x for x in os.listdir('.')]

# 2021-03-31 18:46:04.484920
+files

# 2021-03-31 18:46:23.976035
+st = Stream()

# 2021-03-31 18:47:22.477381
+for file in files: st += read(file)

# 2021-03-31 18:47:33.384005
+st.plot(method='full')

# 2021-03-31 18:57:20.102563
+files = [x for x in os.listdir('.')]

# 2021-03-31 18:57:30.711170
+st = Stream()

# 2021-03-31 18:57:37.807576
+for file in files: st += read(file)

# 2021-03-31 18:57:45.728029
+st.plot(method='full')

# 2021-03-31 18:59:39.483535
+files = [x for x in os.listdir('.')]

# 2021-03-31 18:59:51.056197
+st = Stream()

# 2021-03-31 19:00:05.385017
+for file in files: st += read(file)

# 2021-03-31 19:00:27.028255
+st.plot(method='full', starttime = starttime, endtime = endtime)

# 2021-03-31 19:02:51.415513
+files = [x for x in os.listdir('.')]

# 2021-03-31 19:02:56.244789
+st = Stream()

# 2021-03-31 19:03:03.103182
+for file in files: st += read(file)

# 2021-03-31 19:03:08.886512
+st.plot(method='full', starttime = starttime, endtime = endtime)

# 2021-03-31 19:03:20.595182
+print(st)

# 2021-03-31 19:03:35.509035
+st.plot()

# 2021-03-31 19:05:22.680165
+files = [x for x in os.listdir('.')]

# 2021-03-31 19:05:26.707395
+st = Stream()

# 2021-03-31 19:05:36.547958
+for file in files: st += read(file)

# 2021-03-31 19:05:42.206282
+st.plot(method='full', starttime = starttime, endtime = endtime)

# 2021-03-31 19:15:36.305262
+files = [x for x in os.listdir('.')]

# 2021-03-31 19:15:40.442499
+st = Stream()

# 2021-03-31 19:15:47.608909
+for file in files: st += read(file)

# 2021-03-31 19:15:57.583479
+st.plot(method='full')

# 2021-03-31 19:17:33.128944
+starttime

# 2021-03-31 19:17:40.386359
+st.plot(method='full')

# 2021-03-31 19:18:37.961652
+starttime

# 2021-03-31 19:19:00.903965
+starttime = UTCDateTime(2021, 3, 31, 9, 22, 21)

# 2021-03-31 19:19:31.277702
+st.plot(method='full', starttime=starttime, endtime=starttime+4)

# 2021-03-31 19:19:42.166325
+st.plot(method='full', starttime=starttime, endtime=starttime+5)

# 2021-03-31 19:22:17.219193
+st.plot(method='full')

# 2021-03-31 19:23:14.500470
+st.plot()

# 2021-03-31 19:24:25.467529
+starttime = UTCDateTime(2021, 3, 31, 9, 23, 20)

# 2021-03-31 19:24:34.149025
+st.plot(method='full', starttime=starttime, endtime=starttime+10)

# 2021-03-31 19:24:53.455129
+st.plot(method='full', starttime=starttime, endtime=starttime+5)

# 2021-03-31 19:25:46.113141
+st.plot()

# 2021-03-31 19:26:45.747552
+starttime = UTCDateTime(2021, 3, 31, 9, 24, 00)

# 2021-03-31 19:26:56.451164
+st.plot(method='full', starttime=starttime)

# 2021-03-31 19:34:03.485589
+files = [x for x in os.listdir('.')]

# 2021-03-31 19:34:17.440388
+st2 = Stream()

# 2021-03-31 19:34:31.333182
+for file in files: st2 += read(file)

# 2021-03-31 19:34:44.414930
+st2.plot(method='full')

# 2021-03-31 19:35:37.761982
+starttime = UTCDateTime(2021, 3, 31, 9, 38, 2)

# 2021-03-31 19:35:53.773898
+st2.plot(method='full', starttime= starttime, endtime=starttime+5)

# 2021-03-31 21:12:03.185907
+from obspy import *

# 2021-03-31 21:12:16.937694
+import os

# 2021-03-31 21:12:22.490011
+os.getcwd()

# 2021-03-31 21:12:44.863291
+os.chdir('e:/converter_data/angles')

# 2021-03-31 21:12:49.619563
+os.getcwd()

# 2021-03-31 21:18:32.574179
+files = [x for x in os.listdir('.') if x.endswith('siv')]

# 2021-03-31 21:18:34.263276
+files

# 2021-03-31 21:20:26.866716
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-03-31 21:20:28.112787
+files

# 2021-03-31 21:20:43.947693
+st = Stream()

# 2021-03-31 21:21:04.424864
+for file in files: st+=read(file)

# 2021-03-31 21:21:09.186137
+print(st)

# 2021-03-31 21:22:48.255803
+st.plot(method='full')

# 2021-03-31 21:25:24.829759
+st.plot()

# 2021-03-31 21:28:35.739678
+starttime = st[0].stats.starttime

# 2021-03-31 21:28:38.002807
+starttime

# 2021-03-31 21:29:01.240137
+starttime = UTCDateTime(2021, 3, 31, 9, 21)

# 2021-03-31 21:29:22.194335
+endtime = UTCDateTime(2021, 3, 31, 9, 24)

# 2021-03-31 21:29:47.093759
+st.plot(method='full', starttime=starttime, endtime=endtime)

# 2021-03-31 21:30:34.583475
+endtime = UTCDateTime(2021, 3, 31, 9, 22)

# 2021-03-31 21:30:38.933724
+endtime = UTCDateTime(2021, 3, 31, 9, 23)

# 2021-03-31 21:30:47.134193
+starttime = UTCDateTime(2021, 3, 31, 9, 22)

# 2021-03-31 21:30:52.715513
+st.plot(method='full', starttime=starttime, endtime=endtime)

# 2021-03-31 21:31:53.806007
+starttime = UTCDateTime(2021, 3, 31, 9, 22, 15)

# 2021-03-31 21:32:03.757576
+st.plot(method='full', starttime=starttime, endtime=starttime + 15)

# 2021-03-31 21:36:28.470717
+st.plot(method='full')

# 2021-03-31 21:38:04.471208
+starttime = UTCDateTime(2021, 3, 31, 9, 30)

# 2021-03-31 21:38:18.018982
+st.plot(method='full', starttime=starttime, endtime=starttime + 60)

# 2021-03-31 21:39:21.493613
+st.plot(method='full', starttime=starttime+15, endtime=starttime + 45)

# 2021-03-31 21:40:08.464300
+st.plot(method='full')

# 2021-03-31 21:41:30.347983
+starttime = UTCDateTime(2021, 3, 31, 9, 38)

# 2021-03-31 21:41:43.095712
+st.plot(method='full', starttime=starttime+3, endtime=starttime + 10)

# 2021-03-31 21:43:35.571145
+st.plot(method='full', starttime=starttime+3, endtime=starttime + 5)

# 2021-03-31 21:45:19.310079
+st.plot(method='full')

# 2021-03-31 21:45:51.303909
+starttime = UTCDateTime(2021, 3, 31, 9, 25)

# 2021-03-31 21:46:03.818625
+st.plot(method='full', starttime=starttime, endtime=starttime + 60)

# 2021-03-31 21:47:00.957893
+st.plot(method='full', starttime=starttime, endtime=starttime + 120)

# 2021-03-31 21:48:07.668708
+starttime = UTCDateTime(2021, 3, 31, 9, 26)

# 2021-03-31 21:48:16.712226
+st.plot(method='full', starttime=starttime, endtime=starttime + 30)

# 2021-03-31 21:49:36.393783
+st.plot(method='full', starttime=starttime+1, endtime=starttime+15)

# 2021-03-31 21:50:27.729720
+st.plot(method='full', starttime=starttime+5, endtime=starttime+13)

# 2021-03-31 21:55:56.729537
+st.plot(method='full', starttime=starttime+8, endtime=starttime+9)

# 2021-03-31 22:01:46.603549
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-03-31 22:02:10.294904
+st_prev = st

# 2021-03-31 22:02:16.763274
+st_prev = st.copy()

# 2021-03-31 22:02:21.098522
+st = Stream()

# 2021-03-31 22:02:37.934485
+for file in files: st += read(file)

# 2021-03-31 22:02:49.192129
+st.plot(method='full', starttime=starttime+8, endtime=starttime+9)

# 2021-03-31 22:04:05.503494
+st.plot(method='full', starttime=starttime+5, endtime=starttime+20)

# 2021-03-31 22:06:28.067648
+trs = [tr for tr in st if tr.stats.channel.endswith('n') or tr.stats.channel.endswith('e')]

# 2021-03-31 22:06:31.710856
+print(trs)

# 2021-03-31 22:06:46.700713
+st3 = Stream()

# 2021-03-31 22:06:58.120367
+for tr in trs: st3 += tr

# 2021-03-31 22:07:02.990645
+st3.plot()

# 2021-03-31 22:07:52.019449
+st3.plot(method='full', starttime=starttime+5, endtime=starttime+20)

# 2021-03-31 22:09:05.981680
+st3.plot(method='full', starttime=starttime+60, endtime=starttime+80)

# 2021-03-31 22:09:53.530400
+st3.plot(method='full', starttime=starttime+70, endtime=starttime+85)

# 2021-03-31 22:12:19.301737
+st3.plot(method='full')

# 2021-03-31 22:13:13.960863
+starttime = UTCDateTime(2021, 3, 31, 9, 38)

# 2021-03-31 22:13:26.104558
+st3.plot(method='full', starttime=starttime, endtime=starttime+30)

# 2021-03-31 22:13:53.631132
+st3.plot(method='full', starttime=starttime+60, endtime=starttime+70)

# 2021-03-31 22:14:10.587102
+st3.plot(method='full', starttime=starttime+60, endtime=starttime+120)

# 2021-03-31 22:14:57.578790
+st3.plot(method='full', starttime=starttime-60, endtime=starttime-30)

# 2021-03-31 22:15:25.734400
+st3.plot(method='full', starttime=starttime-100, endtime=starttime-10)

# 2021-03-31 22:16:01.166427
+st3.plot(method='full')

# 2021-03-31 22:16:34.462332
+starttime = UTCDateTime(2021, 3, 31, 9, 28, 35)

# 2021-03-31 22:16:49.472190
+st3.plot(method='full', starttime=starttime, endtime=starttime+100)

# 2021-03-31 22:17:36.051854
+starttime = UTCDateTime(2021, 3, 31, 9, 29)

# 2021-03-31 22:17:46.452449
+st3.plot(method='full', starttime=starttime, endtime=starttime+30)

# 2021-03-31 22:19:01.668751
+st3.plot(method='full', starttime=starttime, endtime=starttime+20)

# 2021-03-31 22:20:33.635011
+st3.plot(method='full', starttime=starttime+5, endtime=starttime+15)

# 2021-04-01 08:29:37.743189
+st3.plot(method='full')

# 2021-04-01 08:30:03.583667
+starttime

# 2021-04-01 08:30:28.672102
+starttime = UTCDateTime(2021, 3, 31, 9, 20)

# 2021-04-01 08:30:57.011723
+st3.plot(method='full', starttime=starttime-180, endtime=starttime-120)

# 2021-04-01 08:31:47.051585
+st3.plot(method='full', starttime=starttime-135, endtime=starttime-120)

# 2021-04-01 08:32:59.569733
+st3.plot(method='full', starttime=starttime-120, endtime=starttime-60)

# 2021-04-01 08:34:32.104025
+st3.plot(method='full', starttime=starttime-60, endtime=starttime)

# 2021-04-01 08:35:03.141801
+st3.plot(method='full', starttime=starttime, endtime=starttime+60)

# 2021-04-01 08:35:59.818042
+st3.plot(method='full', starttime=starttime+25, endtime=starttime+30)

# 2021-04-01 08:36:19.040142
+st3.plot(method='full', starttime=starttime+20, endtime=starttime+30)

# 2021-04-01 08:36:34.098003
+st3.plot(method='full', starttime=starttime, endtime=starttime+60)

# 2021-04-01 08:37:08.443967
+st3.plot(method='full', starttime=starttime+15, endtime=starttime+30)

# 2021-04-01 08:37:54.982629
+st3.plot(method='full', starttime=starttime+19, endtime=starttime+25)

# 2021-04-01 08:39:54.606471
+st3.plot(method='full', starttime=starttime+60, endtime=starttime+120)

# 2021-04-01 08:40:25.521240
+st3.plot(method='full', starttime=starttime+120, endtime=starttime+180)

# 2021-04-01 08:41:07.350632
+st3.plot(method='full', starttime=starttime+150, endtime=starttime+165)

# 2021-04-01 08:41:54.808346
+st3.plot(method='full', starttime=starttime+155, endtime=starttime+160)

# 2021-04-01 08:42:36.845751
+st3.plot(method='full', starttime=starttime+160, endtime=starttime+170)

# 2021-04-01 08:43:12.951816
+st3.plot(method='full', starttime=starttime+180, endtime=starttime+240)

# 2021-04-01 08:43:31.183859
+st3.plot(method='full', starttime=starttime+180, endtime=starttime+205)

# 2021-04-01 08:44:11.157145
+st3.plot(method='full', starttime=starttime+210, endtime=starttime+240)

# 2021-04-01 08:44:25.009938
+st3.plot(method='full', starttime=starttime+215, endtime=starttime+240)

# 2021-04-01 08:44:47.312213
+st3.plot(method='full', starttime=starttime+240, endtime=starttime+270)

# 2021-04-01 08:45:13.181693
+st3.plot(method='full', starttime=starttime+270, endtime=starttime+300)

# 2021-04-01 08:45:37.908107
+st3.plot(method='full', starttime=starttime+290, endtime=starttime+300)

# 2021-04-01 08:46:24.641780
+st3.plot(method='full', starttime=starttime+292, endtime=starttime+298)

# 2021-04-01 08:49:06.608044
+starttime = UTCDateTime(2021, 3, 31, 9, 30)

# 2021-04-01 08:49:29.968380
+st3.plot(method='full', starttime=starttime, endtime=starttime+60)

# 2021-04-01 08:49:49.965524
+st3.plot(method='full', starttime=starttime+15, endtime=starttime+45)

# 2021-04-01 08:50:29.453783
+st3.plot(method='full', starttime=starttime+15, endtime=starttime+40)

# 2021-04-01 08:54:45.274415
+st3.plot(method='full', starttime=starttime+60, endtime=starttime+120)

# 2021-04-01 08:55:15.794160
+st3.plot(method='full', starttime=starttime+120, endtime=starttime+180)

# 2021-04-01 08:55:38.943484
+st3.plot(method='full', starttime=starttime+180, endtime=starttime+240)

# 2021-04-01 08:56:44.776250
+st3.plot(method='full', starttime=starttime+225, endtime=starttime+255)

# 2021-04-01 08:57:28.609757
+st3.plot(method='full', starttime=starttime+210, endtime=starttime+270)

# 2021-04-01 08:59:00.568017
+st3.plot(method='full', starttime=starttime+240, endtime=starttime+300)

# 2021-04-01 08:59:23.785345
+st3.plot(method='full', starttime=starttime+270, endtime=starttime+330)

# 2021-04-01 09:00:19.428527
+st3.plot(method='full', starttime=starttime+285, endtime=starttime+290)

# 2021-04-01 09:00:29.917127
+st3.plot(method='full', starttime=starttime+270, endtime=starttime+330)

# 2021-04-01 09:01:08.290322
+st3.plot(method='full', starttime=starttime+285, endtime=starttime+300)

# 2021-04-01 09:02:48.172035
+st3.plot(method='full', starttime=starttime+300, endtime=starttime+360)

# 2021-04-01 09:03:21.442938
+st3.plot(method='full', starttime=starttime+360, endtime=starttime+420)

# 2021-04-01 09:03:53.029744
+st3.plot(method='full', starttime=starttime+420, endtime=starttime+480)

# 2021-04-01 09:04:49.992003
+st3.plot(method='full', starttime=starttime+430, endtime=starttime+445)

# 2021-04-01 09:05:02.433714
+st3.plot(method='full', starttime=starttime+420, endtime=starttime+480)

# 2021-04-01 09:05:45.687188
+st3.plot(method='full', starttime=starttime+480, endtime=starttime+540)

# 2021-04-01 09:06:01.808110
+st3.plot(method='full', starttime=starttime+495, endtime=starttime+540)

# 2021-04-01 09:06:31.673818
+st3.plot(method='full', starttime=starttime+540, endtime=starttime+600)

# 2021-04-01 09:07:10.841059
+st3.plot(method='full', starttime=starttime+570, endtime=starttime+585)

# 2021-04-01 09:08:20.721056
+st3.plot(method='full', starttime=starttime+600, endtime=starttime+660)

# 2021-04-01 09:08:33.848806
+st3.plot(method='full', starttime=starttime+600)

# 2021-04-01 09:08:51.611822
+st3.plot(method='full', starttime=starttime+570)

# 2021-04-01 17:33:46.869028
+st3.plot(method='full')

# 2021-04-02 12:34:27.865346
+np

# 2021-04-02 12:34:32.823630
+import numpy as np

# 2021-04-02 12:34:45.498355
+np.array([1, 2, 3])

# 2021-04-02 12:35:20.687367
+ar = np.array([1, 2, 3]).astype('<float32')

# 2021-04-02 12:35:27.625764
+ar = np.array([1, 2, 3]).astype('float32')

# 2021-04-02 12:36:18.595679
+bdata = [1, 0, 0, 0]

# 2021-04-02 12:36:42.426042
+np.frombytes(bdata, dtype='float32')

# 2021-04-02 12:36:57.996933
+np.frombuffer(bdata, dtype='float32')

# 2021-04-02 12:37:13.428816
+bdata = bytes([1, 0, 0, 0])

# 2021-04-02 12:37:20.807238
+np.frombuffer(bdata, dtype='float32')

# 2021-04-02 12:37:37.228177
+np.frombuffer(bdata, dtype='i')

# 2021-04-02 12:38:18.158518
+ar = np.frombuffer(bdata, dtype='i')

# 2021-04-02 12:38:26.786012
+ar.tobytes()

# 2021-04-02 12:38:51.976452
+bdata = bytes([1, 0, 0, 0, 2, 0, 0, 0])

# 2021-04-02 12:38:58.867846
+ar = np.frombuffer(bdata, dtype='i')

# 2021-04-02 12:39:02.567058
+ar

# 2021-04-02 12:39:09.133434
+ar[-1] = 0

# 2021-04-02 12:39:34.687895
+ar[2]

# 2021-04-02 12:39:39.744184
+ar[1]

# 2021-04-02 12:39:44.325447
+ar[1] = 0

# 2021-04-02 12:39:59.674324
+ar = np.frombuffer(bdata, dtype='i').copy()

# 2021-04-02 12:40:03.371536
+ar[1] = 0

# 2021-04-02 12:40:04.935625
+ar

# 2021-04-02 12:40:13.455113
+ar.tobytes()

# 2021-04-02 12:40:58.455687
+11 // 4

# 2021-04-02 12:41:14.269591
+11 % 4

# 2021-04-02 13:44:30.543725
+np.array().astype('i')

# 2021-04-02 13:44:35.351000
+np.array()

# 2021-04-02 13:44:38.988208
+np.array([])

# 2021-04-02 13:44:46.900661
+np.array([]).astype('i')

# 2021-04-02 13:45:00.776455
+np.array([]).astype('<i')

# 2021-04-02 13:45:05.569729
+np.array([]).astype('>i')

# 2021-04-02 13:47:29.637969
+ar = np.array([])

# 2021-04-02 13:47:33.834209
+ar.append(1)

# 2021-04-02 13:48:29.685404
+np.append(ar, 1)

# 2021-04-02 13:49:08.102601
+ar = np.array([]).astype('i')

# 2021-04-02 13:49:09.345672
+ar

# 2021-04-02 13:59:53.697527
+bdata

# 2021-04-02 14:00:09.440427
+np.frombuffer(bdata).astype('int')

# 2021-04-02 14:00:24.073264
+np.frombuffer(bdata).astype('<i')

# 2021-04-02 14:00:54.902028
+np.frombuffer(bdata)

# 2021-04-02 14:01:40.403630
+np.frombuffer(bdata, 'i')

# 2021-04-02 14:04:16.199541
+ar.tobytes()

# 2021-04-02 14:04:18.975700
+ar

# 2021-04-02 14:04:26.140110
+ar = np.frombuffer(bdata, 'i')

# 2021-04-02 14:04:31.308405
+ar.tobytes()

# 2021-04-02 14:04:38.414812
+len(ar.tobytes())

# 2021-04-02 14:19:40.183390
+import os

# 2021-04-02 14:19:51.753052
+fi = open('E:/converter_data/angles/RS001976 2021-03-31 09-28-34.siv')

# 2021-04-02 14:19:54.692220
+print(fi)

# 2021-04-02 14:20:01.577614
+fi.tell()

# 2021-04-02 14:20:26.967066
+fi.seek(0, os.SEEK_END)

# 2021-04-02 14:20:33.250425
+fi.tell()

# 2021-04-02 14:22:50.519277
+fi.seek(0, os.SEEK_END)

# 2021-04-02 14:23:06.057165
+fi.seek(os.SEEK_END)

# 2021-04-02 14:23:12.207517
+fi.tell()

# 2021-04-02 14:23:25.888300
+fi.seek(0)

# 2021-04-02 14:23:28.903472
+fi.tell()

# 2021-04-02 14:23:39.182060
+fi.seek(100)

# 2021-04-02 14:23:41.620199
+fi.tell()

# 2021-04-02 14:24:12.356957
+fi.seek(-1)

# 2021-04-02 14:25:48.167437
+fi.close()

# 2021-04-02 14:26:00.644151
+fi = open('E:/converter_data/angles/RS001976 2021-03-31 09-28-34.siv', 'rb')

# 2021-04-02 14:26:23.296447
+fi.seek(0, os.SEEK_END)

# 2021-04-02 14:26:25.747587
+fi.tell()

# 2021-04-02 14:26:43.721615
+fi.tell(os.SEEK_END)

# 2021-04-02 14:26:53.781190
+fi.seek(os.SEEK_END)

# 2021-04-02 14:26:59.889540
+fi.seek(-1, os.SEEK_END)

# 2021-04-02 14:27:09.419085
+fi.seek(0)

# 2021-04-02 14:27:59.818967
+fi.seek(0, 2)

# 2021-04-02 14:28:25.029409
+len(fi)

# 2021-04-02 14:28:30.493722
+fi.close()

# 2021-04-02 14:29:31.614218
+os.stat('E:/converter_data/angles/RS001976 2021-03-31 09-28-34.siv', 'rb')

# 2021-04-02 14:29:37.657564
+os.stat('E:/converter_data/angles/RS001976 2021-03-31 09-28-34.siv')

# 2021-04-02 14:30:03.614048
+os.stat("E:/converter_data/angles/RS001976 2021-03-31 09-28-34.siv")

# 2021-04-02 14:31:17.037248
+fi = open('E:/converter_data/angles/infile.siv', 'rb')

# 2021-04-02 14:31:33.780205
+fi.seek(0, os.SEEK_END)

# 2021-04-02 14:31:37.834437
+fi.tell()

# 2021-04-02 14:31:40.336580
+fi.close()

# 2021-04-02 14:32:06.468075
+os.stat("E:/converter_data/angles/infile.siv")

# 2021-04-02 14:32:39.969991
+os.chdir('e:/converter_data/angles')

# 2021-04-02 14:32:53.485764
+os.stat('infile.siv')

# 2021-04-02 14:35:43.985516
+ar

# 2021-04-02 14:35:49.923856
+np.append(ar, 3)

# 2021-04-02 14:49:54.712175
+10 % 4

# 2021-04-02 14:51:14.884761
+ar

# 2021-04-02 14:54:46.303853
+os.getcwd()

# 2021-04-02 14:55:02.650788
+os.chdir('./modified')

# 2021-04-02 14:55:06.415003
+os.getcwd()

# 2021-04-02 14:56:17.026042
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-04-02 14:56:29.430752
+st = Stream()

# 2021-04-02 14:56:43.779572
+for file in files: st += read(file)

# 2021-04-02 14:56:47.426781
+st.plot()

# 2021-04-02 14:57:19.773631
+starttime

# 2021-04-02 14:57:49.449328
+st.plot(method='full', starttime=starttime, endtime=starttime+30)

# 2021-04-02 14:57:57.869810
+st.plot(method='full', starttime=starttime)

# 2021-04-02 14:58:11.938615
+st.plot(method='full', starttime=starttime-120, endtime=starttime-60)

# 2021-04-02 14:58:33.140828
+st.plot(method='full', starttime=starttime-70, endtime=starttime-60)

# 2021-04-02 14:59:28.669004
+st.plot(method='full', starttime=starttime-65, endtime=starttime-60)

# 2021-04-02 14:59:45.322956
+st.plot(method='full', starttime=starttime-61, endtime=starttime-60)

# 2021-04-02 15:07:57.681117
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-04-02 15:08:02.776409
+st = Stream()

# 2021-04-02 15:08:26.065741
+for file in files: st += read(file)

# 2021-04-02 15:08:30.328985
+st.plot()

# 2021-04-02 15:11:14.158355
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-04-02 15:11:18.633611
+st = Stream()

# 2021-04-02 15:11:22.430828
+for file in files: st += read(file)

# 2021-04-02 15:11:32.976432
+st.plot(method='full')

# 2021-04-02 15:22:09.097816
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-04-02 15:22:13.722080
+st = Stream()

# 2021-04-02 15:22:16.913263
+for file in files: st += read(file)

# 2021-04-02 15:22:25.215738
+st.plot(method='full')

# 2021-04-02 15:23:16.543673
+ar

# 2021-04-02 15:23:27.356292
+ar.astype('ui8')

# 2021-04-02 15:23:32.052560
+ar.astype('uint8')

# 2021-04-02 15:23:47.468442
+ar.tobytes()

# 2021-04-02 15:25:26.562110
+st = read()

# 2021-04-02 15:25:47.481306
+st = read('01976_210331_092834_BHZ.mseed')

# 2021-04-02 15:25:51.357528
+st.plot()

# 2021-04-02 15:26:09.894588
+st = read('01976_210331_092834_ch1.mseed')

# 2021-04-02 15:26:14.736865
+st.plot()

# 2021-04-02 15:26:41.871417
+st = read('01976_210331_092834_BHN.mseed')

# 2021-04-02 15:26:47.381733
+st.plot()

# 2021-04-02 15:26:57.018284
+st = read('01976_210331_092834_BHE.mseed')

# 2021-04-02 15:27:00.158463
+st.plot()

# 2021-04-02 15:57:16.834371
+ar

# 2021-04-02 15:57:20.500581
+bdata

# 2021-04-02 15:59:02.579420
+lst = range(12)

# 2021-04-02 15:59:08.102735
+lst = list(lst)

# 2021-04-02 15:59:09.040789
+lst

# 2021-04-02 15:59:14.884123
+lst[::3]

# 2021-04-02 15:59:32.524132
+lst[:3:]

# 2021-04-02 16:01:16.245065
+[lst[i:i+3] for i in range(len(lst)) if i // 3 == 0]

# 2021-04-02 16:01:45.026711
+[lst[i:i+3] for i in range(len(lst)) if i % 3 == 0]

# 2021-04-02 16:25:41.795889
+st = read('01976_210331_092834_BHZ.mseed')

# 2021-04-02 16:25:44.280032
+st.plot()

# 2021-04-02 16:25:56.767746
+st = read('01976_210331_092834_BHN.mseed')

# 2021-04-02 16:26:00.343950
+st.plot()

# 2021-04-02 16:26:09.738488
+st = read('01976_210331_092834_BHE.mseed')

# 2021-04-02 16:26:12.129624
+st.plot()

# 2021-04-02 16:37:59.165065
+fi = open('RS001976 2021-03-31 09-28-34.siv')

# 2021-04-02 16:38:44.020630
+fi.read(4)

# 2021-04-02 16:38:57.137380
+fi.close()

# 2021-04-02 16:39:03.131723
+fi = open('RS001976 2021-03-31 09-28-34.siv', 'rb')

# 2021-04-02 16:39:18.290590
+fi.read(4)

# 2021-04-02 16:39:34.072493
+fi.seek(0)

# 2021-04-02 16:39:39.277791
+fi.read(6)

# 2021-04-02 16:39:42.422971
+fi.seek(0)

# 2021-04-02 16:39:51.574494
+fi.read(8)

# 2021-04-02 16:39:55.256705
+fi.seek(0)

# 2021-04-02 16:39:59.630955
+fi.read(10)

# 2021-04-02 16:40:17.038951
+fi.seek(0)

# 2021-04-02 17:10:09.793490
+10

# 2021-04-02 17:10:13.524704
+byte(10)

# 2021-04-02 17:10:17.155911
+bytes(10)

# 2021-04-02 17:10:28.408555
+bytes([10])

# 2021-04-02 17:20:48.519023
+ar

# 2021-04-02 17:20:53.602314
+ar.tobytes()

# 2021-04-02 17:21:06.554055
+ar.astype()

# 2021-04-02 17:21:12.572399
+ar.astype('uint8')

# 2021-04-02 17:21:30.695436
+ar.tobytes()

# 2021-04-03 19:36:42.314399
+np.array([1], dtype='u8')

# 2021-04-03 19:36:47.554699
+ar = np.array([1], dtype='u8')

# 2021-04-03 19:37:03.529613
+val = ar[0]

# 2021-04-03 19:37:05.310715
+val

# 2021-04-03 19:37:09.008926
+type(val)

# 2021-04-03 19:37:22.797715
+type(ar[0])

# 2021-04-03 19:37:35.003413
+ar = np.array([1], dtype='uint8')

# 2021-04-03 19:37:38.068588
+type(ar[0])

# 2021-04-03 19:37:44.231941
+val = ar[0]

# 2021-04-03 19:37:45.608019
+val

# 2021-04-03 19:37:48.679195
+type(val)

# 2021-04-03 19:37:55.900608
+os.getcwd()

# 2021-04-03 19:38:24.976271
+fo = open('temp.bin','wb')

# 2021-04-03 19:38:30.792604
+fo.write(val)

# 2021-04-03 19:38:33.995787
+fo.close()

# 2021-04-03 19:38:46.124481
+fo = open('temp.bin','wb')

# 2021-04-03 19:38:49.021647
+fo.write(val)

# 2021-04-03 19:38:53.760918
+fo.close()

# 2021-04-03 19:41:17.570143
+val = 0

# 2021-04-03 19:41:20.632318
+type(val)

# 2021-04-03 19:45:40.425177
+np.bytes

# 2021-04-03 19:45:42.516297
+np.byte

# 2021-04-03 19:45:53.192908
+val : np.byte = 1

# 2021-04-03 19:45:56.401091
+type(val)

# 2021-04-03 19:46:03.870518
+val : np.byte

# 2021-04-03 19:46:08.447780
+type(val)

# 2021-04-03 19:46:35.052302
+val : np.uint8 = 0

# 2021-04-03 19:46:38.554502
+type(val)

# 2021-04-03 19:48:54.643286
+val = np.uint8(0)

# 2021-04-03 19:48:57.393443
+type(val)

# 2021-04-03 19:55:07.493612
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-04-03 19:55:14.585018
+st = Stream()

# 2021-04-03 19:55:27.088733
+for file in files: st += read(file)

# 2021-04-03 19:55:30.299916
+st.plot()

# 2021-04-03 19:56:20.270775
+for tr in st: tr.stats.station = 'NOROT'

# 2021-04-03 19:56:22.693913
+st.plot()

# 2021-04-03 19:57:52.189032
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-04-03 19:58:14.961334
+st_r = Stream()

# 2021-04-03 19:58:30.653232
+for file in files: st_r += read(file)

# 2021-04-03 19:58:35.686520
+st_r.plot()

# 2021-04-03 19:59:04.036141
+(st+st_r).plot()

# 2021-04-03 19:59:54.829047
+(Stream() + st[1] + st_r[1]).plot()

# 2021-04-03 20:04:10.483669
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-04-03 20:04:21.274286
+st77 = Stream()

# 2021-04-03 20:04:34.270030
+for file in files: st77 += read(file)

# 2021-04-03 20:04:38.341263
+st77.plot()

# 2021-04-03 20:06:10.524535
+st77.plot(equal_scal=False)

# 2021-04-03 20:06:23.234262
+st[1].plot()

# 2021-04-03 20:06:41.906330
+st77.plot(equal_scal=True)

# 2021-04-03 20:06:48.388701
+st[1].plot()

# 2021-04-03 20:07:15.753266
+st77[1].plot()

# 2021-04-03 20:07:45.514968
+st77.plot(equal_scale=False)

# 2021-04-03 20:11:18.492150
+st77.plot(equal_scale=True)

# 2021-04-04 13:17:21.082837
+st77 = st77[:-1]

# 2021-04-04 13:17:23.172957
+st77.plot(equal_scale=True)

# 2021-04-04 13:17:55.346797
+print(st)

# 2021-04-04 13:18:20.663245
+(st + st77).plot()

# 2021-04-04 13:20:25.416381
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-04-04 13:20:40.803261
+sto = Stream()

# 2021-04-04 13:20:52.768945
+for file in files: sto += read(file)

# 2021-04-04 13:21:00.781403
+sto.plot()

# 2021-04-04 13:21:21.921613
+sto = Stream() + sto[1]

# 2021-04-04 13:21:24.652769
+sto.plot()

# 2021-04-04 13:22:45.821411
+sto[0].stats.station = 'ORIGI'

# 2021-04-04 13:23:01.731321
+(sto + st77).plot()

# 2021-04-04 13:24:21.942909
+(sto + st77)[-2:].plot()

# 2021-04-04 13:24:59.418053
+print(st77)

# 2021-04-04 13:25:25.890567
+(sto + st77[0]).plot()

# 2021-04-04 14:17:45.362134
+(sto + st77).plot()

# 2021-04-04 14:18:12.532688
+max(st77[0].tr.data)

# 2021-04-04 14:18:18.632037
+max(st77[0].data)

# 2021-04-04 14:18:26.728500
+max(sto[0].data)

# 2021-04-04 14:18:44.793534
+min(sto[0].data)

# 2021-04-04 14:18:50.962886
+min(st77[0].data)

# 2021-04-04 14:19:31.346196
+(sto + st77).plot()

# 2021-04-04 14:20:25.036267
+(st + st77).plot(equal_scale=False)

# 2021-04-04 14:20:39.767110
+(sto + st77).plot(equal_scale=False)

# 2021-04-04 14:22:02.430838
+(sto + st77).plot()

# 2021-04-04 21:06:53.194190
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-04-04 21:07:10.496180
+sto = Stream()

# 2021-04-04 21:07:33.114473
+for file in files: sto += read(file)

# 2021-04-04 21:07:34.589558
+sto

# 2021-04-04 21:07:41.448950
+print(sto)

# 2021-04-04 21:07:52.054557
+sto.plot()

# 2021-04-04 21:08:16.799972
+sto = sto[2:]

# 2021-04-04 21:08:22.132277
+print(sto)

# 2021-04-04 21:08:34.125963
+sto = sto[:-1]

# 2021-04-04 21:08:36.706111
+print(sto)

# 2021-04-04 21:09:40.772775
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-04-04 21:09:52.461443
+stc = Stream()

# 2021-04-04 21:10:08.511361
+for file in files: stc += read(file)

# 2021-04-04 21:10:18.567937
+stc.plot()

# 2021-04-04 21:10:40.097168
+stc.plot(equal_scale=False)

# 2021-04-04 21:11:03.463505
+print(stc)

# 2021-04-04 21:11:24.473706
+stc = stc[:-1]

# 2021-04-04 21:11:27.085856
+print(stc)

# 2021-04-04 21:11:51.875274
+sto[0].stats.station = 'ORIGI'

# 2021-04-04 21:12:15.284613
+(sto + stc).plot(equal_scale=False)

# 2021-04-06 10:54:00.234795
+st = Stream()

# 2021-04-06 10:54:28.929436
+os.chdir('e:/converter_data/angles')

# 2021-04-06 10:54:40.645106
+files = [x for x in os.listdir('.') if x.endswith('mseed')]

# 2021-04-06 10:55:02.329346
+for file in files: st+=read(file)

# 2021-04-06 10:55:12.595933
+st.plot(method='full')

# 2021-04-06 10:57:30.283809
+trs = [tr for tr in st if tr.stats.channel == 'BHE' or tr.stats.channel == 'BHN']

# 2021-04-06 10:57:33.717005
+print(trs)

# 2021-04-06 10:57:44.158602
+sten = Stream()

# 2021-04-06 10:58:06.050854
+for tr in trs: sten += tr

# 2021-04-06 10:58:16.008424
+sten.plot(method='full')

# 2021-04-06 12:56:00.901513
+sten.plot(method='full', starttime=sten[0].stats.starttime + 60, endtime = sten[0].stats.starttime + 1)

# 2021-04-06 12:56:18.166500
+sten.plot(method='full', starttime=sten[0].stats.starttime + 60, endtime = sten[0].stats.starttime + 61)

# 2021-04-06 12:56:55.457633
+print(ste)

# 2021-04-06 12:56:59.553867
+print(sten)

# 2021-04-06 12:57:33.088786
+sten = sten[1:]

# 2021-04-06 12:57:35.201906
+print(sten)

# 2021-04-06 12:57:55.838087
+sten[:1]

# 2021-04-06 12:57:59.743310
+print(sten)

# 2021-04-06 12:58:11.021955
+print(sten[:1])

# 2021-04-06 12:58:34.159279
+sten = sten[:1] + sten[-1:]

# 2021-04-06 12:58:38.530529
+print(sten)

# 2021-04-06 12:58:43.125791
+sten.plot()

# 2021-04-06 12:59:03.302945
+starttime = sten[0].stats.starttime

# 2021-04-06 12:59:10.596363
+starttime += 60

# 2021-04-06 12:59:26.339263
+sten.plot(starttime=starttime, endtime=starttime+2)

# 2021-04-06 13:00:00.650226
+sten.plot(starttime=starttime, endtime=starttime+.2)

# 2021-04-06 13:00:08.519676
+sten.plot(starttime=starttime, endtime=starttime+.5)
