Skip to content

Commit

Permalink
added sigproc keyword refdm.
Browse files Browse the repository at this point in the history
  • Loading branch information
pravirkr committed Feb 23, 2022
1 parent 9e6d7ce commit d70f521
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/sigproc_fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ typedef struct SIGPROCFB {
double za_start; /* Starting zenith angle in deg */
double fch1; /* Highest channel frequency (MHz) */
double foff; /* Channel stepsize (MHz) */
double refdm; /* Reference dispersion measure (pc/cm^3) */
int machine_id; /* Instrument ID (see backend_name() */
int telescope_id; /* Telescope ID (see telescope_name() */
int nchans; /* Number of finterbank channels */
Expand Down
3 changes: 3 additions & 0 deletions src/sigproc_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ int read_filterbank_header(sigprocfb * fb, FILE * inputfile)
} else if (strings_equal(string, "foff")) {
chkfread(&(fb->foff), sizeof(double), 1, inputfile);
totalbytes += sizeof(double);
} else if (strings_equal(string, "refdm")) {
chkfread(&(fb->refdm), sizeof(double), 1, inputfile);
totalbytes += sizeof(double);
} else if (strings_equal(string, "nchans")) {
chkfread(&(fb->nchans), sizeof(int), 1, inputfile);
totalbytes += sizeof(int);
Expand Down

0 comments on commit d70f521

Please sign in to comment.