From 4c82f29b1af72f2544e697c24393073bb373ddcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Tue, 28 Feb 2017 15:01:52 +0100 Subject: [PATCH] Phase output formated for HYPO71, replaces old hsat.py. --- pylot/core/loc/hypo71.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pylot/core/loc/hypo71.py diff --git a/pylot/core/loc/hypo71.py b/pylot/core/loc/hypo71.py new file mode 100644 index 00000000..d3068ba4 --- /dev/null +++ b/pylot/core/loc/hypo71.py @@ -0,0 +1,24 @@ +#!/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): + ''' + Take dictionary and exports picking data to a HYPO71 + 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 + ''' + # write phases to HYPO71-phase file + writephases(picks, 'HYPO71', fnout, parameter)