#include <RecCalc.h>
Public Types | |
| enum | trfmethod { specdiv, iterdecon } |
| There are several ways to calculate receiver functions. More... | |
Public Member Functions | |
| const SeismicDataComp & | GetRadComp () |
| Get the radial component, mostly needed for synthetic data. | |
| const SeismicDataComp & | GetVerComp () |
| void | SetNormalize (const bool what) |
| Change whether the output receiver function is normalized to a maximum amplitude of 1. | |
| void | SynthPreParallel (const std::string &filename, ResPkModel &Model, SeismicDataComp &Receiver, const bool cleanfiles=false) |
| The three Synth*Parallel methods provide alternative acces to the steps in CalcRecSynth for safe parallel execution. | |
| void | SynthSafeParallel (const std::string &filename, ResPkModel &Model, SeismicDataComp &Receiver, const bool cleanfiles=false) |
| All operations that are safe to execute in parallel. | |
| void | SynthPostParallel (const std::string &filename, ResPkModel &Model, SeismicDataComp &Receiver, const bool cleanfiles=false) |
| Operations of the synthetic receiver function calculation that are not safe in parallel and hafe to be executed after the parallel part. | |
| void | CalcRecData (const SeismicDataComp &RadComp, const SeismicDataComp &VerComp, SeismicDataComp &Receiver) |
| Calculate Receiver functions from two data components. | |
| void | CalcRecSynth (const std::string &filename, ResPkModel &Model, SeismicDataComp &Receiver, const bool cleanfiles=false) |
| Calculate synthetic receiver funtions from a model. | |
| RecCalc & | operator= (const RecCalc &source) |
| RecCalc (const int myshift, const double mysigma, const double myc, const bool multicalc=false, const trfmethod themethod=iterdecon) | |
| The constructor takes the essential parameters that shouldn't change during different calculations. | |
| RecCalc (const RecCalc &Old) | |
| virtual | ~RecCalc () |
Definition at line 12 of file RecCalc.h.
| enum RecCalc::trfmethod |
| RecCalc::RecCalc | ( | const int | myshift, | |
| const double | mysigma, | |||
| const double | myc, | |||
| const bool | multicalc = false, |
|||
| const trfmethod | themethod = iterdecon | |||
| ) |
The constructor takes the essential parameters that shouldn't change during different calculations.
Definition at line 26 of file RecCalc.cpp.
| RecCalc::RecCalc | ( | const RecCalc & | Old | ) |
Definition at line 34 of file RecCalc.cpp.
| RecCalc::~RecCalc | ( | ) | [virtual] |
Definition at line 57 of file RecCalc.cpp.
| void RecCalc::CalcRecData | ( | const SeismicDataComp & | RadComp, | |
| const SeismicDataComp & | VerComp, | |||
| SeismicDataComp & | Receiver | |||
| ) |
Calculate Receiver functions from two data components.
Definition at line 169 of file RecCalc.cpp.
References SeismicDataComp::CopyHeader(), TimeSeriesComponent::GetData(), TimeSeriesComponent::GetDt(), iterdecon, Normalize(), SeismicDataComp::SetB(), TimeSeriesComponent::SetDt(), and specdiv.
Referenced by RFVelCalc::CalcRFVel(), RFVelCalc::CalcRFVelFromRec(), main(), and SynthPostParallel().
| void RecCalc::CalcRecSynth | ( | const std::string & | filename, | |
| ResPkModel & | Model, | |||
| SeismicDataComp & | Receiver, | |||
| const bool | cleanfiles = false | |||
| ) |
Calculate synthetic receiver funtions from a model.
Definition at line 191 of file RecCalc.cpp.
References SynthPostParallel(), SynthPreParallel(), and SynthSafeParallel().
Referenced by main().
| const SeismicDataComp& RecCalc::GetRadComp | ( | ) | [inline] |
| const SeismicDataComp& RecCalc::GetVerComp | ( | ) | [inline] |
| void RecCalc::SetNormalize | ( | const bool | what | ) | [inline] |
Change whether the output receiver function is normalized to a maximum amplitude of 1.
Definition at line 53 of file RecCalc.h.
Referenced by C1DRecObjective::C1DRecObjective(), main(), and RFVelCalc::RFVelCalc().
| void RecCalc::SynthPostParallel | ( | const std::string & | filename, | |
| ResPkModel & | Model, | |||
| SeismicDataComp & | Receiver, | |||
| const bool | cleanfiles = false | |||
| ) |
Operations of the synthetic receiver function calculation that are not safe in parallel and hafe to be executed after the parallel part.
Definition at line 215 of file RecCalc.cpp.
References CalcRecData(), and SeismicDataComp::ReadData().
Referenced by CalcRecSynth(), and C1DRecObjective::PostParallel().
| void RecCalc::SynthPreParallel | ( | const std::string & | filename, | |
| ResPkModel & | Model, | |||
| SeismicDataComp & | Receiver, | |||
| const bool | cleanfiles = false | |||
| ) |
The three Synth*Parallel methods provide alternative acces to the steps in CalcRecSynth for safe parallel execution.
Definition at line 199 of file RecCalc.cpp.
References ResPkModel::WriteData(), and ResPkModel::WriteRunFile().
Referenced by CalcRecSynth(), and C1DRecObjective::PreParallel().
| void RecCalc::SynthSafeParallel | ( | const std::string & | filename, | |
| ResPkModel & | Model, | |||
| SeismicDataComp & | Receiver, | |||
| const bool | cleanfiles = false | |||
| ) |
All operations that are safe to execute in parallel.
Definition at line 205 of file RecCalc.cpp.
Referenced by CalcRecSynth(), and C1DRecObjective::SafeParallel().
1.5.8