2015-11-05 09:17:20 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
2017-04-06 13:16:28 +02:00
|
|
|
|
2024-07-17 13:29:10 +02:00
|
|
|
from pylot.core.io.phases import write_phases
|
2017-04-06 13:16:28 +02:00
|
|
|
from pylot.core.util.version import get_git_version as _getVersionString
|
|
|
|
|
|
|
|
__version__ = _getVersionString()
|
|
|
|
|
2017-08-03 09:41:54 +02:00
|
|
|
|
2017-08-16 16:24:35 +02:00
|
|
|
def export(picks, fnout, eventinfo, parameter=None):
|
2017-04-06 13:16:28 +02:00
|
|
|
'''
|
|
|
|
Take <picks> dictionary and exports picking data to a VELEST-cnv
|
|
|
|
<phasefile> without creating an ObsPy event object.
|
|
|
|
|
|
|
|
:param picks: picking data dictionary
|
|
|
|
:type picks: dict
|
|
|
|
|
|
|
|
:param fnout: complete path to the exporting obs file
|
|
|
|
:type fnout: str
|
|
|
|
|
2017-11-13 11:45:25 +01:00
|
|
|
:param eventinfo: source time needed for VELEST-cnv format
|
|
|
|
:type eventinfo: list object
|
2017-08-16 16:24:35 +02:00
|
|
|
|
2017-11-13 11:45:25 +01:00
|
|
|
:param parameter: all input information
|
|
|
|
:type parameter: object
|
2017-04-06 13:16:28 +02:00
|
|
|
'''
|
|
|
|
# write phases to VELEST-phase file
|
2024-07-17 13:29:10 +02:00
|
|
|
write_phases(picks, 'VELEST', fnout, parameter, eventinfo)
|