shakelib.utils.utils

shakelib.utils.utils.get_extent(rupture)[source]

Method to compute map extent from rupture.

Parameters:rupture (Rupture) – A ShakeMap Rupture instance.
Returns:lonmin, lonmax, latmin, latmax rounded to the nearest arc-minute..
Return type:tuple
shakelib.utils.utils.is_stable(lon, lat)[source]

Determine if point is located in the US stable tectonic region. Uses the same boundary as the US NSHMP and so this function needs to be modified to work outside of the US.

Parameters:
  • lon (float) – Lognitude.
  • lat (float) – Latitude.
Returns:

Is the point classified as tectonically stable.

Return type:

bool