You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Using PeriodicCKDTree:
The text was updated successfully, but these errors were encountered:
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](https://cloud.githubusercontent.com/assets/7503010/5058599/95b665b8-6cc5-11e4-97c0-1b22161ef890.png)
Using PeriodicCKDTree:
![vel_interpolated_slice2_2h_periodic](https://cloud.githubusercontent.com/assets/7503010/5058600/97ecbfc6-6cc5-11e4-9b16-25d84a92f703.png)
The text was updated successfully, but these errors were encountered: