pyrocko.squirrel.check¶
Functionality to check for common data/metadata problems.
Functions
|
Check for common data/metadata problems. |
Classes
|
Any |
|
Container for Squirrel check results. |
|
Squirrel check result for a given channel/response/waveform. |
|
Diagnostics about a potential problem reported by Squirrel check. |
Potential dataset/metadata problem types. |
- class SquirrelCheckProblemType(...) str[source]¶
Bases:
StringChoicePotential dataset/metadata problem types.
Squirrel check problem types¶ Type
Description
p1
Waveform duplicates.
p2
Overlaps in channel/response epochs.
p3
No waveforms available for a channel/response listed in metadata.
p4
Channel/response information missing for an available waveform.
p5
Multiple channel/response entries matching an available waveform.
p6
Sampling rate of waveform does not match rate listed in metadata.
p7
Waveform incompletely covered by channel/response epochs.
- class SquirrelCheckProblem(**kwargs)[source]¶
Bases:
ObjectDiagnostics about a potential problem reported by Squirrel check.
- ♦ type¶
str(SquirrelCheckProblemType)Coding indicating the type of problem detected.
- ♦ symptom¶
strShort description of the problem.
- ♦ details¶
listofstrobjects, default:[]Details about the problem.
- class KindChoiceWCR(...) str[source]¶
Bases:
StringChoiceAny
strout of['waveform', 'channel', 'response'].
- class SquirrelCheckEntry(**kwargs)[source]¶
Bases:
ObjectSquirrel check result for a given channel/response/waveform.
- ♦ codes¶
pyrocko.squirrel.model.CodesNSLCECodes denominating a seismic channel.
- ♦ available¶
listofstr(KindChoiceWCR) objects, default:[]Available content kinds.
- ♦ problems¶
listofSquirrelCheckProblemobjects, default:[]Potential problems detected.
- class SquirrelCheck(**kwargs)[source]¶
Bases:
ObjectContainer for Squirrel check results.
- ♦ entries¶
listofSquirrelCheckEntryobjects, default:[]
- do_check(squirrel, codes=None, tmin=None, tmax=None, time=None, ignore=[])[source]¶
Check for common data/metadata problems.
- Parameters:
squirrel (
Squirrel) – The Squirrel instance to be checked.tmin (
pyrocko.util.get_time_float()) – Start time of query interval.tmax (
pyrocko.util.get_time_float()) – End time of query interval.time (
pyrocko.util.get_time_float()) – Time instant to query. Equivalent to settingtminandtmaxto the same value.codes (
listofCodesNSLCEobjects) – Pattern of channel codes to query.ignore (
listofstr(SquirrelCheckProblemType)) – Problem types to be ignored.
- Returns:
SquirrelCheckobject containing the results of the check.