pickax.pick_util

Module Contents

Functions

create_pick_on_stream

Creates a pick based on a gui event, like keypress and mouse position. Optionally give the pick a phase name, defaults to “pick”.

pick_to_multiline

pick_to_string

arrival_for_pick

Finds a matching arrival for the pick within the origins in the earthquake. If more than one match, the first is returned, if none then None is returned.

amplitude_for_pick

Finds a matching amplitude for the pick within the earthquake. If more than one match, the first is returned, if none then None is returned.

remove_pick

pick_from_trace

same_author

merge_picks_to_quake

Merges picks from one quake to the other.

merge_picks_to_catalog

UNKNOWN_PUBLIC_ID

extractEventId

Extracts the EventId from a QuakeML element, guessing from one of several incompatible (grumble grumble) formats.

reloadQuakeMLWithPicks

reloadQuakeMLWithPicksComcat

inventory_for_catalog_picks

station_for_pick

picks_by_author

best_pick_at_station

best_instrument_pick

Finds pick on best (first in list) instrument code.

Data

zap_space

DEF_INST_LIST

API

pickax.pick_util.zap_space = 'compile(...)'
pickax.pick_util.create_pick_on_stream(stream, time, phase='pick', creation_info=None, resource_prefix='pickax', filter_name=None)

Creates a pick based on a gui event, like keypress and mouse position. Optionally give the pick a phase name, defaults to “pick”.

pickax.pick_util.pick_to_multiline(p, qmlevent=None, start=None)
pickax.pick_util.pick_to_string(p, qmlevent=None, start=None)
pickax.pick_util.arrival_for_pick(pick, qmlevent)

Finds a matching arrival for the pick within the origins in the earthquake. If more than one match, the first is returned, if none then None is returned.

pickax.pick_util.amplitude_for_pick(pick, qmlevent)

Finds a matching amplitude for the pick within the earthquake. If more than one match, the first is returned, if none then None is returned.

pickax.pick_util.remove_pick(pick, qmlevent)
pickax.pick_util.pick_from_trace(pick, trace)
pickax.pick_util.same_author(creation_info_a, creation_info_b)
pickax.pick_util.merge_picks_to_quake(qmlevent, out_qmlevent, author=None)

Merges picks from one quake to the other.

pickax.pick_util.merge_picks_to_catalog(qmlevent, catalog, author=None)
pickax.pick_util.UNKNOWN_PUBLIC_ID()
pickax.pick_util.extractEventId(qmlEvent, host='')

Extracts the EventId from a QuakeML element, guessing from one of several incompatible (grumble grumble) formats.

@param qml Quake(Event) to extract from @param host optional source of the xml to help determine the event id style @returns Extracted Id, or resource_id.id if we can’t figure it out

pickax.pick_util.reloadQuakeMLWithPicks(qmlevent, client=None, host='USGS', debug=False)
pickax.pick_util.reloadQuakeMLWithPicksComcat(qmlevent)
pickax.pick_util.inventory_for_catalog_picks(catalog, window=600, client=None, host='IRIS', debug=False)
pickax.pick_util.station_for_pick(pick, inventory)
pickax.pick_util.DEF_INST_LIST = ['H', 'N']
pickax.pick_util.picks_by_author(pick_list, author)
pickax.pick_util.best_pick_at_station(pick_list, p_s, station_id, quake, author_list=[], inst_list=DEF_INST_LIST, check_unique=False)
pickax.pick_util.best_instrument_pick(pick_list, station_id, inst_list=DEF_INST_LIST, check_unique=False)

Finds pick on best (first in list) instrument code.