CTF.weight#

CTF.weight(shape, defocus_x, angles, opening_axis=None, tilt_axis=None, amplitude_contrast=0.07, phase_shift=0, defocus_angle=0, defocus_y=None, correct_defocus_gradient=False, sampling_rate=1, acceleration_voltage=300000.0, spherical_aberration=2700.0, flip_phase=True, return_real_fourier=False, **kwargs)[source]#

Compute the CTF weight tilt stack.

Parameters:
shapetuple of int

The shape of the CTF.

defocus_xtuple of float

The defocus value in x direction.

anglestuple of float

The tilt angles.

opening_axisint, optional

The axis around which the wedge is opened, defaults to None.

tilt_axisint, optional

The axis along which the tilt is applied, defaults to None.

amplitude_contrastfloat, optional

The amplitude contrast, defaults to 0.07.

phase_shifttuple of float, optional

The phase shift, defaults to 0.

defocus_angletuple of float, optional

The defocus angle, defaults to 0.

defocus_ytuple of float, optional

The defocus value in y direction, defaults to None.

correct_defocus_gradientbool, optional

Whether to correct defocus gradient, defaults to False.

sampling_ratetuple of float, optional

The sampling rate, defaults to 1.

acceleration_voltagefloat, optional

The acceleration voltage in electron microscopy, defaults to 300e3.

spherical_aberrationfloat, optional

The spherical aberration coefficient, defaults to 2.7e3.

flip_phasebool, optional

Whether the returned CTF should be phase-flipped.

**kwargsDict

Additional keyword arguments.

Returns:
NDArray

A stack containing the CTF weight.