In [1]:
from lmatools.flashsort.autosort.autorun import run_files_with_params, test_output, logger_setup

In [2]:
outpath = '/Users/ebruning/out/scratch/'
logger_setup(outpath)

In [3]:
outpath = '.'

In [4]:
#files = ['/data/20040526/LMA/LYLOUT_040526_224000_0600.dat.gz', '/data/20040526/LMA/LYLOUT_040526_225000_0600.dat.gz' ]
files = ['/data/20040526/LMA/LYLOUT_040526_214000_0600.dat.gz', ]

In [5]:
ctrLat = 35.23833
ctrLon = -97.46028

params = {'stations':(6,13),
          'chi2':(0,1.0),
          'ascii_flashes_out':'flashes_out.dat',
          'ctr_lat':ctrLat, 'ctr_lon':ctrLon,
          }

In [7]:
from lmatools.flashsort.autosort.autorun_sklearn import cluster
run_files_with_params(files, outpath, params, cluster, retain_ascii_output=False, cleanup_tmp=True)


sorting 24856 total points
73
135
231
188
25
377
127
78
34
150
294
283
93
26
62
119
340
211
397
289
158
101
104
186
492
410
81
203
373
271
119
303
531
302
174
159
217
233
362
525
368
256
184
431
402
278
120
147
800
838
106
291
282
375
425
252
321
576
512
325
431
375
446
380
343
332
462
450
317
296
159
36
508
355
389
165
329
413
184
241
6
349
167
290
467
576
402
198
432
250
237
735
699
230
367
537
204
289
297
224
369
413
1053
344
400
118
171
179
288
794
888
849
675
184
154
44
570
352
165
done with 24856 total points
sending 24856 total points
(24856,)
(24856,)
finished non-singletons
finished singletons
sent 24856 total points
got some flashes
838
Out[7]:
['./LYLOUT_040526_214000_0600.dat.flash.h5']

In [ ]:


In [8]:


In [ ]: