class documentation

class QSaver(Saver):

View In Hierarchy

The Q-File format Saver

Parameters
debugIndicate that it should show debug messages while working.
usenet_innameThis 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_event_headers Undocumented
Method _fix_station_headers Undocumented
Instance Variable __usenet_inname 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 enableTimeWindowCheck 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_resolver Undocumented
Method __initParameters Undocumented
Method _associate Associate each trace to a single event in the list.
Method _check_minimun_window_size 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_all_components Undocumented
Method _ensure_minimun_rms Undocumented
Method _ensure_no_spike Undocumented
Method _makechoice Undocumented
Method _reqmode List the channels orientation that are listed in request for network and station.
Method _resample_data Undocumented
Instance Variable _debug Undocumented
def __init__(self, debug=False, usenet_inname=False):

Undocumented

def _extract(self, folder, key, request, stream):

This 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
intThe number of files written
def _fix_event_headers(self, stream, request):
def _fix_station_headers(self, stream, request):
__usenet_inname =

Undocumented