pickax.seismograph
Module Contents
Classes
Single display for seismograms. If there are more than one seismogram, they are displayed overlain. |
Data
API
- pickax.seismograph.zap_space = 'compile(...)'
- class pickax.seismograph.Seismograph(ax, stream, config, qmlevent=None, inventory=None, traveltime_calc=None)
Single display for seismograms. If there are more than one seismogram, they are displayed overlain.
ax – matplotlib ax for display stream – usually a waveform for a single channel config – pickax_config for configuration of display qmlevent – optional QuakeML Event to store picks in, created if not supplied traveltime_calc – option predicted travel time calculator
Initialization
- _init_data_(stream, qmlevent=None)
- update_data(stream, qmlevent=None)
Updates waveform and optionally earthquake and redraws.
- __saved_update_draw()
- draw()
- draw_stream()
- draw_all_flags()
- station_picks()
Finds all picks in the earthquake whose waveform_id matches the streams network and station codes.
- channel_picks()
Finds all picks in the earthquake whose waveform_id matches the streams network, station, location and channel codes.
- draw_origin_flag()
Draws flag for the origin.
- draw_predicted_flags()
Calculate and draw flags for predicted arrivals.
- do_pick(event, phase='pick')
Creates a pick based on a gui event, like keypress and mouse position. Optionally give the pick a phase name, defaults to “pick”.
- draw_flag(time, label_str, color='black')
- do_filter(idx)
Applies the idx-th filter to the waveform and redraws.
- calc_amplitude_range(tmin=0, tmax=0)
- calc_zoom_amp()
- zoom_amp()
- unset_ylim()
- set_ylim(min_amp, max_amp)
- set_xlim(start, end)
- unset_xlim()
- refresh_display()
- unset_zoom()
- do_zoom(event)
- do_zoom_out()
- do_zoom_original()
- set_zoom_bound(art)
- unset_zoom_bound()
- mouse_time_amp(event)
- update_xlim(xmin, xmax)
- list_channels()
Lists the channel codes for all traces in the stream, removing duplicates. Usually all traces will be from a single channel.
- find_channel(tr)
- calc_start()