Export of phases formated for focmec.
This commit is contained in:
parent
b5d081841b
commit
d57cfa0085
27
pylot/core/loc/focmec.py
Normal file
27
pylot/core/loc/focmec.py
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from pylot.core.io.phases import writephases
|
||||||
|
from pylot.core.util.version import get_git_version as _getVersionString
|
||||||
|
|
||||||
|
__version__ = _getVersionString()
|
||||||
|
|
||||||
|
def export(picks, fnout, parameter, eventinfo):
|
||||||
|
'''
|
||||||
|
Take <picks> dictionary and exports picking data to a focmec
|
||||||
|
<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
|
||||||
|
|
||||||
|
:param: parameter, all input information
|
||||||
|
:type: object
|
||||||
|
|
||||||
|
:param: eventinfo, source information needed for focmec format
|
||||||
|
:type: list object
|
||||||
|
'''
|
||||||
|
# write phases to hypoDD-phase file
|
||||||
|
writephases(picks, 'focmec', fnout, parameter, eventinfo)
|
Loading…
Reference in New Issue
Block a user