shakemap.coremods.info¶
-
class
shakemap.coremods.info.
InfoModule
(eventid)[source]¶ Bases:
shakemap.coremods.base.CoreModule
info – Extract info.json from shake_result.hdf and write it as a file.
Instantiate a CoreModule class with an event ID.
-
command_name
= 'info'¶
-
targets
= ['products/info\\.json']¶
-
dependencies
= [('products/shake_result.hdf', True)]¶
-
execute
()[source]¶ Write info.json metadata file.
- Raises:
NotADirectoryError – When the event data directory does not exist.
FileNotFoundError – When the the shake_result HDF file does not exist.
-