Reading and writing of image files in SPARX/EMAN2

READ IMAGE

WRITE IMAGE

ATTRIBUTES IN FILE HEADERS

.i. Image state attributes:

active
1 - image should be included in the analysis, (0 - skip it)

.ii. 2D orientation/alignment attributes:

alpha
0 - rotation angle
sx

0 - shift in x direction in image plane (in 2-D)

sy

0 - shift in y ddirection in image plane (in 2-D)

mirror

0 - do not mirror, 1 - after application of in-plane transformation, image has to be x-mirrored, i.e., `f_m(x',y') = f(-x, y)`.

.iii. 3D reconstruction orientation/alignment attributes:

phi
0 - Eulerian angle for 3D reconstruction (azimuthal)
theta
0 - Eulerian angle for 3D reconstruction (tilt)
psi
0 - Eulerian angle for 3D reconstruction (in-plane rotation of projection)
s2x

0 - shift in x direction

s2y

0 - shift in y direction

.iv. 3D orientation/alignment attributes:

phi
0 - Eulerian angle for 3D reconstruction (azimuthal)
theta
0 - Eulerian angle for 3D reconstruction (tilt)
psi
0 - Eulerian angle for 3D reconstruction (rotation around new z axis)
s3x

0 - shift in x direction

s3y

0 - shift in y direction

s3z

0 - shift in z direction

  • Notes:

  • 1. all angles are in SPIDER convention (for details see Baldwin & Penczek, JSB 2007).

  • 2. in convention of 2D alignment parameters, the rotation by alpha is applied first, while the
  • translation by (sx,sy) second. In 3D reconstruction, the translation of 2D projection image by (s2x,s2y) is applied first, rotations second. Thus, it is necessary to convert (alpha,sx,sy) into (psi,s2x,s2y) and vice versa, see example ['Pawel, where is the exmaple?'].

    parameters - maybe Wei can attempt it?']

    .v. CTF related attributes:

    ctf_applied
    0 - image was not multiplied by the CTF, 1 - image was multiplied by the CTF with parameters given by the following attributes:
    defocus

    15234 - defocus [Å] associated with the image, positive value corresponds to underfocus

    amp_contrast
    0.1 - amplitude contrast, see definition of the CTF for details
    voltage
    200 - accelerating voltage of the microscope [kV]
    Cs
    2.0 - spherical aberration constant [mm].
    Pixel_size
    2.2 - pixel size in Å, currently used only in the context of the CTF

    .vi. Image formation attributes:

    Noise_a
    The first parameter of baseline noise in 1D rotationally averaged power spectrum of particles.
    Noise_b
    The second parameter of baseline noise in 1D rotationally averaged power spectrum of particles.
    CTF_noise
    The parameter gives the noise affected by CTF.
    B_factor
    The parameter in Guassian like envelope function, which roughly explains Fourier factor dumping of the image.

    .vii. Image ID attributes:

    defg
    defocus group ID.
    mic
    from which micrograph the particle is picked up. This attribute can help you to get back to the original micrograph.
    xp

    x coordinate of the particle in the micrograph

    yp

    y coordinate of the particle in the micrograph

    SET

    GET

    [1.1, 2.2, 3.3]

    DELETE

    Non-image scratch files

    If you want to store blocks of fixed size binary data and retrieve them in random order, this is quite simple:

    I O (last edited 2008-08-19 20:36:33 by penczek)