11 using namespace gplib;
13 string version =
"$Id: rfvel.cpp 1839 2010-03-05 17:04:34Z mmoorkamp $";
18 <<
" This is rfvel: Calculate absolute velocties from receiver functions"
20 cout <<
" Reads in radial and vertical components in SAC format" << endl;
22 <<
" Writes a file with ending .vel containing apparent velocities and corresponding periods"
25 <<
" The settings for the calculation method, omega, sigma and shift are taken from calcrec.conf"
27 cout <<
" This is Version: " <<
version << endl << endl;
36 string radfilename, verfilename;
43 rfmethod = RecCalc::iterdecon;
46 radfilename = AskFilename(
"Radial Component: ");
47 verfilename = AskFilename(
"Vertical Component: ");
48 outfilename = radfilename +
".vel";
50 cout <<
"Slowness in s/km: ";
55 ofstream outfile(outfilename.c_str());
60 RFVel.CalcRFVel(slowness, Radial, Vertical, AppVel);
61 RFVel.WriteVelocities(outfilename);
64 cerr << e.what() << endl;
trfmethod
There are several ways to calculate receiver functions.
int ReadData(const std::string &filename, tseismicdataformat format=sac)
Read in data from a file, as we cannot determine the type from the ending we have to provide it...
void GetData(std::string filename)
This class implements the method to calculate absolute S-Wave velocities from Receiver function data ...
The basic exception class for all errors that arise in gplib.