Project

General

Profile

File Formats » History » Revision 6

Revision 5 (Jim Pulokas, 05/14/2013 02:03 PM) → Revision 6/7 (Jim Pulokas, 05/14/2013 02:21 PM)

h1. File Formats 

 _...under construction..._ 

 h2. CCP4, MRC, and variants 

 |_. byte 
     offset |_. word 
                offset 
               (first=0) |_. word 
                             index 
                             (first=1) |_. field        |_. type    |_. description           |_. "CCP4":http://www.ccp4.ac.uk/html/maplib.html#description |_. "MRC":http://www2.mrc-lmb.cam.ac.uk/research/locally-developed-software/image-processing-software/#image     |_. "MRC-IMOD":http://bio3d.colorado.edu/imod/doc/mrc_format.txt |  
 |>.     0 |>.     0 |>.     1 |=. N ~x~           | |/3. int32 |/3. 3-D size of data array, 
                                                           fastest changing first     | 
 |>.     4 |>.     1 |>.     2 |=. N ~y~           | int32 | 
 |>.     8 |>.     2 |>.     3 |=. N ~z~           | int32 | 
 |>.    12 |>.     3 |>.     4 |=. mode            | int32 | data type: 
                                                   0: signed 8-bit integer 
                                                   1: signed 16-bit integer 
                                                   2: 32-bit float 
                                                   3: 16-bit complex integer 
                                                   4: 32-bit complex float       | additionally: 
                                                                                 5: same as mode 0            |    |    additionally: 
                                                                                                           6:    16-bit unsigned integer 
                                                                                                          16:    3x8-bit unsigned int, RGB   
                                                                                                         NOTE: mode 0 may be signed 
                                                                                                         or unsigned depending  
                                                                                                         on codes found at byte 
                                                                                                         offset 152 and 156                 | 
 |>.    16 |>.     4 |>.     5 |=. Start ~x~        | |/3. int32 |/3. number of the first element 
                                                          in each dimension, if this 
                                                          is a sub-array of another | 
 |>.    20 |>.     5 |>.     6 |=. Start ~y~        | int32 | 
 |>.    24 |>.     6 |>.     7 |=. Start ~z~        | int32 | 
 |>.    28 |>.     7 |>.     8 |=. Intervals ~x~    | |/3. int32 |/3. number of grid intervals 
                                                            along each dimension        | 
 |>.    32 |>.     8 |>.     9 |=. Intervals ~y~    | int32 | 
 |>.    36 |>.     9 |>.    10 |=. Intervals ~z~    | int32 | 
 |>.    40 |>.    10 |>.    11 |=. Cell Length ~x~     | |/3. float32 |/3. cell length in angstrom | 
 |>.    44 |>.    11 |>.    12 |=. Cell Length ~y~     | float32 | 
 |>.    48 |>.    12 |>.    13 |=. Cell Length ~z~     | float32 | 
 |>.    52 |>.    13 |>.    14 |=. Cell Angle α    | |/3. float32 |/3. cell angles in degrees |\2/3. |/3. ignored by IMOD | 
 |>.    56 |>.    14 |>.    15 |=. Cell Angle β     | float32 | 
 |>.    60 |>.    15 |>.    16 |=. Cell Angle γ    | float32 | 
 |>.    64 |>.    16 |>.    17 |=. Column axis     | int32 |/3. 1 -> X 
                                                        2 -> Y 
                                                        3 -> Z | 
 |>.    68 |>.    17 |>.    18 |=. Row axis        | int32 | 
 |>.    72 |>.    18 |>.    19 |=. Section axis    | int32 | 

 _...under construction..._