CTF#

class CTF(defocus=None, angles=None, opening_axis=2, tilt_axis=0, sampling_rate=1, acceleration_voltage=300, spherical_aberration=27000000.0, amplitude_contrast=0.07, phase_shift=0, astigmatism_angle=0, defocus_delta=0, correction_mode='phase-flip', wiener_falloff=None)[source]#

Bases: ComposableFilter

Generate per-tilt contrast transfer function filter masks.

Attributes

CTF.acceleration_voltage

The acceleration voltage in kV, defaults to 300

CTF.amplitude_contrast

The amplitude contrast, defaults to 0.07.

CTF.angles

The tilt angles in degrees.

CTF.astigmatism_angle

The astigmatism angle in radians, defaults to 0.

CTF.correction_mode

CTF correction mode: 'raw', 'wiener', 'phase-flip', 'phase-flip-weighted'.

CTF.defocus

The mean defocus value in Ångstrom (positive is underfocus).

CTF.defocus_delta

The defocus difference (half-delta) in Ångstrom, defaults to 0.

CTF.opening_axis

The microscope projection axis, defaults to 2 (z).

CTF.phase_shift

The phase shift in radians, defaults to 0.

CTF.sampling_rate

The sampling rate, defaults to 1 Ångstrom / voxel.

CTF.spherical_aberration

The spherical aberration, defaults to 2.7e7 (in Angstrom).

CTF.tilt_axis

The axis along which the tilt is applied, defaults to 0 (x).

CTF.wiener_falloff

B-factor style falloff for Wiener filter (Ų).

Methods

CTF.__call__([return_real_fourier])

This method provides the standard interface for creating of composable filter masks.

CTF.from_file(filename, **kwargs)

Initialize CTF from file.