MapPlotter

class mss_dataserver.postprocess.map_plotter.MapPlotter(supplement_dir, map_dir, output_dir, basemap='mss_basemap_desaturate.tif', boundary='mss_network_hull.geojson')[source]

Bases: object

Create map images and movies using mssds geojson data.

Parameters
  • supplement_dir (str) – The directory where the supplement data is saved.

  • map_dir (str) – The directory where the map data is saved.

  • output_dir (str) – The directory where to save the computed map images.

  • basemap (str) – The filename of the background map in geotiff file format.

  • boundary (str) – The filename of the network boundary in geojson file format.

Methods

__init__(supplement_dir, map_dir, output_dir)

Initialize the instance.

clear_map()

Remove all data artists from the map.

create_detection_sequence_movie()

Create the movie of the detection sequence.

create_event_pgv_map()

Create the event PGV map.

create_movie(image_dir, output_dir, …[, …])

Create a movie using ffmpeg.

create_pgv_contour_map()

Create a map of the event pgv contours.

create_pgv_contour_sequence_movie()

Create the movie of the pgv contour sequence.

draw_attribution_note()

Draw the map data contribution note.

draw_boundary()

Draw the MSS network boundary.

draw_contours(df[, draw_labels])

Draw the PGV contours.

draw_contours_working(df[, draw_labels, …])

Deprecated.

draw_detection_pgv_level(df[, …])

The the maximum pgv markers in the colorbar axes.

draw_detection_stations(df[, use_sa])

Draw the detecion stations.

draw_pgv_colorbar()

Draw the PGV colorbar.

draw_pgv_level(df[, use_sa, max_event_pgv, …])

The the maximum pgv marker in the colorbar axes.

draw_simplices(df[, data_col])

Draw the detection simplices.

draw_station_pgv(df[, use_sa, max_dia])

Draw the max pgv values of the stations.

draw_time_marker([time, duration, note])

Draw the detection frame time marker.

draw_voronoi_cells(df[, use_sa])

Draw PGV Voronoi cells.

init_map([utm_zone])

Initialize the map plot.

set_event(public_id)

Set the event to process.

Inheritence diagram

Inheritance diagram of mss_dataserver.postprocess.map_plotter.MapPlotter