We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When working on a file with multiple binary tables, using getps returns the wrong data.
getps
How to Reproduce
from dysh.fits.gbtfitsload import GBTFITSLoad filename = "/home/sdfits/TRCO_240809_Ku/TRCO_240809_Ku.raw.vegas" sdf = GBTFITSLoad(filename) ps_ta = sdf.getps(scan=21, fdnum=0, plnum=0, ifnum=0).timeaverage() ps_ta.data.shape (1024,)
So, dysh returns a Spectrum that has 1024 channels. However, if we look at the raw data we see scan 21 has 2**14 channels:
dysh
Spectrum
from astropy.io import fits hdu = fits.open("/home/sdfits/TRCO_240809_Ku/TRCO_240809_Ku.raw.vegas/TRCO_240809_Ku.raw.vegas.A.fits") table = hdu[5].data print(set(table["SCAN"]), table["DATA"].shape) {32, 33, 34, 36, 37, 38, 39, 21, 22, 23, 24, 30, 31} (2420, 16384)
Environment
The text was updated successfully, but these errors were encountered:
May be related to #405
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When working on a file with multiple binary tables, using
getps
returns the wrong data.How to Reproduce
So,
dysh
returns aSpectrum
that has 1024 channels. However, if we look at the raw data we see scan 21 has 2**14 channels:Environment
The text was updated successfully, but these errors were encountered: