Added help strings and ksz support
This commit is contained in:
parent
ff01447ab6
commit
247d8512e4
7 changed files with 333 additions and 3 deletions
|
@ -143,6 +143,10 @@ def interp3d(x not None, y not None,
|
|||
z not None,
|
||||
npx.ndarray[DTYPE_t, ndim=3] d not None, DTYPE_t Lbox,
|
||||
bool periodic=False):
|
||||
""" interp3d(x,y,z,d,Lbox,periodic=False) -> interpolated values
|
||||
|
||||
Compute the tri-linear interpolation of the given field (d) at the given position (x,y,z). It assumes that they are box-centered coordinates. So (x,y,z) == (0,0,0) is equivalent to the pixel at (Nx/2,Ny/2,Nz/2) with Nx,Ny,Nz = d.shape. If periodic is set, it assumes the box is periodic
|
||||
"""
|
||||
cdef npx.ndarray[DTYPE_t] out
|
||||
cdef npx.ndarray[DTYPE_t] ax, ay, az
|
||||
cdef int i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue