RecCalc Class Reference
[Seismic data analysis and modeling]

This class is used to calculate receiver functions from seismic data. More...

#include <RecCalc.h>

List of all members.

Public Types

enum  trfmethod { specdiv, iterdecon }
 There are several ways to calculate receiver functions. More...

Public Member Functions

const SeismicDataCompGetRadComp ()
 Get the radial component, mostly needed for synthetic data.
const SeismicDataCompGetVerComp ()
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.
RecCalcoperator= (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 ()


Detailed Description

This class is used to calculate receiver functions from seismic data.

Definition at line 12 of file RecCalc.h.


Member Enumeration Documentation

There are several ways to calculate receiver functions.

Enumerator:
specdiv 
iterdecon 

Definition at line 16 of file RecCalc.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void RecCalc::CalcRecData ( const SeismicDataComp RadComp,
const SeismicDataComp VerComp,
SeismicDataComp Receiver 
)

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]

Get the radial component, mostly needed for synthetic data.

Definition at line 44 of file RecCalc.h.

const SeismicDataComp& RecCalc::GetVerComp (  )  [inline]

Definition at line 48 of file RecCalc.h.

RecCalc & RecCalc::operator= ( const RecCalc source  ) 

Definition at line 42 of file RecCalc.cpp.

References c, method, normalize, RadComp, shift, sigma, Spectrum, and VerComp.

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().


The documentation for this class was generated from the following files:

Generated on Tue Aug 4 16:04:21 2009 for GPLIB++ by  doxygen 1.5.8