crawtools.clockdrift.driftcorrect
Apply a linear drift correction to one station's arrival picks
Correction is zero at starttime, offset at endtime and linear in between
driftcorrect
driftcorrect(catalog_file, station, starttime, endtime, offset, out_filename='out_catalog.qml')
correct time residuals on one station
:param catalog_file: name of QuakeML file with events :param station: station :param starttime: sychronization start time (assumed perfectly synchronized) :param endtime: synchronization end time :param offset: seconds to add to pick times at endtime :param out_filename: output catalog name
Source code in crawtools/clockdrift/driftcorrect.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |
crawtools.clockdrift.driftplot
Plot EQ catalog time residuals as a function of time
driftplot
driftplot(catalog_file, stations=None, phases=['[pP].*', '[sS].*'])
Plots time residuals as a function of time
:param catalog_file: name of QuakeML file with events :param stations: list of stations to limit to :param phases: regexps of phases to plot (up to 2)
Source code in crawtools/clockdrift/driftplot.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | |