shakemap.utils.macros

shakemap.utils.macros.get_macros(info)[source]

Return a dictionary containing macros that can be used in shakemail text.

Parameters:

info (dict) – Dictionary returned from ShakeMapOutputContainer.getMetadata().

Returns:

Dictionary containing following fields:
  • MAG Event magnitude.

  • LOC Location string.

  • LAT Event latitude.

  • LON Event longitude.

  • DEP Event depth.

  • DATETIME Event date/time (i.e., 2018-01-18T11:34:25.123456)

  • DATE Event date (i.e., “Jan 31, 2018”)

  • TIME Event time (i.e., “11:34:23”)

  • VERSION ShakeMap map version (i.e., 1, 2, 3, etc.)

  • EVENTID Earthquake event ID.

  • PRODUCT_CODE Unique code describing the ShakeMap product.

  • NETID Earthquake network ID.

Return type:

dict