Skip to content
Snippets Groups Projects
Commit cca725e1 authored by John Romein's avatar John Romein
Browse files

bug 225:

(Hopefully) fixed frequency bug.
parent 66a81abd
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,7 @@ void Dedispersion::initChirp(CN_Configuration &configuration, const std::vector< ...@@ -111,7 +111,7 @@ void Dedispersion::initChirp(CN_Configuration &configuration, const std::vector<
for (unsigned subbandIndex = 0; subbandIndex < subbands.size(); subbandIndex ++) { for (unsigned subbandIndex = 0; subbandIndex < subbands.size(); subbandIndex ++) {
unsigned subband = subbands[subbandIndex]; unsigned subband = subbands[subbandIndex];
double subbandFrequency = configuration.refFreqs()[subbandIndex]; double subbandFrequency = configuration.refFreqs()[subband];
double channel0frequency = subbandFrequency - (itsNrChannels * 0.5) * itsChannelBandwidth; double channel0frequency = subbandFrequency - (itsNrChannels * 0.5) * itsChannelBandwidth;
double binWidth = itsChannelBandwidth / itsFFTsize; double binWidth = itsChannelBandwidth / itsFFTsize;
double dmConst = configuration.dispersionMeasure() * 2 * M_PI / 2.41e-16; double dmConst = configuration.dispersionMeasure() * 2 * M_PI / 2.41e-16;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment