Project

General

Profile

File Formats » History » Version 7

Jim Pulokas, 05/14/2013 02:24 PM

1 1 Jim Pulokas
h1. File Formats
2
3 4 Jim Pulokas
_...under construction..._
4
5 1 Jim Pulokas
h2. CCP4, MRC, and variants
6
7 4 Jim Pulokas
|_. byte
8
    offset |_. word
9
               offset
10
              (first=0) |_. word
11
                            index
12
                            (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 | 
13 6 Jim Pulokas
|>.   0 |>.   0 |>.   1 |=. N ~x~         | int32 |/3. 3-D size of data array,
14 4 Jim Pulokas
                                                          fastest changing first   |
15 6 Jim Pulokas
|>.   4 |>.   1 |>.   2 |=. N ~y~         | int32 |
16
|>.   8 |>.   2 |>.   3 |=. N ~z~         | int32 |
17 4 Jim Pulokas
|>.  12 |>.   3 |>.   4 |=. mode          | int32 | data type:
18
                                                  0: signed 8-bit integer
19
                                                  1: signed 16-bit integer
20
                                                  2: 32-bit float
21
                                                  3: 16-bit complex integer
22 5 Jim Pulokas
                                                  4: 32-bit complex float     | additionally:
23
                                                                                5: same as mode 0          |  |  additionally:
24 4 Jim Pulokas
                                                                                                          6:  16-bit unsigned integer
25
                                                                                                         16:  3x8-bit unsigned int, RGB  
26
                                                                                                        NOTE: mode 0 may be signed
27
                                                                                                        or unsigned depending 
28
                                                                                                        on codes found at byte
29
                                                                                                        offset 152 and 156               |
30 6 Jim Pulokas
|>.  16 |>.   4 |>.   5 |=. Start ~x~      | int32 |/3. number of the first element
31 1 Jim Pulokas
                                                         in each dimension, if this
32
                                                         is a sub-array of another |
33 6 Jim Pulokas
|>.  20 |>.   5 |>.   6 |=. Start ~y~      | int32 |
34
|>.  24 |>.   6 |>.   7 |=. Start ~z~      | int32 |
35
|>.  28 |>.   7 |>.   8 |=. Intervals ~x~  | int32 |/3. number of grid intervals
36 4 Jim Pulokas
                                                           along each dimension      |
37 6 Jim Pulokas
|>.  32 |>.   8 |>.   9 |=. Intervals ~y~  | int32 |
38
|>.  36 |>.   9 |>.  10 |=. Intervals ~z~  | int32 |
39
|>.  40 |>.  10 |>.  11 |=. Cell Length ~x~   | float32 |/3. cell length in angstrom |
40
|>.  44 |>.  11 |>.  12 |=. Cell Length ~y~   | float32 |
41
|>.  48 |>.  12 |>.  13 |=. Cell Length ~z~   | float32 |
42
|>.  52 |>.  13 |>.  14 |=. Cell Angle α  | float32 |/3. cell angles in degrees |\2/3. |/3. ignored by IMOD |
43
|>.  56 |>.  14 |>.  15 |=. Cell Angle β   | float32 |
44
|>.  60 |>.  15 |>.  16 |=. Cell Angle γ  | float32 |
45 7 Jim Pulokas
|>.  64 |>.  16 |>.  17 |=. Column axis   | int32   |/3. 1 -> X
46
                                                         2 -> Y
47
                                                         3 -> Z |
48
|>.  68 |>.  17 |>.  18 |=. Row axis      | int32   |
49
|>.  72 |>.  18 |>.  19 |=. Section axis  | int32   |
50
|>.  76 |>.  19 |>.  20 |=. Minimum density  | float32 |/3. statistics calculated
51
                                                            from the data          |
52
|>.  80 |>.  20 |>.  21 |=. Maximum density  | float32 |
53
|>.  84 |>.  21 |>.  22 |=. Mean density     | float32 |
54 4 Jim Pulokas
55
_...under construction..._