Name
sxheader - Perform operations on headers of hdf or bdb file
Usage
Usage in command lines:
sxheader.py stack.hdf --params="parm1 parm2 ..." --zero --one --randomize --import=filename --export=filename --print --backup --restore --delete
Usage in python programming:
header(stack, params, zero, one, randomize, fimport, fexport, fprint, backup, restore, delete)
Input
- stack
- image stack file
Options
- params
- list of parameters to perform operations on.
Notice: Major changes have been made recently!
If operating on 2D alignment parameters, use "xform.align2d", which automatically includes the parameters "alpha", "sx", "sy", "mirror" and "scale".
If operating on projection parameters, use "xform.proj", which automatically includes the parameters "phi", "theta", "psi", "s2x" and "s2y".
If operating on 3D alignment parameters, use "xform.align3d", which automatically includes the parameters "phi", "theta", "psi", "s3x", "s3y", "s3z", "mirror" and "scale".
See description of parameters http://macro-em.org/sparxwiki/I_O
- zero
- set all parameters to zero.
- one
- set all parameters to one (not applicable to xform.align2d, xform.proj or xform.align3d, since it doesn't make sense).
- randomize
- set all parameters to randomized value (only works for xform.align2d, xform.proj and xform.align3d, there is little need to randomize other parameters, and it is also difficult to guess the random range beforehand.)
- import
- import parameters from file.
- export
- export parameters to file.
- whether print parameters to screen.
- backup
- backup all parameters
- restore
- restore all parameters
- delete
- delete all parameters
Description
This program now works for both hdf and bdb files.
Author / Maintainer
Wei Zhang, Zhengfan Yang
Keywords
- category 1
- APPLICATIONS
Files
applications.py
Maturity
- stable
- works for most people, has been tested; test cases/examples available.
Bugs
None. It is perfect.
