CTF#
- class CTF(shape=None, defocus_x=None, angles=None, opening_axis=2, tilt_axis=0, correct_defocus_gradient=False, sampling_rate=1, acceleration_voltage=300000.0, spherical_aberration=27000000.0, amplitude_contrast=0.07, phase_shift=0, defocus_angle=0, defocus_y=None, flip_phase=True, return_real_fourier=False)[source]#
Bases:
ComposableFilter
Generate a per-tilt contrast transfer function mask.
Attributes
The acceleration voltage in Volts, defaults to 300e3.
The amplitude contrast, defaults to 0.07.
The tilt angles.
Whether to correct defocus gradient, defaults to 0 (x).
The defocus angle in degrees, defaults to 0.
The defocus value in x direction.
The defocus value in y direction, defaults to None.
Whether the returned CTF should be phase-flipped.
The microscope projection axis, defaults to None.
The phase shift in degrees, defaults to 0.
Whether to return a format compliant with rfft.
The sampling rate, defaults to 1 Angstrom / Voxel.
The shape of the to-be reconstructed volume.
The spherical aberration coefficient, defaults to 2.7e7.
The axis along which the tilt is applied, defaults to 2 (z).
Methods
CTF.__call__
(**kwargs)CTF.from_file
(filename)Initialize
CTF
from file.CTF.weight
(shape, defocus_x, angles[, ...])Compute the CTF weight tilt stack.