shakemap.coremods.uncertaintymaps

class shakemap.coremods.uncertaintymaps.UncertaintymapsModule(eventid)[source]

Bases: shakemap.coremods.base.CoreModule

uncertaintymaps – Generate maps of the uncertainty of the IMTs found in shake_result.hdf.

Instantiate a CoreModule class with an event ID.

command_name = 'uncertaintymaps'
targets = ['products/intensity_sigma\\.jpg', 'products/intensity_sigma\\.pdf', 'products/pga_sigma\\.jpg', 'products/pga_sigma\\.pdf', 'products/pgv_sigma\\.jpg', 'products/pgv_sigma\\.pdf', 'products/psa_sigma.*p.*\\.jpg', 'products/psa_sigma.*p.*\\.pdf']
dependencies = [('products/shake_result.hdf', True)]
configs = ['products.conf']
display_magnitude = None
parseArgs(arglist)[source]

Set up the object to accept the –display-magnitude flag

execute()[source]
Raises:
shakemap.coremods.uncertaintymaps.make_map(adict)[source]
shakemap.coremods.uncertaintymaps.get_text_strings(stringfile)[source]

Read the file containing the translated text strings, remove the comments and parse as JSON.

Parameters:

stringfile (str) – Path to the map_strings.xx file specified in the config. The file is assumend to be UTF-8.

Returns:

A dictionary of strings for use in writing text to the maps.

Return type:

dict