| Bsoft 2.0.5 Bernard's software package

rwGOODFORD.h
Go to the documentation of this file.
1
11 #include "rwimg.h"
12
13 #define GOODFORDSIZE 168 // Size of the GOODFORD header (constant)
14 #define GFSLICESIZE 20 // Size of the slice header (constant)
15
16 struct GOODFORDhead { // file header for GOODFORD data
17 int pad1; // 0 FORTRAN start integer = 160
18 char title[72]; // 4 File title
19 float scale; // 76 multiplier for output
20 int pad2; // 80 = 0
21 int grdflg; // 84 = 1, type of grid
22 int pad3; // 88 = 0
23 int pad4; // 92 = km
24 int pad5; // 96 = 1
25 int pad6; // 100 = km
26 int im; // 104 x-dimension
27 int jm; // 108 y-dimension
28 int km; // 112 z-dimension
29 float h; // 116 Sampling/spacing (angstrom/voxel)
30 float ox; // 120 Origin (in angstrom)
31 float oy; // 124
32 float oz; // 128
33 int pad7[8]; // 132 = 0
34 int pad8; // 164 FORTRAN end integer = 160
35 } ;
36
37 struct GFslice_head {
38 int pad1; // FORTRAN start integer = 12
39 int k; // Slice number
40 int im; // x-dimension
41 int jm; // y-dimension
42 int pad2; // FORTRAN end integer = 12
43 } ;
44
45 // I/O prototypes
46 int readGOODFORD(Bimage* p, int readdata);
47 int writeGOODFORD(Bimage* p);
48
49
GOODFORDhead::km
int km
Definition: rwGOODFORD.h:28
GFslice_head::pad1
int pad1
Definition: rwGOODFORD.h:38
GOODFORDhead::pad7
int pad7[8]
Definition: rwGOODFORD.h:33
GOODFORDhead::jm
int jm
Definition: rwGOODFORD.h:27
GOODFORDhead::pad4
int pad4
Definition: rwGOODFORD.h:23
GFslice_head::im
int im
Definition: rwGOODFORD.h:40
GOODFORDhead::oy
float oy
Definition: rwGOODFORD.h:31
GOODFORDhead::pad3
int pad3
Definition: rwGOODFORD.h:22
GOODFORDhead::title
char title[72]
Definition: rwGOODFORD.h:18
GOODFORDhead::scale
float scale
Definition: rwGOODFORD.h:19
GOODFORDhead::pad2
int pad2
Definition: rwGOODFORD.h:20
GOODFORDhead::pad6
int pad6
Definition: rwGOODFORD.h:25
GFslice_head
Definition: rwGOODFORD.h:37
Bimage
General image parameter class.
Definition: Bimage.h:163
GOODFORDhead::ox
float ox
Definition: rwGOODFORD.h:30
GOODFORDhead::grdflg
int grdflg
Definition: rwGOODFORD.h:21
GOODFORDhead::pad8
int pad8
Definition: rwGOODFORD.h:34
GOODFORDhead::pad5
int pad5
Definition: rwGOODFORD.h:24
GOODFORDhead
Definition: rwGOODFORD.h:16
GOODFORDhead::h
float h
Definition: rwGOODFORD.h:29
GFslice_head::jm
int jm
Definition: rwGOODFORD.h:41
GOODFORDhead::oz
float oz
Definition: rwGOODFORD.h:32
readGOODFORD
int readGOODFORD(Bimage *p, int readdata)
Reading Peter Goodford's GRID map image file format. A 3D image format used for electrostatic potenti...
Definition: rwGOODFORD.cpp:29
GFslice_head::k
int k
Definition: rwGOODFORD.h:39
GOODFORDhead::im
int im
Definition: rwGOODFORD.h:26
GOODFORDhead::pad1
int pad1
Definition: rwGOODFORD.h:17
rwimg.h
Header file for 2D and 3D image I/O.
GFslice_head::pad2
int pad2
Definition: rwGOODFORD.h:42
writeGOODFORD
int writeGOODFORD(Bimage *p)
Writing Peter Goodford's GRID map image file format. A 3D image format used for electrostatic potenti...
Definition: rwGOODFORD.cpp:103