shakemap.coremods.contour

class shakemap.coremods.contour.ContourModule(eventid, filter=None)[source]

Bases: shakemap.coremods.base.CoreModule

contour – Generate contours of all IMT values from the

shake_result.hdf output file.

Instantiate a CoreModule class with an event ID.

command_name = 'contour'
targets = ['products/cont_.*\\.json']
dependencies = [('products/shake_result.hdf', True)]
execute()[source]

Create contour files for all configured IMT values.

Raises:
shakemap.coremods.contour.contour_to_files(container, output_dir, logger, contents, filter_size=10)[source]

Generate contours of all IMT values.

Parameters:
  • container (ShakeMapOutputContainer) – ShakeMapOutputContainer with ShakeMap output data.

  • output_dir (str) – Path to directory where output files will be written.

  • logger (logging.Logger) – Python logging Logger instance.

Raises:

LookupError – When configured file format is not supported