1 | |
---|
2 | /* file FCTXMN3.H |
---|
3 | * ========= |
---|
4 | * |
---|
5 | * version 2, 22-MAY-2006 |
---|
6 | * |
---|
7 | * prototypes of module SHMENU3.C |
---|
8 | * K. Stammler, 10-NOV-1990 |
---|
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 __FCTXMN3 |
---|
36 | #define __FCTXMN3 |
---|
37 | |
---|
38 | /*--------------------------------------------------------------------*/ |
---|
39 | |
---|
40 | |
---|
41 | void mn3_overlay( PARAM *par, STATUS *status ); |
---|
42 | |
---|
43 | /* overlay traces |
---|
44 | * 1. param: trace list to be overlayed |
---|
45 | * |
---|
46 | * parameters of routine |
---|
47 | * PARAM *par; input; menu parameters |
---|
48 | * STATUS *status output; return status |
---|
49 | */ |
---|
50 | |
---|
51 | |
---|
52 | /*--------------------------------------------------------------------*/ |
---|
53 | |
---|
54 | |
---|
55 | void mn3_call( PARAM *par, STATUS *status ); |
---|
56 | |
---|
57 | /* special functions |
---|
58 | * 1. param: name of function |
---|
59 | * |
---|
60 | * parameters of routine |
---|
61 | * PARAM *par; input; menu parameters |
---|
62 | * STATUS *status output; return status |
---|
63 | */ |
---|
64 | |
---|
65 | |
---|
66 | /*--------------------------------------------------------------------*/ |
---|
67 | |
---|
68 | |
---|
69 | void mn3_unit( PARAM *par, STATUS *status ); |
---|
70 | |
---|
71 | /* normalise traces to 1 (maximum amplitude of all traces in given window |
---|
72 | * is set to 1). |
---|
73 | * 1. param: trace list |
---|
74 | * 2. param: time window start |
---|
75 | * 3. param: time window end |
---|
76 | * |
---|
77 | * parameters of routine |
---|
78 | * PARAM *par; input; menu parameters |
---|
79 | * STATUS *status output; return status |
---|
80 | */ |
---|
81 | |
---|
82 | |
---|
83 | /*----------------------------------------------------------------------------*/ |
---|
84 | |
---|
85 | |
---|
86 | void mn3_fold( PARAM *par, STATUS *status ); |
---|
87 | |
---|
88 | /* folds traces |
---|
89 | * par 1: trace list to be folded |
---|
90 | * par 2, 3: time window |
---|
91 | * par 4: filter trace |
---|
92 | * |
---|
93 | * parameters of routine |
---|
94 | * PARAM *par; input; command parameters |
---|
95 | * STATUS *status; output; return status |
---|
96 | */ |
---|
97 | |
---|
98 | |
---|
99 | /*----------------------------------------------------------------------------*/ |
---|
100 | |
---|
101 | |
---|
102 | void mn3_cut( PARAM *par, STATUS *status ); |
---|
103 | |
---|
104 | /* cuts traces |
---|
105 | * par 1: trace list to be cut |
---|
106 | * par 2, 3: time window |
---|
107 | * |
---|
108 | * parameters of routine |
---|
109 | * PARAM *par; input; command parameters |
---|
110 | * STATUS *status; output; return status |
---|
111 | */ |
---|
112 | |
---|
113 | |
---|
114 | /*--------------------------------------------------------------------*/ |
---|
115 | |
---|
116 | |
---|
117 | void mn3_mirror( PARAM *par, STATUS *status ); |
---|
118 | |
---|
119 | /* mirrors traces |
---|
120 | * par 1: trace list to be mirrored |
---|
121 | * |
---|
122 | * parameters of routine |
---|
123 | * PARAM *par; input; command parameters |
---|
124 | * STATUS *status; output; return status |
---|
125 | */ |
---|
126 | |
---|
127 | |
---|
128 | /*--------------------------------------------------------------------*/ |
---|
129 | |
---|
130 | |
---|
131 | void mn3_curve( PARAM *par, STATUS *status ); |
---|
132 | |
---|
133 | /* draws curves into display |
---|
134 | * par 1: name of curve file |
---|
135 | * |
---|
136 | * parameters of routine |
---|
137 | * PARAM *par; input; command parameters |
---|
138 | * STATUS *status; output; return status |
---|
139 | */ |
---|
140 | |
---|
141 | |
---|
142 | /*--------------------------------------------------------------------*/ |
---|
143 | |
---|
144 | |
---|
145 | void mn3_despike( PARAM *par, STATUS *status ); |
---|
146 | |
---|
147 | /* despikes traces |
---|
148 | * par 1: trace list |
---|
149 | * par 2: detection factor |
---|
150 | * par 3: lo time bound |
---|
151 | * par 4: hi time bound |
---|
152 | * |
---|
153 | * parameters of routine |
---|
154 | * PARAM *par; input; command parameters |
---|
155 | * STATUS *status; output; return status |
---|
156 | */ |
---|
157 | |
---|
158 | |
---|
159 | /*--------------------------------------------------------------------*/ |
---|
160 | |
---|
161 | |
---|
162 | void mn3_mend( PARAM *par, STATUS *status ); |
---|
163 | |
---|
164 | /* mends trace |
---|
165 | * par 1: trace |
---|
166 | * par 2: order |
---|
167 | * par 3: lo time bound |
---|
168 | * par 4: hi time bound |
---|
169 | * |
---|
170 | * parameters of routine |
---|
171 | * PARAM *par; input; command parameters |
---|
172 | * STATUS *status; output; return status |
---|
173 | */ |
---|
174 | |
---|
175 | |
---|
176 | /*--------------------------------------------------------------------*/ |
---|
177 | |
---|
178 | |
---|
179 | void mn3_spikefil( PARAM *par, STATUS *status ); |
---|
180 | |
---|
181 | /* computes spiking filter |
---|
182 | * par 1: trace |
---|
183 | * par 2: lo time bound |
---|
184 | * par 3: hi time bound |
---|
185 | * |
---|
186 | * parameters of routine |
---|
187 | * PARAM *par; input; command parameters |
---|
188 | * STATUS *status; output; return status |
---|
189 | */ |
---|
190 | |
---|
191 | |
---|
192 | /*--------------------------------------------------------------------*/ |
---|
193 | |
---|
194 | |
---|
195 | void mn3_arp( PARAM *par, STATUS *status ); |
---|
196 | |
---|
197 | /* autoregressive process |
---|
198 | * par 1: trace list |
---|
199 | * par 2: order of process N |
---|
200 | * par 3 .. 3+N-1: process coefficients |
---|
201 | * par 3+N .. 3+2*N-1: start values (default 0.) |
---|
202 | * |
---|
203 | * parameters of routine |
---|
204 | * PARAM *par; input; command parameters |
---|
205 | * STATUS *status; output; return status |
---|
206 | */ |
---|
207 | |
---|
208 | |
---|
209 | /*--------------------------------------------------------------------*/ |
---|
210 | |
---|
211 | |
---|
212 | #endif /* __FCTXMN3 */ |
---|