shakemap.coremods.select

Parse STREC output and create/select a GMPE set for an event.

class shakemap.coremods.select.SelectModule(eventid)[source]

Bases: shakemap.coremods.base.CoreModule

select - Parse STREC output, make a GMPE set, create model_select.conf.

Instantiate a CoreModule class with an event ID.

command_name = 'select'
targets = ['model_select\\.conf']
dependencies = [('event.xml', True), ('source.text', False)]
configs = ['select.conf']
execute()[source]

Parses the output of STREC in accordance with the configuration file, creates a new GMPE set specific to the event, and writes model_select.conf in the event’s ‘current’ directory.

Configuration file: select.conf

Raises:
  • NotADirectoryError -- the event's current directory doesn't exist

  • FileNotFoundError -- the event.xml file doesn't exist

  • ValidateError -- problems with the configuration file

  • RuntimeError -- various problems matching the event to a gmpe set