From 44d2acf331abda34c2261562f7540e48bb11a717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Thu, 2 Mar 2017 09:19:11 +0100 Subject: [PATCH] Output formated for further VELEST processing. --- pylot/core/loc/velest.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pylot/core/loc/velest.py b/pylot/core/loc/velest.py index faa18be5..f8606e64 100644 --- a/pylot/core/loc/velest.py +++ b/pylot/core/loc/velest.py @@ -1,2 +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 dictionary and exports picking data to a VELEST-cnv + 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, optional, source time needed for VELEST-cnv format + :type: list object + ''' + # write phases to NLLoc-phase file + writephases(picks, 'VELEST', fnout, parameter, eventinfo)