ibm-watson-data-lab / ibmseti

Simple Python package to read and analyze data files and simulated data from the SETI Institute's Allen Telescope Array
Apache License 2.0
4 stars 5 forks source link

Incorrect frequency bin absolute scale #1

Closed gadamc closed 8 years ago

gadamc commented 8 years ago

After talking with the SETI folks and digging into the details of their data file format, the following line should be changed.

https://github.com/ibm-cds-labs/ibmseti/blob/master/ibmseti/dsp.py#L35

to

fb = np.fft.fftshift(\
np.fft.fftfreq( int(header["number_of_subbands"] * __constants__.bins_per_half_frame*(1.0 - header['over_sampling'])), \
  1.0/(header["number_of_subbands"]*header["subband_spacing_hz"])) + 1.0e6*header['rf_center_frequency'] + header["subband_spacing_hz"]*(header['number_of_subbands']/2.0 - 0.5)
)
gadamc commented 8 years ago

This has been resolved in recent update