Map3D#
- class cbclib.Map3D(val, x, y, z, num_threads=1)[source]#
A container for 3D spatial data. Stores data array defined on a 3D regular grid. Provides methods to perform the 3D fast Fourier transform and bilinear interpolation.
- Parameters
- fft()[source]#
Perform 3D Fourier transform. FFTW C library is used to compute the transform.
- Return type
~M- Returns
A 3Ddata object with the Fourier image data.
See also
cbclib.bin.FFTW : Python wrapper of FFTW library.
- classmethod import_hdf(path, key)[source]#
Initialize a 3D data container with data saved in a HDF5 file
pathat akeykey inside the file.
- interpolate(coordinates)[source]#
Interpolate the 3D grid at a given array of coordinates
coordinates.
- is_compatible(map_3d)[source]#
Check if 3D data object has a compatible set of coordinates.
- Parameters
map_3d (
~M) – 3D data object.- Return type
- Returns
True if the 3D data object
map_3dhas a compatible set of coordinates.