示例#1
0
 def test_single_execution(self):
     # stations 21, & 22
     # 3 windows say
     #
     anxcor = Anxcor()
     anxcor.set_window_length(120.0)
     bank = WavebankWrapper(source_dir)
     anxcor.add_dataset(bank, 'nodals')
     result = anxcor.process([starttime_stamp])
     streams = anxcor.xarray_to_obspy(result)
     assert len(streams) == 25, 'not enough traces retained!'
示例#2
0
 def test_rotation(self):
     # stations 21, & 22
     # 3 windows say
     #
     anxcor = Anxcor(3600)
     bank = WavebankWrapper(source_dir)
     anxcor.add_dataset(bank, 'nodals')
     anxcor.set_task_kwargs('crosscorrelate', dict(dummy_task=True))
     result = anxcor.process([starttime_stamp])
     rotated_result = anxcor.align_station_pairs(result)
     streams = anxcor.xarray_to_obspy(result)
     assert len(streams) == 9, 'not enough traces retained!'