gui.pile_viewer

fnpatch(x)[source]
detrend(x, y)[source]
retrend(x, y_detrended, slope, offset)[source]
class Global[source]
appOnDemand = None
class NSLC(n, s, l=None, c=None)[source]
class m_float[source]
m_float_or_none(x)[source]
make_chunks(items)[source]

Split a list of integers into sublists of consecutive elements.

class deg_float[source]
deg_float_or_none(x)[source]
class sector_int[source]
num_to_html(num)[source]
class Timer[source]
start()[source]
stop()[source]
get()[source]
class Integrator(basepile=None, tinc=360.0, tpad=0.0, storepath=None)[source]
process(iblock, tmin, tmax, traces)[source]
class ObjectStyle(frame_pen, fill_brush)[source]
get_working_system_time_range()[source]
is_working_time(t)[source]
fancy_time_ax_format(inc)[source]
day_start(timestamp)[source]
month_start(timestamp)[source]
year_start(timestamp)[source]
time_nice_value(inc0)[source]
class TimeScaler[source]

Undocumented.

make_scale(data_range)[source]

Get nice minimum, maximum and increment for given data range.

Returns (minimum, maximum, increment) or (maximum, minimum, -increment), depending on whether data_range is (data_min, data_max) or (data_max, data_min). If override_mode is defined, the mode attribute is temporarily overridden by the given value.

make_ticks(data_range)[source]
need_l1_tick(tt, ms, l1_trig)[source]
tick_to_labels(tick, inc)[source]
l1_l2_tick(tick, inc)[source]
class TimeAx(*args)[source]

Undocumented.

drawit(p, xprojection, yprojection)[source]
class Projection[source]
set_in_range(xmin, xmax)[source]
get_in_range()[source]
set_out_range(umin, umax)[source]
get_out_range()[source]
clipped(x)[source]
rev(u)[source]
copy()[source]
add_radiobuttongroup(menu, menudef, obj, target, default=None)[source]
sort_actions(menu)[source]
exception PileViewerMainException[source]
MakePileViewerMainClass(base)[source]
class PileViewerMain(pile, ntracks_shown_max, panel_parent, *args)
about()
about_to_close
active_event_marker_changed
add_blacklist_pattern(pattern)
add_event(event)
add_events(events)
add_marker(marker)
add_markers(markers)
add_panel_toggler(item)
add_shadow_pile(shadow_pile)
add_snuffling(snuffling, reloaded=False)
add_snuffling_help_menuitem(item)
add_snuffling_menuitem(item)
add_stations(stations)
add_traces(traces)
animate_picking()
apply_scaling_hooks(data_ranges)
associate_phases_to_events()
changed_marker_selection
clean_update()
clear_blacklist()
content_deltat_range()
content_time_range()
deactivate_event_marker()
deselect_all()
determine_box_styles()
distances_3d_changed(ignore)
dragEnterEvent(event)
draw_trace_boxes(p, time_projection, track_projections)
draw_visible_markers(markers, p, vcenter_projection)

Draw non-overlapping markers.

drawit(p, printmode=False, w=None, h=None)

This performs the actual drawing.

dropEvent(event)
emit_selected_markers()
event(event)
fail(reason)
follow(tlen, interval=50, lapse=None, tmax_start=None)
follow_update()
following()
following_interrupted(now=None)
gain_change(value, ignore)
get_active_event()
get_active_event_marker()
get_active_markers()
get_adequate_tpad()
get_markers()
get_nslc_ids_for_track(ftrack)
get_panel_parent()
get_phase_name(kind)
get_pile()
get_quick_filter_patterns()
get_station(sk)
get_time_range()
go_to_event_by_name(name)
go_to_selection(tight=False)
go_to_time(t, tlen=None)
handle_fkeys(key)
has_station(station)
help()
highpass_change(value, ignore=None)
hoovering(x, y)
inputline_changed(text)
inputline_finished(text)
interrupt_following()
iter_snuffling_modules()
jump_to_time()
keyPressEvent(key_event)
load(paths, regex=None, format='from_extension', cache_dir=None, force_cache=False)
load_queued()
load_soon(paths)
lowpass_change(value, ignore=None)
make_good_looking_time_range(tmin, tmax, tight=False)
marker_under_cursor(x, y)
markers_added
markers_removed
mouseDoubleClickEvent(mouse_ev)
mouseMoveEvent(mouse_ev)
mousePressEvent(mouse_ev)
mouseReleaseEvent(mouse_ev)
myclose(return_tag='')
nslc_ids_under_cursor(x, y)
nudge_selected_markers(npixels)
open_stations(fns=None)
open_waveform_directory()
open_waveforms()
paintEvent(paint_ev)

Called by QT whenever widget needs to be painted

passband_check()
periodical()
pile_changed(what)
pile_has_changed_signal
post_process_hooks(traces)
pre_process_hooks(traces)
prepare_cutout2(tmin, tmax, trace_selector=None, degap=True, demean=True, nmax=6000)
printit()
read_events(fn=None)

Open QFileDialog to open, read and add pyrocko.model.Event instances and their marker representation to the pile viewer.

read_markers(fn=None)

Open QFileDialog to open, read and add markers to the pile viewer.

release_data(tickets)
remove_blacklist_pattern(pattern)
remove_marker(marker)

Remove a marker from the PileViewer.

Parameters:markerMarker (or subclass) instance
remove_marker_from_menu(istart, istop)
remove_markers(markers)

Remove a list of markers from the PileViewer.

Parameters:markers – list of Marker (or subclass) instances
remove_panel_toggler(item)
remove_scaling_hook(k)
remove_scaling_hooks()
remove_shadow_piles()
remove_snuffling(snuffling)
remove_snuffling_help_menuitem(item)
remove_snuffling_menuitem(item)
reset_updates()
rot_change(value, ignore)
s_sortingmode_change(ignore=None)
savesvg(fn=None)
scaling_base_change(ignore=None)
scalingmode_change(ignore=None)
scroll_tracks(shift)
see_data_params()
selected_markers()
set_active_event(event)
set_active_event_marker(event_marker)
set_error_message(key, value)
set_event_marker_as_origin(ignore=None)
set_gathering(gather=None, order=None, color=None)
set_markers(markers)
set_ntracks(ntracks)
set_origin(location)
set_panel_parent(panel_parent)
set_phase_kind(markers, kind)
set_quick_filter(filter_func)
set_quick_filter_patterns(patterns, inputline=None)
set_scaling_hook(k, hook)
set_selected_markers(markers)

Set a list of markers selected

Parameters:markers – list of markers
set_sortingmode_change_delay_time(dt)
set_stations(stations)
set_time_range(tmin, tmax)
set_trace_filter(filter_func)
set_tracks_range(range, start=None)
set_visible_marker_kinds(kinds)
setup_snufflings()
show_doc(name, labels, target='panel')
sortingmode_change(ignore=None)
sortingmode_change_delayed()
ssort(tr)
start_picking(ignore)
station_attrib(tr, getter, default_getter)
station_key(x)
station_keys(x)
station_latlon(tr, default_getter=<function MakePileViewerMainClass.<locals>.PileViewerMain.<lambda>>)
stop_picking(x, y, abort=False)
time_fractional_digits()
tobedrawn(markers, uminmax)

Returns two lists of indices: first indicates which markers should be labeled. second indicates which markers should be drawn.

toggle_main_controls()
toggle_marker_editor()
toggletest(checked)
tracks_range_changed
unfollow()
update_picking(x, y, doshift=False)
update_status()
update_trace_filter()
visible_length_change(ignore=None)
want_input
wheelEvent(wheel_event)
write_markers(fn=None)
write_selected_markers(fn=None)
ypart(y)
zoom_tracks(anchor, delta)
GLPileViewerMain

alias of pyrocko.gui.pile_viewer.MakePileViewerMainClass.<locals>.PileViewerMain

class LineEditWithAbort[source]
aborted
history_down
history_up
keyPressEvent(self, QKeyEvent)[source]
class PileViewer(pile, ntracks_shown_max=20, use_opengl=False, panel_parent=None, *args)[source]

PileViewerMain + Controls + Inputline

get_progressbars()[source]
inputline_show()[source]
inputline_set_error(string)[source]
inputline_clear_error()[source]
inputline_changed(line)[source]
inputline_returnpressed()[source]
inputline_aborted()[source]

Hide the input line.

save_inputline_history()[source]

Save input line history to “$HOME/.pyrocko/.snuffler_history.pf”

load_inputline_history()[source]

Load input line history from “$HOME/.pyrocko/.snuffler_history.pf”

step_through_history(ud=1)[source]

Step through input line history and set the input line text.

inputline_finished()[source]
tracks_range_changed(ntracks, ilo, ihi)[source]
scrollbar_changed(value)[source]
controls()[source]
marker_editor()[source]
adjust_controls()[source]
setup_snufflings()[source]
get_view()[source]
update_contents()[source]
get_pile()[source]