| Bsoft 2.0.5 Bernard's software package

rwGRD.h
Go to the documentation of this file.
1
11 #include "rwimg.h"
12
13 #define GRDSIZE 512 // Size of the GRD header (constant)
14
15 struct GRDhead { // file header for GRD data
16 int magic; // 0 0 Magic number (obsolete)
17 int origp; // 1 4 Processor: 1=vax, 2=mips
18 int mode; // 2 8 1=uchar,2=float,3=complex_float
19 int doffset; // 3 12 Data offset (0 => 512 bytes)
20 int nx; // 4 16 Image size
21 int ny; // 5 20
22 int nz; // 6 24
23 int fastest; // 7 Dimension order
24 int medium; // 8
25 int slowest; // 9
26 float a; // 10 40 Cell dimensions in A
27 float b; // 11
28 float c; // 12
29 float alpha; // 13 Cell angles
30 float beta; // 14
31 float gamma; // 15
32 float amin; // 16 Minimum density value
33 float amax; // 17 Maximum density value
34 float amean; // 18 Average density value
35 float arms; // 19 RMS deviation
36 float ux; // 20 80 Sampling/voxel size
37 float uy; // 21
38 float uz; // 22
39 float bkg; // 23 Background
40 float ox; // 24 Origin
41 float oy; // 25
42 float oz; // 26
43 float vx; // 27 View
44 float vy; // 28
45 float vz; // 29
46 float va; // 30
47 float extra[33]; // 31-63 user-defined info
48 char datetime[16]; // 64 256 Date and time as YYYYMMDDhhmmss
49 char symmetry[32]; // 68 272 Symmetry string
50 char label[208]; // 76 304 Text label
51 } ;
52
53
54 // I/O prototypes
55 int readGRD(Bimage* p, int readdata);
56 int writeGRD(Bimage* p);
GRDhead::ny
int ny
Definition: rwGRD.h:21
GRDhead::nx
int nx
Definition: rwGRD.h:20
GRDhead::vz
float vz
Definition: rwGRD.h:45
GRDhead::vy
float vy
Definition: rwGRD.h:44
GRDhead::doffset
int doffset
Definition: rwGRD.h:19
GRDhead::magic
int magic
Definition: rwGRD.h:16
GRDhead
Definition: rwGRD.h:15
GRDhead::c
float c
Definition: rwGRD.h:28
GRDhead::a
float a
Definition: rwGRD.h:26
GRDhead::nz
int nz
Definition: rwGRD.h:22
GRDhead::b
float b
Definition: rwGRD.h:27
GRDhead::amin
float amin
Definition: rwGRD.h:32
GRDhead::uz
float uz
Definition: rwGRD.h:38
GRDhead::symmetry
char symmetry[32]
Definition: rwGRD.h:49
Bimage
General image parameter class.
Definition: Bimage.h:163
GRDhead::alpha
float alpha
Definition: rwGRD.h:29
GRDhead::arms
float arms
Definition: rwGRD.h:35
GRDhead::uy
float uy
Definition: rwGRD.h:37
GRDhead::bkg
float bkg
Definition: rwGRD.h:39
GRDhead::slowest
int slowest
Definition: rwGRD.h:25
GRDhead::oy
float oy
Definition: rwGRD.h:41
GRDhead::amean
float amean
Definition: rwGRD.h:34
writeGRD
int writeGRD(Bimage *p)
Writing a Basel GRD map image file format.
Definition: rwGRD.cpp:125
GRDhead::mode
int mode
Definition: rwGRD.h:18
readGRD
int readGRD(Bimage *p, int readdata)
Reading a Basel GRD map image file format.
Definition: rwGRD.cpp:31
GRDhead::ux
float ux
Definition: rwGRD.h:36
GRDhead::label
char label[208]
Definition: rwGRD.h:50
GRDhead::gamma
float gamma
Definition: rwGRD.h:31
GRDhead::datetime
char datetime[16]
Definition: rwGRD.h:48
GRDhead::origp
int origp
Definition: rwGRD.h:17
GRDhead::amax
float amax
Definition: rwGRD.h:33
GRDhead::fastest
int fastest
Definition: rwGRD.h:23
GRDhead::oz
float oz
Definition: rwGRD.h:42
GRDhead::va
float va
Definition: rwGRD.h:46
GRDhead::medium
int medium
Definition: rwGRD.h:24
GRDhead::extra
float extra[33]
Definition: rwGRD.h:47
rwimg.h
Header file for 2D and 3D image I/O.
GRDhead::beta
float beta
Definition: rwGRD.h:30
GRDhead::vx
float vx
Definition: rwGRD.h:43
GRDhead::ox
float ox
Definition: rwGRD.h:40