EQTransformer.utils.plot module

Created on Wed Jul 24 19:16:51 2019

@author: mostafamousavi last update: 06/05/2020

EQTransformer.utils.plot.plot_data_chart(time_tracks, time_interval, dir_output=None)[source]

Uses fdsn to find availave stations in a specific geographical location and time period.

Parameters:
  • time_tracks (pkl) – Pickel file outputed by preprocessor or mseed_predictor.
  • time_interval (int) – Time interval in hours for tick spaces in xaxes.
  • dir_output (str, default=None) – Directory for saving figure.
Returns:

data_chart.png

Return type:

fig

EQTransformer.utils.plot.plot_detections(input_dir, input_json, plot_type=None, time_window=60, marker_size=6)[source]
Uses fdsn to find availave stations in a specific geographical location and time period.
Parameters:
  • input_dir (str) – Path to the directory containing detection results.
  • input_json (str) – Json file containing station information.
  • plot_type (str, default=None) – Type of plot, ‘station_map’, ‘hist’.
  • time_window (int, default=60) – Time window for histogram plot in minutes.
Returns:

  • station_output.png (fig)
  • station_map.png (fig)

EQTransformer.utils.plot.plot_helicorder(input_mseed, input_csv=None, save_plot=False)[source]

Plots an stream object overlied by detection times.

Parameters:
  • input_mseed (str) – Path to the miniseed files for day long data.
  • input_csv (str, default=None) – Path to the “X_prediction_results.csv” file associated with the miniseed file.
  • save_plot (str, default=False) – If set to True the generated plot will be saved with the name of miniseed file.
Returns:

miniseed_name.png

Return type:

fig