GPLIB++
|
#include <iostream>
#include <string>
#include <algorithm>
#include <boost/math/constants/constants.hpp>
#include "Util.h"
#include "RecCalc.h"
#include "CalcRecConf.h"
#include "SeismicDataComp.h"
#include "FatalException.h"
#include "FilterFunc.h"
#include "statutils.h"
#include "miscfunc.h"
#include "NumUtil.h"
#include "RFVelCalc.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
Variables | |
string | version = "$Id: calcrec.cpp 1881 2014-02-25 16:20:58Z mmoorkamp $" |
This program calculates a receiver function from single radial and vertical components. When started the program only asks for the name of the files for these two components. The output receiver function has the same name as the radial component with .rec appended. All other aspects of the calculation are specified in the file calcrec.conf in the directory in which the program is executed.
The parameters for that file are as follows:
Name | Description |
recmethod | Can be specdiv for spectral division method or iterdecon for iterative deconvolution. |
omega | The center of the gaussian used to filter the receiver function during estimation. |
sigma | The width of the gaussian used to filter the receiver function during estimation. Larger values mean a more broad band reciever function that contains more detailed structure but is also susceptible to noise. |
shift | The shift in seconds of the initial correlation peak. This is purely used for display purposes. |
cc | (only specdiv) The waterlevel relative to the maximum autopower of the vertical component. |
upperfreq | The upper frequency in Hz for the bandpass filter, if negative or not set it is ignored |
lowerfreq | The lower frequency in Hz for the bandpass filter, if negative or not set it is ignored |
More details about these parameters can be found for example in Langston, 1979, JGR 84(B9) 4749-4762 Liggoria, 1999, BSSA 89(5), 1395-1400
Definition in file calcrec.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 45 of file calcrec.cpp.
References gplib::CalcRecConf::beta, gplib::RecCalc::CalcRecData(), gplib::RFVelCalc::CalcRFVel(), gplib::CalcRecConf::cc, gplib::CalcRecConf::GetData(), gplib::TimeSeriesComponent::GetData(), gplib::TimeSeriesComponent::GetDt(), gplib::CalcRecConf::lowerfreq, gplib::CalcRecConf::normalize, gplib::CalcRecConf::p, gplib::CalcRecConf::prec, gplib::SeismicDataComp::ReadData(), gplib::CalcRecConf::recmethod, gplib::CalcRecConf::rotate, gplib::RecCalc::SetNormalize(), gplib::CalcRecConf::shift, gplib::CalcRecConf::sigma, gplib::CalcRecConf::upperfreq, version, and gplib::SeismicDataComp::WriteAsSac().
string version = "$Id: calcrec.cpp 1881 2014-02-25 16:20:58Z mmoorkamp $" |
Definition at line 43 of file calcrec.cpp.
Referenced by main().