obspy.io.nordic.core.read_nordic

read_nordic(select_file, return_wavnames=False, encoding='latin-1', nordic_format='UKN', **kwargs)[source]

Read a catalog of events from a Nordic formatted select file.

Generates a series of temporary files for each event in the select file.

Parameters:
  • select_file (str) – Nordic formatted select.out file to open

  • return_wavnames (bool) – If True, will return the names of the waveforms that the events are associated with.

  • encoding (str) – Encoding for file, used to decode from bytes to string

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

Returns:

catalog of events

Return type:

Event

The following parameters deal with the problem, that the format only stores station names for the picks, but the Pick object expects a SEED id. The SEED id is looked up for every pick by the following procedure:

  1. look at seedid_map for a direct station name match and use the specified template

  2. if 1 did not succeed, look if the station is present in inventory and use its first channel as template

  3. if 1 and 2 did not succeed, use specified default template (default_seedid)

Parameters:
  • inventory (Inventory) – Inventory used to retrieve network code, location code and channel code of stations (SEED id).

  • seedid_map (dict) – Default templates for each station (example: seedid_map={‘MOX’: ‘GR.{}..HH{}’). The values must contain three dots and two {} which are substituted by station code and component.

  • default_seedid (str) – Default SEED id template. The value must contain three dots and two {} which are substituted by station code and component.

  • warn (bool) – Whether or not to warn on failed look ups (no matching data found or ambiguous results) in the inventory