Skip to content

Header_extract

Adrian Quintana edited this page Dec 11, 2017 · 1 revision

header_extract

Purpose

This utility extracts angles, origin offsets, mirror flags and weights from the headers of 2D-images and writes them to document files. The output document files of this program (and of other Xmipp programs like ml_align2d, angular_projection_macthing and align2d) have a specific format that allows setting the headers (using the Header_assign program) without providing a selfile. An example of this format is given below:

  • One heading comment line containing information about the column numbers, and always starting with the word "Headerinfo"
  • For each image: a comment line with its filename, followed by a document line with its rot, tilt, phi, Xoff, Yoff, Mirror and Weight

An example is shown below:


 ; Headerinfo columns: rot (1) , tilt (2), psi (3), Xoff (4), Yoff (5), Weight (6), Mirror (7)
 ; dbua0000.xmp
    1 7     3.00000   46.14806    0.00000    0.00000    0.00000    0.00000    0.00000
; dbua0001.xmp
    2 7    55.00000   46.14806    0.00000    0.00000    0.00000    0.00000    0.00000


In this type of document files the filename of each image is directly coupled with its corresponding angles and shifts. Therefore, assignment of header information using this type of document files is preferred over using a selfile and a corresponding document file.

Usage


$ header_extract ...


Parameters

  • `` Selfile containing all images from which to extract the 2D header information.
  • `` Document file containing the extracted information (with the format as given above)
  • `` Round shifts to integer values

Example


$ header_extract -i g0u_precentered.sel -o g0u_precentered.doc


--Main.SjorsScheres - 24 Apr 2007

Clone this wiki locally