spline3D |
index |
Three dimensional cubic interpolation.
Class FloatSpline3D
Constructor:
FloatSpline3D(xarr,yarr,zarr,farr,periodic=PERIODIC_NOT)
create an object which contains an interpolated version of the function
f(x,y,z). xarr, yarr, and zarr are sequences defining the regular array
of input grid points in the 3 dimensions, while farr contains values for
f at each of these grid points - it must be of dimension Nx*Ny*Nz with
data stored such that adjacent elements in farr have adjacent indices in
the z dimension. The periodic argument can be used to specify that
f(x,y,z) is periodic in one or more of the dimensions. The value can be
bit-wise OR'd using values of PERIODIC_X, PERIODIC_Y, PERIODIC_Z.
Methods:
__operator__(x,y,z) - return interpolated function f at the point (x,y,z).
derivs(x,y,z,) - compute the gradient of the function f at the point
(x,y,z). And return this as a three-membered tuple.
[not currently implemented in Python]
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
Classes | ||||||||||
|
Functions | ||
|
Data | ||
PERIODIC_NOT = 0 PERIODIC_X = 1 PERIODIC_Y = 2 PERIODIC_Z = 4 |