source: SH_SHM/trunk/source/shconst.h @ 342

Revision 342, 4.8 KB checked in by marcus, 13 years ago (diff)

r181 | walther | 2011-03-10 09:06:09 +0100 (Do, 10 Mär 2011) | 1 line

Raising maximum integer list length in order to allow processing of large Q-file datasets.

Line 
1
2/* file SHCONST.H
3 *      =========
4 *
5 * $Revision: 181 $, $Date: 2011-03-10 09:06:09 +0100 (Do, 10 MÀr 2011) $
6 *
7 * constants of seismhandler program
8 * K. Stammler, 22-MAY-91
9 */
10
11
12/*
13 *
14 *  SeismicHandler, seismic analysis software
15 *  Copyright (C) 1996,  Klaus Stammler, Federal Institute for Geosciences
16 *                                       and Natural Resources (BGR), Germany
17 *
18 *  This program is free software; you can redistribute it and/or modify
19 *  it under the terms of the GNU General Public License as published by
20 *  the Free Software Foundation; either version 2 of the License, or
21 *  (at your option) any later version.
22 *
23 *  This program is distributed in the hope that it will be useful,
24 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
25 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26 *  GNU General Public License for more details.
27 *
28 *  You should have received a copy of the GNU General Public License
29 *  along with this program; if not, write to the Free Software
30 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
31 *
32 */
33
34
35#ifndef __SHCONST
36#define __SHCONST
37
38#define SHC_VERSION "5.5 February-2011"
39        /* version number */
40#define TW 1
41        /* text window */
42#define GW 2
43        /* graphics window */
44#define SHC_FILE_PREFIX "SH_"
45        /* file prefix of all SeismicHandler files */
46#define SHC_FILE_PREFIX_LENGTH 3
47        /* length of file prefix */
48#define SHC_DE_TEXT ".STX"
49        /* default extension of echo files */
50#define SHC_DE_HELP ".HLP"
51        /* default extension of help files */
52#define SHC_DE_SAVE ".SSV"
53        /* default extension of save files */
54#define SHC_DE_CMD ".SHC"
55        /* default command file extension */
56#define SHC_DE_VEL ".VEL"
57        /* default velocity file extension */
58#define SHC_DE_ERROR ".MSG"
59   /* default extension of error message files */
60#define SHC_DE_RFILT ".FLR"
61        /* default extension for recursive filter files */
62#define SHC_DE_FFILT ".FLF"
63        /* default extension for FFT filter files */
64#define SHC_DE_DFILT ".FLT"
65        /* default extension for tabulated filter files */
66#define SHC_DE_CURVE ".CRV"
67        /* default extension of curve files */
68#define SHC_CHWRITE '&'
69        /* write access character */
70#define SHC_SYMGLB 1
71        /* global symbol set number */
72#define SHC_SYMLOC 0
73        /* local symbol set number */
74#define SHC_ILISTLTH 65000
75        /* max length of integer lists */
76#define SHC_CRSR '*'
77        /* cursor input */
78#define SHC_ABORTCH 'X'
79        /* cursor input aborted */
80#define SHC_EXITCH 'E'
81        /* cursor input end */
82#define SHC_TIMEDEFAULT "1-JUL-1970_12:00:00.00"
83        /* trace start time default */
84#define SHC_PI 3.14159265358979323846
85        /* pi */
86#define SHC_EPSILON 1.0e-25
87        /* epsilon value */
88#define SHC_RAD_TO_DEG (180.0/SHC_PI)
89        /* conversion factor from radians to degrees */
90#define SHC_DEG_TO_KM 111.19
91        /* conversion factor degrees to km */
92/* #define SHC_CURRDSP -1 */
93        /* take trace from current display list */
94/* #define SHC_HIDDENLIST -2 */
95        /* take trace from hidden list */
96#define SHC_MAXWDW 7
97        /* maximum number of windows (same as in gcusrdef.h) */
98#define SHC_WDWMASK 7
99        /* window mask */
100#define SHC_MAXDLN (SHC_MAXWDW+3)
101        /* maximum display list number */
102#define SHC_CARRIAGE_RETURN (char)13
103        /* carriage return */
104#define SHC_CHATTXT "   !i:"
105        /* intro string for CHATTY output line */
106#define SHC_STATNAMELTH 11
107        /* maximum length of station name */
108
109/* style numbers */
110#define SHC_TITLESTYLE 8
111        /* title style */
112#define SHC_TRCINFOSTYLE 9
113        /* style of trace info text */
114#define SHC_ZEROTRCSTYLE 8
115        /* style of zero trace lines */
116#define SHC_MARKSTYLE 6
117        /* style of markers */
118#define SHC_PMSTYLE 5
119        /* particle motion style */
120#define SHC_TIMEAXISSTYLE 7
121        /* style block of time axis */
122
123/* #define SHC_HCFILE_WITH_RANDOM */
124
125/* normalization types */
126#define SHC_N_SF 0
127#define SHC_N_SW 1
128#define SHC_N_AF 2
129#define SHC_N_AW 3
130#define SHC_N_LF 4
131#define SHC_N_LW 5
132#define SHC_N_C  6
133
134/* rotation types */
135#define SHC_ROT_ZNE_TO_LQT 1
136#define SHC_ROT_ZNE_TO_UVW 2
137#define SHC_ROT_UVW_TO_ZNE 3
138
139#define SHC_FILELTH 179
140        /* maximum length of filenames */
141
142/* flags */
143typedef int SHFLAGS;
144#define SHF_LOGCMD     0x1
145#define SHF_ECHO       0x2
146#define SHF_CAPCNV     0x4
147#define SHF_STEP       0x8
148#define SHF_VERIFY     0x10
149#define SHF_CMDERRSTOP 0x20
150#define SHF_SHERRSTOP  0x40
151#define SHF_NOERRMSG   0x80
152#define SHF_CHATTY     0x100
153#define SHF_STARTUP    0x200
154
155
156/* =========================== */
157/* definitions of global types */
158/* =========================== */
159
160typedef float SAMPLE;   /* data type of seismogram samples */
161typedef float REAL;     /* general floating point type */
162/* typedef void TRACE; */    /* trace type (only used as pointer) */
163#define TRACE void
164#define SHENTRY unsigned
165#define SHC_SAMPLEFMT "%e"
166#define SHC_REALFMT "%e"
167
168typedef struct sh_complex {
169        REAL    re;    /* real part */
170        REAL    im;    /* imaginary part */
171} COMPLEX;
172
173
174#endif /* __SHCONST */
Note: See TracBrowser for help on using the repository browser.