Commit 8420fb98 authored by root's avatar root
Browse files

Merge branch 'effelsberg' of https://github.com/ewanbarr/psrdada_cpp into effelsberg

parents 1a130ba9 deaedb26
......@@ -41,6 +41,7 @@ FftSpectrometer<HandlerType>::FftSpectrometer(
float scale = std::pow(_input_level * std::sqrt(static_cast<float>(_nchans)), 2);
float offset = scale * dof;
float scaling = scale * std::sqrt(2 * dof);
BOOST_LOG_TRIVIAL(debug) << "Correction factors for 8-bit conversion: offset = " << offset << ", scaling = " << scaling;
BOOST_LOG_TRIVIAL(debug) << "Generating FFT plan";
int n[] = {static_cast<int>(_fft_length)};
CUFFT_ERROR_CHECK(cufftPlanMany(&_fft_plan, 1, n, NULL, 1, _fft_length,
......
Supports Markdown
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