STFINV library: seek source wavelet correction filter

◆ stfshift()

void stfinv::STFFourierDomainEngine::stfshift ( )
private

apply time shift to stf prior to FFT to time domain

Definition at line 555 of file stfinvfourier.cc.

References frequency(), stfinv::STFBaseEngine::Mdebug, Mtshift, nfreq(), STFINV_debug, and stfspec().

Referenced by fftoutput().

556  {
557  STFINV_debug(Mdebug&2, "STFFourierDomainEngine::stfshift()",
558  "apply time shift of " << Mtshift << " seconds");
561  *3.141592653589793115998*2.*Mtshift;
562  // STFINV_DUMP( sfac );
564  for (unsigned int j=0; j<this->nfreq(); ++j)
565  {
566  stffft(j) *= std::exp(sfac*this->frequency(j));
567  // STFINV_DUMP( std::exp(sfac*this->frequency(j)) );
568  } // for (unsigned int j=0; j<this->nfreq(); ++j)
569  } // void STFFourierDomainEngine::stfshift()
float Tvalue
Value type of samples.All references to time series samples in user workspace are based on this type...
Tfftengine::TAspectrum TAspectrum
type of array for Fourier transforms
double Mtshift
time shift to be applied to STF in order to expose acausal parts
TAspectrum stfspec() const
return reference to Fourier transform of stf
int Mdebug
debug level
Definition: stfinvbase.h:336
double frequency(const unsigned int &i) const
return value of frequency i in Hz
unsigned int nfreq() const
return number of frequencies in use
#define STFINV_debug(C, N, M)
produce debug output
Definition: debug.h:49
Here is the call graph for this function:
Here is the caller graph for this function: