shakemap.coremods.assemble

Collect configuration, station data, finite fault data, etc., into an InputContainer and write it out as shake_data.hdf.

class shakemap.coremods.assemble.AssembleModule(eventid, comment=None)[source]

Bases: shakemap.coremods.base.CoreModule

assemble – Assemble ShakeMap input data into the shake_data.hdf input

file.

Instantiate a CoreModule class with an event ID.

command_name = 'assemble'
targets = ['shake_data\\.hdf']
dependencies = [('event.xml', True), ('*_dat.xml', False), ('*_fault.txt', False), ('rupture.json', False), ('source.txt', False), ('model.conf', False), ('model_select.conf', False)]
configs = ['gmpe_sets.conf', 'model.conf', 'modules.conf']
execute()[source]

Assemble ShakeMap input data and write and ShakeMapInputContainer named shake_data.hdf in the event’s ‘current’ directory.

Raises:
  • NotADirectoryError – When the event data directory does not exist.

  • FileNotFoundError – When the the event’s event.xml file does not exist.

  • RuntimeError – When there are problems parsing the configuration.

  • ValidateError – When there are configuration items missing or mis- configured.

parseArgs(arglist)[source]

Set up the object to accept the –comment flag.