| Bsoft 2.0.5 Bernard's software package

rwCCP4.h
Go to the documentation of this file.
1
11 #include "rwimg.h"
12
13 #define CCP4SIZE 1024 // Minimum size of the CCP4 header (when nsymbt = 0)
14
15 struct CCP4head { // file header for CCP4 data
16 int nx; // 0 0 image size
17 int ny; // 1 4
18 int nz; // 2 8
19 int mode; // 3 0=signed char,1=short,2=float
20 int nxStart; // 4 unit cell offset
21 int nyStart; // 5
22 int nzStart; // 6
23 int mx; // 7 unit cell size in voxels
24 int my; // 8
25 int mz; // 9
26 float a; // 10 40 cell dimensions in A
27 float b; // 11
28 float c; // 12
29 float alpha; // 13 cell angles in degrees
30 float beta; // 14
31 float gamma; // 15
32 int mapc; // 16 column axis
33 int mapr; // 17 row axis
34 int maps; // 18 section axis
35 float amin; // 19 minimum density value
36 float amax; // 20 80 maximum density value
37 float amean; // 21 average density value
38 int ispg; // 22 space group number
39 int nsymbt; // 23 bytes used for sym. ops. table
40 int lskflg; // 24 skew transformation flag, none=0, foll=1
41 float skwmat[9]; // 25-33 Skew matrix S (order S11,S12,S13,S21...) if lskflg>0.
42 float skwtrn[3]; // 34-36 Skew translation if lskflg>0.
43 float extra[15]; // 37-51 user-defined info
44 char map[4]; // 52 identifier for map file ("MAP ")
45 char machst[4]; // 53 machine stamp
46 float arms; // 54 RMS deviation
47 int nlabl; // 55 number of labels used
48 char labels[800]; // 56-255 10 80-character labels
49 } ;
50
51
52 // I/O prototypes
53 int set_CCP4_machine_stamp(char* machine_stamp);
54 int readCCP4(Bimage* p, int readdata);
55 int writeCCP4(Bimage* p);
CCP4head::nx
int nx
Definition: rwCCP4.h:16
CCP4head::mz
int mz
Definition: rwCCP4.h:25
CCP4head::lskflg
int lskflg
Definition: rwCCP4.h:40
CCP4head::ny
int ny
Definition: rwCCP4.h:17
CCP4head::nlabl
int nlabl
Definition: rwCCP4.h:47
CCP4head::maps
int maps
Definition: rwCCP4.h:34
CCP4head::arms
float arms
Definition: rwCCP4.h:46
set_CCP4_machine_stamp
int set_CCP4_machine_stamp(char *machine_stamp)
Setting a CCP4 style machine stamp.
Definition: rwCCP4.cpp:34
CCP4head::alpha
float alpha
Definition: rwCCP4.h:29
CCP4head::labels
char labels[800]
Definition: rwCCP4.h:48
CCP4head::mode
int mode
Definition: rwCCP4.h:19
CCP4head::skwmat
float skwmat[9]
Definition: rwCCP4.h:41
Bimage
General image parameter class.
Definition: Bimage.h:163
CCP4head
Definition: rwCCP4.h:15
CCP4head::nz
int nz
Definition: rwCCP4.h:18
CCP4head::gamma
float gamma
Definition: rwCCP4.h:31
CCP4head::nzStart
int nzStart
Definition: rwCCP4.h:22
CCP4head::mx
int mx
Definition: rwCCP4.h:23
writeCCP4
int writeCCP4(Bimage *p)
Writing a CCP4 map image file format.
Definition: rwCCP4.cpp:207
CCP4head::mapr
int mapr
Definition: rwCCP4.h:33
CCP4head::nxStart
int nxStart
Definition: rwCCP4.h:20
CCP4head::amax
float amax
Definition: rwCCP4.h:36
CCP4head::mapc
int mapc
Definition: rwCCP4.h:32
CCP4head::c
float c
Definition: rwCCP4.h:28
CCP4head::amean
float amean
Definition: rwCCP4.h:37
CCP4head::b
float b
Definition: rwCCP4.h:27
CCP4head::amin
float amin
Definition: rwCCP4.h:35
CCP4head::nsymbt
int nsymbt
Definition: rwCCP4.h:39
CCP4head::beta
float beta
Definition: rwCCP4.h:30
readCCP4
int readCCP4(Bimage *p, int readdata)
Reading a CCP4 map image file format.
Definition: rwCCP4.cpp:81
CCP4head::map
char map[4]
Definition: rwCCP4.h:44
CCP4head::nyStart
int nyStart
Definition: rwCCP4.h:21
CCP4head::machst
char machst[4]
Definition: rwCCP4.h:45
CCP4head::my
int my
Definition: rwCCP4.h:24
CCP4head::extra
float extra[15]
Definition: rwCCP4.h:43
rwimg.h
Header file for 2D and 3D image I/O.
CCP4head::ispg
int ispg
Definition: rwCCP4.h:38
CCP4head::skwtrn
float skwtrn[3]
Definition: rwCCP4.h:42
CCP4head::a
float a
Definition: rwCCP4.h:26