1 | |
---|
2 | /* file FCTXMN2.H |
---|
3 | * ========= |
---|
4 | * |
---|
5 | * version 2, 22-MAY-2006 |
---|
6 | * |
---|
7 | * prototypes of module SHMENU2.C |
---|
8 | * K. Stammler, 2-JUL-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 | #ifndef __FCTXMN2 |
---|
35 | #define __FCTXMN2 |
---|
36 | |
---|
37 | #ifndef __CPUSRDEF |
---|
38 | #include "cpusrdef.h" |
---|
39 | #endif |
---|
40 | |
---|
41 | |
---|
42 | /*-------------------------------------------------------------------------*/ |
---|
43 | |
---|
44 | |
---|
45 | void mn2_fili( PARAM *par, int *status ); |
---|
46 | |
---|
47 | /* reads one or more filter files into memory |
---|
48 | * 1. param: F or R (FFT filters or recursive filters) |
---|
49 | * 2.-N. param: filter names |
---|
50 | * |
---|
51 | * parameters of routine |
---|
52 | * PARAM *par; input; name & parameters |
---|
53 | * int *status; output; return status |
---|
54 | */ |
---|
55 | |
---|
56 | |
---|
57 | /*-------------------------------------------------------------------------*/ |
---|
58 | |
---|
59 | |
---|
60 | void mn2_filter( PARAM *par, int *status ); |
---|
61 | |
---|
62 | /* filters one or more traces with filters read with FILI |
---|
63 | * 1. param: F or R (FFT filters or recursive filters) |
---|
64 | * 2. param: trace list |
---|
65 | * 3. param: lower bound of time window |
---|
66 | * 4. param: upper bound of time window |
---|
67 | * 5. param: if attenuation, t* in sec |
---|
68 | * |
---|
69 | * parameters of routine |
---|
70 | * PARAM *par; input; name & parameters |
---|
71 | * int *status; output; return status |
---|
72 | */ |
---|
73 | |
---|
74 | |
---|
75 | /*-------------------------------------------------------------------------*/ |
---|
76 | |
---|
77 | |
---|
78 | void mn2_cmd( PARAM *par, int *status ); |
---|
79 | |
---|
80 | /* creates command file containing all previously entered command |
---|
81 | * (since start of session or last CMD command). |
---|
82 | * 1. param: name of command file (no extension) |
---|
83 | * |
---|
84 | * parameters of routine |
---|
85 | * PARAM *par; input; name & parameters |
---|
86 | * int *status; output; return status |
---|
87 | */ |
---|
88 | |
---|
89 | |
---|
90 | /*-------------------------------------------------------------------------*/ |
---|
91 | |
---|
92 | |
---|
93 | void mn2_time( PARAM *par, int *status ); |
---|
94 | |
---|
95 | /* returns time value of selected position |
---|
96 | * 1. param: output var - absolute time position |
---|
97 | * 2. param: output var - relative time position |
---|
98 | * 3. param: output var - y value |
---|
99 | * |
---|
100 | * parameters of routine |
---|
101 | * PARAM *par; input; name & parameters |
---|
102 | * int *status; output; return status |
---|
103 | */ |
---|
104 | |
---|
105 | |
---|
106 | /*-------------------------------------------------------------------------*/ |
---|
107 | |
---|
108 | |
---|
109 | void mn2_mark( PARAM *par, int *status ); |
---|
110 | |
---|
111 | /* marks time positions on a trace |
---|
112 | * 1. param: trace position number |
---|
113 | * 2. param: time position (absolute or relative) |
---|
114 | * |
---|
115 | * parameters of routine |
---|
116 | * PARAM *par; input; name & parameters |
---|
117 | * int *status; output; return status |
---|
118 | */ |
---|
119 | |
---|
120 | |
---|
121 | /*-------------------------------------------------------------------------*/ |
---|
122 | |
---|
123 | |
---|
124 | void mn2_corr( PARAM *par, int *status ); |
---|
125 | |
---|
126 | /* computes crosscorrelation of two traces |
---|
127 | * 1. param: trace number of correlation wavelet |
---|
128 | * 2. param: wavelet window start |
---|
129 | * 3. param: wavelet window end |
---|
130 | * 4. param: 2. correlation trace number |
---|
131 | * |
---|
132 | * parameters of routine |
---|
133 | * PARAM *par; input; name & parameters |
---|
134 | * int *status; output; return status |
---|
135 | */ |
---|
136 | |
---|
137 | |
---|
138 | /*-------------------------------------------------------------------------*/ |
---|
139 | |
---|
140 | |
---|
141 | void mn2_corrl( PARAM *par, int *status ); |
---|
142 | |
---|
143 | /* sets correlation length |
---|
144 | * 1. param: start of correlation window |
---|
145 | * 2. param: end of correlation window |
---|
146 | * |
---|
147 | * parameters of routine |
---|
148 | * PARAM *par; input; name & parameters |
---|
149 | * int *status; output; return status |
---|
150 | */ |
---|
151 | |
---|
152 | |
---|
153 | /*-------------------------------------------------------------------------*/ |
---|
154 | |
---|
155 | |
---|
156 | void mn2_mdir( PARAM *par, int *status ); |
---|
157 | |
---|
158 | /* computation of direction of polarisation |
---|
159 | * 1. param: trace list (2 or 3 traces) |
---|
160 | * 2. param: start of correlation window |
---|
161 | * 3. param: end of correlation window |
---|
162 | * 4. param: output var - 2-dim angle or azimuth (3-dim) |
---|
163 | * 5. param: output var - angle of incidence (3-dim) |
---|
164 | * |
---|
165 | * parameters of routine |
---|
166 | * PARAM *par; input; name & parameters |
---|
167 | * int *status; output; return status |
---|
168 | */ |
---|
169 | |
---|
170 | |
---|
171 | /*-------------------------------------------------------------------------*/ |
---|
172 | |
---|
173 | |
---|
174 | void mn2_trcfct( PARAM *par, int *status ); |
---|
175 | |
---|
176 | /* trace functions |
---|
177 | * 1. param: function name |
---|
178 | * 2. param: ... |
---|
179 | * |
---|
180 | * parameters of routine |
---|
181 | * PARAM *par; input; name & parameters |
---|
182 | * int *status; output; return status |
---|
183 | */ |
---|
184 | |
---|
185 | |
---|
186 | /*-------------------------------------------------------------------------*/ |
---|
187 | |
---|
188 | |
---|
189 | |
---|
190 | void mn2_hide( PARAM *par, int *status ); |
---|
191 | |
---|
192 | /* hides traces (remove from display, keep in memeory) |
---|
193 | * 1. param: trace list |
---|
194 | * |
---|
195 | * parameters of routine |
---|
196 | * PARAM *par; input; name & parameters |
---|
197 | * int *status; output; return status |
---|
198 | */ |
---|
199 | |
---|
200 | |
---|
201 | /*-------------------------------------------------------------------------*/ |
---|
202 | |
---|
203 | |
---|
204 | void mn2_display( PARAM *par, int *status ); |
---|
205 | |
---|
206 | /* displays traces at position |
---|
207 | * 1. param: trace list |
---|
208 | * 2. param: start position |
---|
209 | * |
---|
210 | * parameters of routine |
---|
211 | * PARAM *par; input; name & parameters |
---|
212 | * int *status; output; return status |
---|
213 | */ |
---|
214 | |
---|
215 | |
---|
216 | /*-------------------------------------------------------------------------*/ |
---|
217 | |
---|
218 | |
---|
219 | void mn2_extract( PARAM *par, int *status ); |
---|
220 | |
---|
221 | /* extracts info from q-file |
---|
222 | * 1. param: q-file name |
---|
223 | * 2. param: record number |
---|
224 | * 3. param: info entry description string |
---|
225 | * 4. param: output variable |
---|
226 | * |
---|
227 | * parameters of routine |
---|
228 | * PARAM *par; input; name & parameters |
---|
229 | * int *status; output; return status |
---|
230 | */ |
---|
231 | |
---|
232 | |
---|
233 | /*-------------------------------------------------------------------------*/ |
---|
234 | |
---|
235 | #endif /* __FCTXMN2 */ |
---|