get_info_about_tele_events ========================== .. py:module:: get_info_about_tele_events .. autoapi-nested-parse:: Reads quakeml catalog to obtain info about the events. Location: Chavannes-pres-renens, CH Date: Jan 2022 Author: Konstantinos Michailos Attributes ---------- .. autoapisummary:: get_info_about_tele_events.data_root_dir get_info_about_tele_events.cat get_info_about_tele_events.net_loc get_info_about_tele_events.ev_loc Functions --------- .. autoapisummary:: get_info_about_tele_events.dist_calc get_info_about_tele_events.qml2gmt Module Contents --------------- .. py:data:: data_root_dir :value: '/media/kmichailos/SEISMIC_DATA/Data_archive' .. py:function:: dist_calc(loc1, loc2) Function to calculate the distance in km between two points. Uses the flat Earth approximation. Better things are available for this, like `gdal `_. :type loc1: tuple :param loc1: Tuple of lat, lon, depth (in decimal degrees and km) :type loc2: tuple :param loc2: Tuple of lat, lon, depth (in decimal degrees and km) :returns: Distance between points in km. :rtype: float :author: Calum Chamberlain .. py:function:: qml2gmt(cat, output_name, sort_by='depth') Read catalog output .dat file for GMT .. py:data:: cat .. py:data:: net_loc :value: [47.0, 10.0, 0.0] .. py:data:: ev_loc