Permalink
Browse files

Fixed band-flipping issue

  • Loading branch information...
1 parent 62239de commit 07a2c5e0f68ab134d1f882cabc172a292cf24911 @scottransom committed Sep 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/sigproc_fb.c
View
@@ -374,6 +374,8 @@ void read_filterbank_files(struct spectra_info *s)
s->time_per_subint = s->spectra_per_subint * s->dt;
s->T = s->N * s->dt;
s->df = fabs(fb.foff);
+ if (fb.foff < 0.0 && s->apply_flipband == -1)
+ s->apply_flipband = 0; // we do this automatically
s->BW = s->num_channels * s->df;
s->lo_freq = fb.fch1 - (s->num_channels - 1) * s->df;
s->hi_freq = fb.fch1;

0 comments on commit 07a2c5e

Please sign in to comment.