Project

General

Profile

File Formats » History » Version 4

Jim Pulokas, 05/09/2013 04:50 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
|>.   0 |>.   0 |>.   1 |=. N ~x~         |/3. int32 |/3. 3-D size of data array,
14
                                                          fastest changing first   |
15
|>.   4 |>.   1 |>.   2 |=. N ~y~         |
16
|>.   8 |>.   2 |>.   3 |=. N ~z~         |
17
|>.  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
                                                  4: 32-bit complex float     | also:
23
                                                                                mode 5:  0          |  |  also:
24
                                                                                                          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
|>.  16 |>.   4 |>.   5 |=. Start ~x~      |/3. int32 |/3. number of the first element
31
                                                         in each dimension, if this
32
                                                         is a sub-array of another |
33
|>.  20 |>.   5 |>.   6 |=. Start ~y~      |
34
|>.  24 |>.   6 |>.   7 |=. Start ~z~      |
35
|>.  28 |>.   7 |>.   8 |=. Intervals ~x~  |/3. int32 |/3. number of grid intervals
36
                                                           along each dimension      |
37
|>.  32 |>.   8 |>.   9 |=. Intervals ~y~  |
38
|>.  36 |>.   9 |>.  10 |=. Intervals ~z~  |
39
|>.  40 |>.  10 |>.  11 |=. Cell Length ~x~   |/3. float32 |/3. cell length in angstrom |
40
|>.  44 |>.  11 |>.  12 |=. Cell Length ~y~   |
41
|>.  48 |>.  12 |>.  13 |=. Cell Length ~z~   |
42
|>.  52 |>.  13 |>.  14 |=. Cell Angle α  |/3. float32 |/3. cell angles in degrees |
43
|>.  56 |>.  14 |>.  15 |=. Cell Angle β   |
44
|>.  60 |>.  15 |>.  16 |=. Cell Angle γ  |
45
46
_...under construction..._