Skip to content
New issue

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

Select on read for MWA correlator fits #1386

Open
jpober opened this issue Jan 29, 2024 · 5 comments
Open

Select on read for MWA correlator fits #1386

jpober opened this issue Jan 29, 2024 · 5 comments

Comments

@jpober
Copy link
Member

jpober commented Jan 29, 2024

We've got a project that is hitting a bottleneck due to the lack of select on read for MWA correlator fits files. We should discuss the feasibility of implementing it (and if there is even a potential speedup given the nature of the file format).

@bhazelton
Copy link
Member

I think there are potential options, but it depends a bit on what axes. Some axes, like time, frequency and polarization, are easier than e.g. baseline.

@jpober
Copy link
Member Author

jpober commented Jan 29, 2024

It’s baseline that we need…

@kartographer
Copy link
Contributor

Somewhat tangential, but there may be some low-hanging fruit in terms of file read speed-ups:

                coarse_chan_data[time_ind, :, :] = (
                    hdu.data[:, 0::2] + 1j * hdu.data[:, 1::2]
                )

This looks a lot like some old code that used to be in the UVH5 reader, which you can get a reasonable speedup with using ndarray.view to read as a complex dtype (could be as much as a factor of 2, though given that you go through by time index I doubt it'll be quite that good, but it's a quick one-line edit).

@bhazelton
Copy link
Member

It’s baseline that we need…

Do you want to select a large or small number of baselines?

@jpober
Copy link
Member Author

jpober commented Jan 30, 2024

Small, in the sense of less than half of the baselines. Maybe a quarter tops?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants