<jupyter_start><jupyter_text>VisualizingEQTransformer comes with a few visualization tools to get a better sense of data that is beinig processed and the results.   1) continouty of the seismic data being processed: Both prepocessor and mseed_predictor output a "time_tracks.pkl" file that contains the time info of data slices and their number of components. You can use this file to visualize the continuity and type of your data using the following module:<jupyter_code>from EQTransformer.utils.plot import plot_data_chart
plot_data_chart('preproc/time_tracks.pkl',  time_interval=10)<jupyter_output><empty_output><jupyter_text>Check your current directory for 'data_chart.png'  2) continous waveforms:It is always a good idea to check the raw data:<jupyter_code>from EQTransformer.utils.plot import plot_detections, plot_helicorder
plot_helicorder(input_mseed='downloads_mseeds/CA06/GS.CA06.00.HHZ__20190901T000000Z__20190902T000000Z.mseed', 
                input_csv=None, save_plot=True)<jupyter_output>saved the plot as GS.CA06.00.HHZ__20190901T000000Z__20190902T000000Z.png<jupyter_text>Now you can mark those events that you have detected in your helicorder plot to check if you have catched most of them or you are missing too many of them (high false negativ). This togather with the events plots (in the Figure subfolders in your station_output folders) can give you a sense that if you are using a too high or too low threshold levels.<jupyter_code>plot_helicorder(input_mseed='downloads_mseeds/CA06/GS.CA06.00.HH2__20190901T000000Z__20190902T000000Z.mseed', 
                input_csv='detections1/CA06_outputs/X_prediction_results.csv', save_plot=True)<jupyter_output>saved the plot as GS.CA06.00.HH2__20190901T000000Z__20190902T000000Z.png<jupyter_text>3) map plot:You can also visulaize the number of detections over your network using this:<jupyter_code>plot_detections(input_dir ="detections1", 
                input_json="json/station_list.json", 
                plot_type='station_map', 
                marker_size=50)<jupyter_output><empty_output><jupyter_text>check for 'station_map.png'  4) histograms:And this command will automatically generate detection histograms for each station in your detection folder:<jupyter_code>plot_detections(input_dir ="detections1",  
                input_json="json/station_list.json", 
                plot_type='hist', 
                time_window=120)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0641601961585615, 'fraction_numerical': 0.06129955046996322, 'mean_word_length': 5.19746835443038, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '299770', 'license': 'MIT', 'n_tokens_mistral': 878, 'n_tokens_neox': 738, 'n_words': 213, 'path': 'examples/visualization.ipynb', 'repo_name': 'dylanmikesell/EQTransformer', 'size': '2447'}