本文整理汇总了Python中pyasdf.ASDFDataSet.process_two_files_without_parallel_output方法的典型用法代码示例。如果您正苦于以下问题:Python ASDFDataSet.process_two_files_without_parallel_output方法的具体用法?Python ASDFDataSet.process_two_files_without_parallel_output怎么用?Python ASDFDataSet.process_two_files_without_parallel_output使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyasdf.ASDFDataSet
的用法示例。
在下文中一共展示了ASDFDataSet.process_two_files_without_parallel_output方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: print
# 需要导入模块: from pyasdf import ASDFDataSet [as 别名]
# 或者: from pyasdf.ASDFDataSet import process_two_files_without_parallel_output [as 别名]
synthetic = other_station_group.preprocessed_synthetic_27s_to_60s
all_windows = []
for component in ["Z", "R", "T"]:
obs = observed.select(component=component)
syn = synthetic.select(component=component)
if not obs or not syn:
continue
windows = pyflex.select_windows(
obs, syn, config, event=event, station=stationxml)
print("Station %s.%s component %s picked %i windows" % (
stationxml[0].code, stationxml[0][0].code, component,
len(windows)))
if not windows:
continue
all_windows.append(windows)
return all_windows
import time
a = time.time()
results = ds.process_two_files_without_parallel_output(other_ds, process)
b = time.time()
if ds.mpi.rank == 0:
print(results)
print len(results)
print "Time taken:", b - a