Once the optimum order of fit has been determined, that order along with the coefficients required to construct the surface are recorded.
At this point the following addition to the algorithm is optional:
This enhancement allows ravn to compensate for those traces that have anomalous amplitude relationships with respect to the rest of the record as would occur due to instrumentation difficulties and/or coupling variations.
At this point the calculated gain surface is applied to the data (Fig. 4). Contrast this result with that obtained using an agc alone (Fig. 5). The latter suffers from the usual shortcomings associated with the agc process, washed out [low amplitude] zones near high amplitude events and a bright [high amplitude] onset to the data due to the algorithm used to scale samples within the first half window length of the agc operator.
Consider a data example where trace to trace variations are severe (Fig. 6). The amplitude decay due to spherical divergence is complicated by the differences in channel amplification imparting a striped texture to the record. Using ravn to scale this data, executing only the principal part of the algorithm [no median trace amplitude adjustment], results in a correction for spherical divergence but leaves the striped texture which is particularly obvious over the last hundred or so traces of the record (Fig. 7). To reduce this striping ravn was rerun utilizing the median trace amplitude adjustment option. The resulting record (Fig. 8) displays an improved continuity over the zone of interest [2.0 to 2.8 seconds] but a totally unsatisfactory result shallow. Which result is preferable is a function of the goal of the processing.
Program gasp, when run in the record constant mode, also generates a coefficients file entitled GaspCoef which may be used to remove or reapply the gasp scaling. The GaspCoef file may be plotted using xgraph to give you a quick graphical look at the record to record variations across your dataset.
Prior to running the routine it is mandatory that an onset mute be applied to the data.
The program recognizes the start of your data as the first non-zero sample in the trace time series. If your data does not have hard zeroes prior to the onset of real data and you do not mute prior to running ravn, very disastrous results are likely to occur as ravn will treat the garbage amplitudes above your data as contributing to the overall decay surface of your record.
A typical flow for parameter testing would be:
This will generate an output dataset which has been scaled, had median trace amplitude adjustment applied [the default] and had record to record median amplitude variations compensated for. The output coefficients files should now be renamed prior to any further testing or risk being overwritten on subsequent executions of the routines.
To view the results without trace to trace median amplitude adjustment run:
To view the gain surface generated with median trace amplitude adjustment run:
or without median trace adjustment:
To remove the previously applied gain function run:
ravn -N
testRavn -C RavnCoefsDefaults -coefmed -R |
The above functionality allows one to apply gain, perform some type of processing [perhaps filter out direct arrivals or some problem noise event] then remove the gain. At this point the data could again be input to ravn for scaling with the deleterious effects of the above noise events removed.
ravn may be applied to any type of data to do amplitude balancing. If applying the process to post-stack data be certain to adjust the line header so that the data appears as one multi-trace record [this can be done using utop].
The program may even be run on map data, for example:
Again, be careful to rename the output coefficients file if you anticipate the need to re-use the result.
-iter the number of iterations used in median amplitude adjustment.
-sstep the sample step size [in milliseconds] used in decimating the agc gain surface. The smaller the number, the more data values will be gleaned from the surface for input to the robust fit algorithm.
-tstep the trace step size [in traces] used in decimating the agc gain surface. The smaller the number, the greater the number of data values will be passed to the robust fit algorithm.
-ilim the number of iterations to use in the weighted least squares fit of each order tested.
-ord the maximum order of fit to test.
These entries have a major effect on program run time. For instance, a 240 trace record of 2000 samples per trace requires about 40 seconds for execution [sparc 10, 40 series] using the default parameters. By halving the sstep and tstep entries the run time balloons to 5 minutes. By also boosting the iter and ilim parameters, run times in excess of 15 minutes are possible.
Hints For Run Time Minimization
Once you have finished parameter testing [especially on the above parameters] and are ready to process your entire dataset take a last look in the test coefficients file and make a note of the highest order of fit utilized. The following is an example of a coefficients file generated from a run on a record containing 120 traces:
The first line of the file contains the [record number, fit order, number of coefficients] for the gain surface used for this record. This is followed by the actual coefficients required to construct the gain surface. Finally are 120 lines, each of which contains a pair of numbers representing the [trace number, median adjustment scalar] for the record.
Use a -ord of the largest order of fit encountered. By default the program will look at several orders above this value. If you do not require median trace adjustment enter -iter0 and -coef which will prevent these calculations from be carried out.
Adequate parameter testing prior to your actual processing run should help you avoid the above. However, as this algorithm is in it's formative stages there may exist other pitfalls which have not made themselves known as of yet. Should you encounter a new one please give one of us a call.
Return to the USP Home Page.Frame Doc to html conversion by Tony Garossino