Main functionality: provide a processing of traces.
For whisper users, suppose you have the directory traces (the package), simply type:
$ cd traces $ python2.7 tracesMain.py
More precisely we use at the present time:
>>> import numpy >>> numpy.__version__ '1.5.0' >>> import scipy >>> scipy.__version__ '0.9.0.dev6939' >>> import obspy.core >>> obspy.core.__version__ '0.4.7' >>> import obspy.signal >>> obspy.signal.__version__ '0.4.8' >>> import obspy.sac >>> obspy.sac.__version__ '0.4.6' >>> import obspy.mseed >>> obspy.mseed.__version__ '0.4.7'
See the general specification.
- A ‘LoadDirectory’.
- A component.
- A set of stations.
- A set of dates.
- A new sampling rate.
- A ‘SaveDirectory’.
- Extract all the traces from the ‘LoadDirectory’ whose correspond to the component, the set of dates and the set of stations.
- For each station and each day, built a trace whose duration is one day by agglomerating the stub of traces (If values are not defined, they are replaced by zero).
- Make the treatment of the day-traces before resampling (should be defined by the users).
- Make the resampling of the day-traces.
- Make the treatment of the day-traces after resampling (should be defined by the users).
- Save the day-traces in the ‘SaveDirectory’ with architecture: SaveDirectory -> Component -> Year -> Day -> Station.
Before processing the traces, for each day, dictionaries (python type) are made (serialize with cPickle) and contains all necessary metadatas (station, starttime, frequency, component, etc..) for all the traces for ordering and make the processing.
If this operation have been already done, you can skip it by setting to False of a boolean parameter in the module traces.tracesParam.
Very useful if only the treatment is changed.
Main restrictions of the specification
Whisper project: FP7 ERC Advanced grant 227507 (WHISPER).
Codes are develop for the Whisper project (Seismic ambient noise).
If you use this code, specify it is provide by: Whisper project FP7 ERC Advanced grant 227507 (WHISPER).
Author: Xavier Briand. For questions, send email to firstname.lastname@example.org with subject begin exactly with [whisper].