Commit 2d4f432c authored by thomas.forbriger's avatar thomas.forbriger
Browse files

[FIX] (foutra.cc): use correct bandwidth when scaling

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

when using -scalerbw take bandwidth from opt.scaledecades rather than
opt.decades

opt.decades containes the number of decades to be used for averaging
(smoothing)
parent eefa2870
......@@ -49,6 +49,8 @@
* - 10/01/2011 V1.8b corrected Fourier transformation formula in
* doxygen documentation
* - 03/12/2014 V1.9 provide output file format selector
* - 08/01/2015 V1.10 FIX: when using -scalerbw take bandwidth from
* opt.scaledecades rather than opt.decades
*
* \note 08/01/2010:
* Scaling for foutra power spectrum was tested against theory.
......@@ -66,7 +68,7 @@
* ============================================================================
*/
#define FOUTRA_VERSION \
"FOUTRA V1.9 Fourier transforms"
"FOUTRA V1.10 Fourier transforms"
#define FOUTRA_CVSID \
"$Id$"
......@@ -801,8 +803,8 @@ int main(int iargc, char* argv[])
{
TFXX_debug(opt.debug, "main",
"scale to average in relative bandwidth");
double bwfactor=(std::pow(10.,opt.decades)-1.)/
std::pow(10.,opt.decades/2.);
double bwfactor=(std::pow(10.,opt.scaledecades)-1.)/
std::pow(10.,opt.scaledecades/2.);
// cout << "bwfactor: " << bwfactor << endl;
// cout << "index range: "
// << series.f() << "-" << series.l() << endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment