shakemap.coremods.augment

Reads shake_data.hdf from the event’s current directory and adds local configs, data, etc., then writes a new shake_data.hdf.

class shakemap.coremods.augment.AugmentModule(eventid, comment=None)[source]

Bases: shakemap.coremods.base.CoreModule

augment – Incorporate additional content into the shake_data.hdf input

file.

Instantiate a CoreModule class with an event ID.

command_name = 'augment'
execute()[source]

Augment a ShakeMap input data file with local configs, data, rupture, etc. The version history will only be incremented if the originator differs from the originator in the previous line of the history.

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.