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

Suggest Caution -- spurious effects #5

Open
levineza opened this issue Nov 15, 2014 · 0 comments
Open

Suggest Caution -- spurious effects #5

levineza opened this issue Nov 15, 2014 · 0 comments

Comments

@levineza
Copy link

I was hesitant, whether or not I should post this; but I feel obligated to at least suggest caution before using this module.

The following is an interpolation of a slice from the middle of a cube of gas from a periodic astrophysical simulation. I used cKDTree and PeriodicCKDTree to interpolate a slice of my irregularly spaced 3D data onto a regular grid. To be clear, these modules were not used in the simulation, just for data analysis.

As can be seen below, the PeriodicCKD module cannot be used as a drop-in replacement for scipy.spatial.cKDTree; it introduces spurious behaviour around the boundaries.

Using cKDTree:
vel_interpolated_slice2_2h

Using PeriodicCKDTree:
vel_interpolated_slice2_2h_periodic

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