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

center indices of fftshift #33

Open
tianrluo opened this issue Aug 30, 2019 · 0 comments
Open

center indices of fftshift #33

tianrluo opened this issue Aug 30, 2019 · 0 comments

Comments

@tianrluo
Copy link

I thought it might make sense to have a function, e.g., centerIndex, returning a tuple of indices that points to the center of a grid after an fftshift.
In other words, instead of spreading div.(size(x),2) here and there, extracting it into a separate function.
So, by calling it, one can avoid warily checking their shifts/offsets are consistent with what's been used in the fftshift.

I can make a PR if this is of interest.

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

No branches or pull requests

1 participant