Open mreineck opened 7 years ago
@mreineck i guess you are right ... at least i cannot see the flaw
(1) you should contact @henrikju and/or @mrbell directly (the email on his profile seems accurate)
(2) running it with verbose=True
might shed some light on the issue as well
I can't seem to figure out how gfft is used correctly...
The attached test case has a regular 1D grid with
ngrid
points; the irregular grid is constructed to be exactly equivalent. Now I loop over all points of the irregular grid, setting pointi
to 1 and all others to 0, perform an irregular-to-regular gfft, then a regular-to-irregular gfft and plot the absolute value of the resulting array.I would expect the resulting curves to be identical, except for a shift, and each of them should have a mirror symmetry as well. However that doesn't seem to be the case.
Are my assumptions incorrect, or am I using the library incorrectly?