class documentation
class QSaver(Saver):
The Q-File format Saver
| Parameters | |
| debug | Indicate that it should show debug messages while working. |
| usenet | This indicates that the network code should be made part of the station code |
| Method | __init__ |
Undocumented |
| Method | _extract |
This is the main class of a new Saver. |
| Method | _fix |
Undocumented |
| Method | _fix |
Undocumented |
| Instance Variable | __usenet |
Undocumented |
Inherited from Saver:
| Method | disable3ccheck |
See the disablecompcheck method |
| Method | disablecompcheck |
Disabling the check of components availability. |
| Method | disableresample |
Disable resampling after it has been enabled with enableresample |
| Method | enableresample |
Enable data resample to sps before saving |
| Method | enablermscheck |
When enabled will check SNR (by the RMS) of data before save |
| Method | enablespikecheck |
Enable large amplitude check before the reference phase |
| Method | enable |
Enable a time window check for the downloaded data. |
| Method | work |
The main working method. |
| Instance Variable | parameters |
Set of current SAVER parameter |
| Static Method | _decimate |
Undocumented |
| Method | __init |
Undocumented |
| Method | _associate |
Associate each trace to a single event in the list. |
| Method | _check |
Undocumented |
| Method | _cleanids |
Remove from the stream the traces that have no evid tag or that have its _f_evid attribute listed in the ids variable |
| Method | _collect |
Undocumented |
| Method | _ensure |
Undocumented |
| Method | _ensure |
Undocumented |
| Method | _ensure |
Undocumented |
| Method | _makechoice |
Undocumented |
| Method | _reqmode |
List the channels orientation that are listed in request for network and station. |
| Method | _resample |
Undocumented |
| Instance Variable | _debug |
Undocumented |
def __init__(self, debug=False, usenet_inname=False):
overrides
fetchtool.Savers.Saver.__init__Undocumented
def _extract(self, folder, key, request, stream):
overrides
fetchtool.Savers.Saver._extractThis is the main class of a new Saver.
When writting a new saver you are responsible to implement this method. This method will receive the destination folder, the key of the request corresponding to the Stream, the request element and the stream with data.
You should write it to the folder.
Parameters:
- folder: str
- Where you should write the data to
- key : str
- The key of the request being saved
- request : request
- The whole request, request[key] is the one being saved
- stream : obspy.Stream
- The data to be saved.
| Returns | |
int | The number of files written |