forked from vosegaard/simpson
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dimloc.h
85 lines (68 loc) · 1.78 KB
/
dimloc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/***
* dimloc.h: useful definitions for array locations
* associated with dimensions of ND-data.
***/
#ifndef __dimloc_h
#define __dimloc_h
/***
* The following codes are used to refer to dimension-specific information
* stored in elements of an array:
***/
#define XLOC 0
#define YLOC 1
#define ZLOC 2
#define ALOC 3
#define MAXDIM 4
/***
* The following codes are used to refer to the dimensions of the data;
* the "CUR" and "ABS" codes are guaranteed to be 1,2,3 etc.
***/
#define BAD_DIM -666
#define NULL_DIM 0
#define CUR_XDIM 1
#define CUR_YDIM 2
#define CUR_ZDIM 3
#define CUR_ADIM 4
#define ABS_XDIM -1
#define ABS_YDIM -2
#define ABS_ZDIM -3
#define ABS_ADIM -4
#define CUR_HDIM 9
#define CUR_VDIM 10
/***
* Definitions for locations of Real and Imaginary Channels in ND Data Lists:
***/
#ifdef USE_CHAN_DEFS
#define R_CHAN 0
#define I_CHAN 1
#define RR_CHAN 0
#define IR_CHAN 1
#define RI_CHAN 2
#define II_CHAN 3
#define RRR_CHAN 0
#define IRR_CHAN 1
#define RIR_CHAN 2
#define IIR_CHAN 3
#define RRI_CHAN 4
#define IRI_CHAN 5
#define RII_CHAN 6
#define III_CHAN 7
#define RRRR_CHAN 0
#define IRRR_CHAN 1
#define RIRR_CHAN 2
#define IIRR_CHAN 3
#define RRIR_CHAN 4
#define IRIR_CHAN 5
#define RIIR_CHAN 6
#define IIIR_CHAN 7
#define RRRI_CHAN 8
#define IRRI_CHAN 9
#define RIRI_CHAN 10
#define IIRI_CHAN 11
#define RRII_CHAN 12
#define IRII_CHAN 13
#define RIII_CHAN 14
#define IIII_CHAN 15
#define MAXCHAN 16 /* Maximum Real/Imaginary Channels. */
#endif
#endif /* __dimloc_h */