shakelib.plotting.contour¶
-
shakelib.plotting.contour.
contour
(imtdict, imtype, filter_size, gmice)[source]¶ Generate contours of a specific IMT and return as a Shapely MultiLineString object.
- Parameters:
container (ShakeMapOutputContainer) – ShakeMapOutputContainer with ShakeMap output data.
imtype (str) – String containing the name of an Intensity Measure Type found in container.
filter_size (int) – Integer filter (see https://docs.scipy.org/doc/scipy-0.16.1/reference/generated/scipy.ndimage.filters.median_filter.html)
- Returns:
List of dictionaries containing two fields
geometry: GeoJSON-like representation of one of the objects in https://toblerity.org/fiona/manual.html#geometry-types
properties: Dictionary of properties describing that feature.
- Return type:
- Raises:
NotImplementedError -- if the user attempts to contour a data file – with sets of points rather than grids.