shakemap.coremods.mapping¶
-
class
shakemap.coremods.mapping.
MappingModule
(eventid)[source]¶ Bases:
shakemap.coremods.base.CoreModule
mapping – Generate maps of the IMTs found in shake_result.hdf.
Instantiate a CoreModule class with an event ID.
-
command_name
= 'mapping'¶
-
targets
= ['products/intensity\\.jpg', 'products/intensity\\.pdf', 'products/mmi_legend\\.pdf', 'products/pga\\.jpg', 'products/pga\\.pdf', 'products/pgv\\.jpg', 'products/pgv\\.pdf', 'products/psa.*p.*\\.jpg', 'products/psa.*p.*\\.pdf']¶
-
dependencies
= [('products/shake_result.hdf', True)]¶
-
configs
= ['products.conf']¶
-
display_magnitude
= None¶
-
execute
()[source]¶ - Raises:
NotADirectoryError – When the event data directory does not exist.
FileNotFoundError – When the the shake_result HDF file does not exist.
-
-
shakemap.coremods.mapping.
make_pin_thumbnail
(adict)[source]¶ Make the artsy-thumbnail for the pin on the USGS webpages.