obspy.io.nordic.core._extract_event

_extract_event(event_str, catalog, wav_names, return_wavnames=False, nordic_format='UKN', **kwargs)[source]

Helper to extract event info from a list of line strings.

Parameters
  • event_str (list[str]) – List of lines from sfile

  • catalog (obspy.core.event.Catalog) – Catalog to append the event to

  • wav_names (list) – List of waveform names

  • return_wavnames (bool) – Whether to extract the waveform name or not.

  • nordic_format (str) – ‘UKN’, ‘OLD’, or ‘NEW’ (unknown, old, new). For ‘UKN’, the function will find out on its own

Returns

Adds event to catalog and returns. Works in place on catalog.