12 using namespace gplib;
14 string version =
"$Id: datarec_multi.cpp 1839 2010-03-05 17:04:34Z mmoorkamp $";
19 <<
" This is datarec_multi: Calculate receiver functions simultaneously for several events"
22 <<
" Reads in two lists of files with radial and vertical component file names, respectively"
24 cout <<
" Outputs a file multi.rec " << endl;
25 cout <<
" Some behaviour can be configured with the file calcrec.conf"
27 cout <<
" This is Version: " <<
version << endl << endl;
32 string outfilename =
"multi.rec";
36 std::string radlistname = AskFilename(
37 "File with list of radial filenames: ");
38 std::string verlistname = AskFilename(
39 "File with list of vertical filenames: ");
51 cerr << e.what() << endl;
tseiscompvector & GetList()
Return the content of the list for manipulation.
Manages a collection of seismic traces, mainly provides functionality to read in data specified in a ...
This class implements the multi-site receiver function calculation in the frequency domain as suggest...
void GetData(std::string filename)
void ReadList(const std::string filename)
read in a file with names and optionally coordinates
void CalcRecData(const SeismicStationList::tseiscompvector &RadComp, const SeismicStationList::tseiscompvector &VerComp, SeismicDataComp &Receiver)
Calculate the receiver function by spectral division.
int WriteAsSac(const std::string &filename) const
Write the data in sac binary format.
The basic exception class for all errors that arise in gplib.