From d57cfa008517bb6a24566f0712b7b021cdfbacf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Thu, 2 Mar 2017 11:44:03 +0100 Subject: [PATCH] Export of phases formated for focmec. --- pylot/core/loc/focmec.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pylot/core/loc/focmec.py diff --git a/pylot/core/loc/focmec.py b/pylot/core/loc/focmec.py new file mode 100644 index 00000000..f6807950 --- /dev/null +++ b/pylot/core/loc/focmec.py @@ -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 dictionary and exports picking data to a focmec + 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)