Documente Academic
Documente Profesional
Documente Cultură
by
G.F. Margrave, Ph.D., P.Geoph.
16 Silvercrest Green N.W.
Calgary, Alberta, T3B-3R8
403-220-4604
gary@geo.ucalgary.ca
December 3, 1997
Page Number
3
3
3
3
4
5
5
5
5
6
6
6
7
7
7
8
8
9
10
11
12
13
13
13
13
14
14
14
December 3, 1997
Features of LOGEDIT
A great many diverse tasks dealing with well logs and formation tops can be accomplished with LOGEDIT. Here is
a list of those tasks as of early 1995. For instructions on how to perform a specific task refer to the appropriate
section later in this users guide.
Changing log samples by direct graphical editing, that is, changing them with simple mouse actions.
Changing log samples by drawing in the log shape with the mouse.
December 3, 1997
Changing log samples by pasting samples copied from either a different zone on the current log or from any other
log in any well.
Median filtering of logs using a variety of possible filter lengths.
Log resampling with an anti-alias filter (zero phase) if appropriate.
Log resizing which means resetting the minimum and maximum depths. This will either pad the log with NaNs
(NaN means Not a Number) or truncate the log as needed.
Changing log units from either Imperial to Metric or the reverse.
Correct a log to true vertical depth using information from a deviation survey.
Output a SEISLINE deviations file which is used by SEISLINE to display the true path of a well bore on a seismic
section.
Check shot correct a sonic log using a check shot survey file.
Check shot correct a sonic log using a simple ASCII file of depths and times such as might be picked off a seismic
section.
Form composite logs using simple copy/paste techniques. This usually involves several separate LOGEDIT
instances. You may specify various boundary conditions such as top or bottom truncation and LOGEDIT takes
care of any units conversion or resampling that is needed.
Conversion of logs to time. This requires that at least one log in your current log editing session be a sonic log.
LOGEDIT allows control over the accuracy of the conversion and specification of the time sample rate.
Computation of 1-D synthetic seismic responses (theograms). At least one log must be a sonic log. Wavelets are
expected to reside in a file called wavelets.mat which may be created by WAVELETED.
Output of time logs and theograms as LAS files which allows SEISLINE to import them.
Formation tops may be displayed in both time and depth
Deletion of formation tops with the mouse
Modifying the depths (or times) of formation tops with simple mouse actions.
Importing formation tops flat file.
Simple direct culling of duplicate formation tops (i.e. multiple tops with the same depth).
Renaming formation tops.
Converting formation tops from metric to imperial or the reverse without converting the log. (Sometimes a metric
log can accidentally have imperial tops in it.)
Launching LOGEDIT
Before beginning, you should spend a moment to think about how you wish to manage your log data. Two basic
schemes have merit:
1) Keep your data in project directories and always change directories to the appropriate project before launching
MATLAB.
2) Make a subdirectory of your home directory called matlab and always copy your log files there and change
directories to there before launching MATLAB.
The first method has the advantage of allowing you to keep your data organized by project but can be a bit confusing
because you will need to maintain a separate wavelets.mat file for each project. The second scheme allows you to
work with only one wavelets.mat file and lets you keep all MATLAB related files in one place but requires that you
copy files back and forth between the projects directory and your matlab directory.
LOGEDIT is a MATLAB program which means that you need to initiate a MATLAB session prior to launching
LOGEDIT. After starting your MATLAB session in the manner appropriate for your computer (see your MATLAB
documentation) , you should see a little graphic logo display appear in a separate window and then disappear and
eventually the MATLAB prompt:
>>
will appear in your terminal window. If you never see the graphic logo and you are running on a UNIX network,
then you dont have your display variable set right and you must quit MATLAB (type quit at the MATLAB
prompt), set your display environment variable, and restart MATLAB.
Once MATLAB is running, you launch LOGEDIT by simply typing:
>> logedit
at the MATLAB prompt. There will be some delay before a window appears because MATLAB must gather the
code for LOGEDIT and compile it. Once your initial LOGEDIT window appears, you may choose to launch others
(to edit more than one well at a time) and these should appear without delay. Since you are time sharing on a
workstation with a number of other users, you may also experience additional delays as other jobs execute. Should
December 3, 1997
these delays become bothersome in your daily work, you might wish to consider the option of purchasing a
MATLAB license solely for your work group. Costs are roughly $4000.00 US per user.
December 3, 1997
December 3, 1997
or Median Filter.) Second, if you click and drag and nothing happens immediately, be patient and wait with the
mouse button depressed until you get a response. This is the downside of time sharing in a networked environment
for cost cutting. Third, as you drag a point, all other points become invisible and only the point being moved is
updated. This behavior reduces the delay caused by redrawing the screen and can be changed to cause the redraw of
the entire log by selecting LogEdit / Edit Options / Fast Edit which toggles off the default fast edit behavior.
Also found in LogEdit / Edit Options are Locate with Edit and Elastic Drag The former toggles a locate display on
and off that shows the numerical coordinates of the point being dragged. The latter is used with group move when
anchors have been set. If Elastic Drag is off (i.e. its menu is not checked) then when a group of points is dragged
they will all move with the same displacement and so preserve the shape of the group. This default behavior is called
constant drag meaning that the displacement is constant across the group of points. If Elastic Drag is on, then the
point the cursor is on is displaced as the mouse motion indicates while all other points in the group receive a
displacement which tapers smoothly to zero at the anchors. (With no anchors set, both options have the same effect
which is the constant drag.)
Median Filtering
Median filtering is a process whereby each log sample is replaced by the median of the n samples lying in a window
centered on the target sample. It is effective in removing noise from the log and, the larger n is, the more smoothed
the result will be. The number n is called the filter length.
To apply a median filter to the active log, select LogEdit / Median Filter and a popup dialog will appear allowing
you to set the filter length to a number between 3 and 51. Remember, the greater the number, the more drastic the
effect and the smoother the final result. This is a compute intensive process and larger filter lengths also take longer.
When the process is finished, you will be shown the result drawn in white on top of the original log and asked if you
wish to accept it. Be sure before saying yes because there is no undo beyond this point.
December 3, 1997
than in depth so time may be saved by resampling first in depth. To change the sample size, select LogEdit / Change
/ Log Sample Size and type in the new sample interval in the popup dialog that appears. (Note: this can be used to
simply find out the current sample size if you just cancel out of this dialog.) You may set the new sample interval to
be any floating point number; however, if the new number is greater than the old, then a zero phase anti-alias filter
will be applied.
It may be desirable to change the log extent to concentrate attention on a zone of interest in an overly lengthy log.
Also, when compositing logs using copy/paste it may be necessary to increase the log extent prior to pasting samples
onto the beginning or end. To do this, select LogEdit / Change / Min and Max Depths and enter the new depth range
in the popup dialog that appears. Note that you are given a chance to delete those tops which lie outside the range of
the new log.
Changing the units of a log is a simple matter of selecting LogEdit / Change / To Imperial Units or LogEdit /
Change / To Metric Units as appropriate. LOGEDIT will change the depth of the log and tops plus the physical units
of the log if it recognizes the log type.
December 3, 1997
this display and note the features. To edit the check shot, select Options / Edit C.S. Times and read the message that
appears at the bottom of the window. The editing abilities are:
MB1: Click to add a new point. You must click on the curve and then you move the point if desired.
MB1: Drag to move any existing point. You should keep in mind that slight movements can imply large changes
in interval velocity.
MB2: Click to delete a point. This can be handy for removing spurious or duplicate points.
MB3: Click to toggle a points anchor status.
MB3: Drag to move a group of points. This works just the same as direct log editing described previously.
Note that only the left most axes is editable in this display.
After make any desired edits, you compute the check shot corrections by selecting Options / Compute Corrected
Log. When the corrections are computed, the display will update. On the left you will see in yellow the times
computed from the uncorrected sonic and in blue are those from the corrected sonic. The latter should pass through
the red symbols of the check shot times. In the middle, in yellow is the original sonic (plotted in velocity units) and
in blue is the corrected sonic. Finally, on the right is a blue curve showing the computed traveltime adjustments
which were added to the sonic in the correction process. It should pass through the red symbols which are the
traveltime increments prescribed by the check shot.
If this display is satisfactory, then you are done and can select Options / Done to send the corrected sonic back to
LOGEDIT. Alternatively, you can edit the checkshot again and recompute or simply cancel without sending
anything back to LOGEDIT by Options / Cancel. Note that only the active log is corrected. This means that the
active log must be a sonic and if you have an LAS file with several sonics in it then each one must be corrected
individually.
LOGEDIT will refresh display to show the corrected log and store the computed bulk shift. You can see the value of
this shift by selecting DepthtoTime / Options / Set Parameters. Since there is no place for this value in an LAS
header, LOGEDIT will not remember this value the next time you open the log file. If you forget or lose the value,
you could always recompute the check shot corrections since, unlike TVD corrections, applying check shot
corrections twice does not result in an erroneous log.
December 3, 1997
of times. No matter how many instances of LOGEDIT you are running, they all share the same clipboard as is
necessary to facilitate copy/paste between different logs.
To paste these samples somewhere is much the same as the copy process. If you wish to past them to a different
zone on the same log, then you simply adjust the top and bottom markers to select that zone. If you are pasting to a
different log, then launch another copy of LOGEDIT, activate copy/paste as described above, and adjust the top and
bottom markers on that log. Note the variety of options under LogEdit / Copy/Paste / Paste which have the following
meanings:
Stretch/Compress: This means the copied log segment is stretched or compressed as needed to fill the entire paste
zone. In the case of a compression, a zero phase anti-alias filter will be applied. Any sampled already in the paste
zone are discarded.
Top Truncation: If the copy zone is larger than the paste zone, then the bottoms of the zones are aligned and
samples are truncated off the top of the copied log segment until it fits in the paste zone. Any samples already in
the paste zone are discarded. If the copy zone is smaller than the paste zone, the bottoms of the zones are aligned
and the entire copied log segment is used as far as it goes. Samples already in the paste zone are retained down to
the top of the copied segment. No resampling occurs in either case.
Bottom Truncation: If the copy zone is larger than the paste zone, then the tops of the zones are aligned and
samples are truncated off the bottom of the copied log segment until it fits in the paste zone. Any samples already
in the paste zone are discarded. If the copy zone is smaller than the paste zone, the tops of the zones are aligned
and the entire copied log segment is used as far as it goes. Samples already in the paste zone are retained up to the
bottom of the copied segment. No resampling occurs in either case.
To Copied Depth Range: In this case, the settings of the top and bottom markers for the paste zone are ignored
and the samples are copied to the exact same depths that they came from. If the copy and paste are on the same
log then this is the identity operation and has no effect. It is useful for compositing logs when you wish to be sure
that the depths of the copied samples do not change.
Also the Undo Paste feature will immediately restore whatever you had before the paste which makes it easy to
experiment until you get what you want.
10
December 3, 1997
The last item on the parameters popup is an option to convert sonics to velocities for output to SEISLINE. This only
applies to output logs in time and has no effect when you save your edited logs in the usual manner through the file
menu.
When you are satisfied with the depth to time parameters, it is now appropriate to convert either the active log to
time by selecting DepthtoTime / Compute / Active Log to Time or all logs to time with a similar menu selection. If
there is more than one possible sonic to use, then you will be asked to choose which one. When the time conversion
is complete, a new window will appear showing the log(s) in time. This is only for display and may be dismissed at
any time.
Finally, it is now appropriate to output the time log(s) as an LAS file. There are two menu options for this:
DepthtoTime / Save Time Logs / As .las file and DepthtoTime / Save Time Logs / As general file. The only
difference between these is almost trivial. The first option automatically appends a .las suffix to whatever filename
you type and the second one does not. In either case, a file navigation dialog will appear and, once you provide the
file name, an LAS file with the time log(s) in it will be written. This can be taken into SEISLINE via LOGPREP.
Also, for QC, you can launch another LOGEDIT and view it just as you would a depth log.
11
December 3, 1997
Creating Theograms
Once you have a suitable wavelets.mat file and at least one sonic log and optionally a density log, you are ready to
create a theogram (the term means theoretical seismogram). Remember that the accuracy of the theogram is affected
by the nlegs parameter described in the section Converting Logs to Time. If you wish you tops to appear on the
theogram display, then you should make sure they are also displayed on the log at this time.
To proceed, select DepthtoTime / Compute / Theogram and a popup dialog will appear that allows you to specify:
the sonic log, the density log (if any), the wavelet, the density option, the hole filling algorithm, and the theogram
type. Note that items are highlighted in blue to indicate importance. Initially, the sonic log name selection is
highlighted and the density log name is not. This is because the default density option is constant density which does
not require a density log. The density options are:
Constant Density: No density log used.
Exclusively Gardners: Gardners rule is used to synthesize a density log from the sonic log. No density log is used.
Density Log plus Gardners: A density log is required and used. Should it be shorter than the sonic or have holes
where the sonic does not, Gardners rule is used to extend it.
Exclusively Density Log: A density log is required and used. The theogram will extend only over the depth range
where both sonic and density logs exist.
If you select an option involving Gardners rule, you will be given a chance to enter your own Gardners coefficients.
The default values are those found in Gardners original paper.
The hole filling algorithm is only important if your logs have holes in them that remain unfilled at theogram creation
time. If not, let it default. The various options mean:
Constant: Holes are filled with a constant value determined as the mean of the first ten samples before the hole
and the first ten after.
Linear: Holes are filled with a linear trend which runs from the average of the first ten samples before the hole to a
similar average after.
Mean: Holes are filled with the mean value of the entire log.
Layer Mean: Holes are filled with the mean value of the live samples of the layer in which they occur. If the hole
spans an entire layer then the mean values of the layers just above and below are averaged and used. Note that this
option requires tops to be present.
Layer Trend: Holes are filled with a trend derived from a fit to the live samples in the layer in which the hole
occurs. If the hole spans an entire layer, then trends are derived from the layer above and from that below, and
averaged. Note that this option requires tops to be present.
It should be stressed that the best hole filling technique is human intervention to draw in or copy/paste something in.
This should be preferred over any of these options. They were developed more for use with LOGSEC in which
small holes can arise from propagating logs along structure which can be very tedious to fill manually.
Finally, you can select the theogram type to be either primaries only or attenuated primaries plus multiples.
Generally, a primaries only theogram models processed seismic data best since the processing has attempted to
remove attenuation effects and suppress multiples. The primaries only theogram is derived as follows:
compute vins which is the instantaneous velocity from the sonic log.
compute the impedance in depth as vins time the density log
stretch the impedance to time at a sample rate required to avoid aliasing.
compute RC's as the derivative of the log(impedance)
resample RC's to the sample rate of the wavelet
convolve the wavelet and the RC's
The attenuated primaries plus multiples algorithm essentially computes the earths 1-D impulse response by taking
the RCs as computed above (at the wavelet sample rate) and running them through the algorithm of Waters
described in: Waters, "Reflection Seismology", 1981, John Wiley, pp 128-135. The wavelet is then convolved with
this impulse response.
When the theogram has been computed, the theogram display panel will appear. The display shows the wavelet
used, the impedance log and the RCs as computed (in time), the resultant theogram, and a number of phase rotations
of the theogram. Note that these phase rotations are simply computed from the theogram itself so if you use a
wavelet with -90 phase, then the phase rotation of +90 will actually be zero phase. You can do the following with
the theogram display window:
12
December 3, 1997
Zoom it: Use MB3 to draw a zoom box. A single click will unzoom.
Alter the timing lines: Experiment with the features in Options / Timing Lines.
Compute and display a new phase rotation: Select Options / New Phase.
Precisely Locate in Time: Select Options / Locate and note that the time the cursor is at is displayed in the
message window at the bottom of the display. This feature will remain on until you turn it off by selecting it
again.
Make Hardcopy: Select Options / Hardcopy. See Making Hardcopy elsewhere in this guide for more
instructions.
Write the theogram as an LAS file: Select Options / Write LAS. The resultant file will contain all of the
displayed traces on the theogram display. It can be viewed in a separate LOGEDIT window and imported into any
program capable of reading an LAS file.
If you wish to have a theogram displayed on your screen next to a SEISLINE window, one way to do this is to zoom
the theogram display to show only the theogram and then shrink the window down to suit your SEISLINE display.
Alternately, if you have already save a theogram in an LAS file, you can either read it into SEISLINE or display it
with LOGEDIT.
Deleting Tops
Deletion of tops can be done in several ways. You can select TopsEdit / Eliminate Duplicate Tops and enter a dialog
which allows you to choose which top will prevail wherever a number of different formation tops exist at the same
depth. This is essential prior to using any log in LOGSEC and is very useful in any case just to get a clean display.
Alternatively, you can select TopsEdit / Delete Tops and LOGEDIT will assign the mouse buttons to allow you to
delete any top by just clicking on it. The assignments are:
MB1: Click to delete or undelete. When you click on any top, you will see its color change from pumpkin to grey
indicating it is marked for deletion. If you change your mind, click on it again to restore it.
MB3: Click to signal the end of the deletion process. The tops which are grey will be deleted. If you simply wish
to cancel the process without deleting anything, then you can reselect TopsEdit / Delete Tops.
The last method for deleting tops is useful when you have a lot of tops that are beyond either the top or bottom of
the log and you wish to quickly delete them without clicking on each one. Just select LogEdit / Change / Min and
Max Depths and a dialog window will appear. Set the minimum and maximum depths to whatever you want and
make sure the option to delete tops that are out of range is turned on. Click the done button and the tops will be
nuked.
Moving Tops
LOGEDIT provides a simple graphical means of adjusting the depth of any top. Simple select TopsEdit / Move Tops
and the left mouse button (MB1) will be assigned to allow you to simply click and drag a top to a new location. Note
that the depth of the top is displayed as you do so. You can zoom or unzoom at any time to get increased accuracy.
The tops moving action stays turned on until you turn it off or you turn on some other action.
13
December 3, 1997
asking you to click the desired depth. When you do, the plot will refresh showing your new top which you can then
move around to fine adjust. Tops are created on at a time and you must reselect TopsEdit / Create New Top each
time.
Renaming Tops
To rename tops, just select TopsEdit / Rename Tops and you will see the mouse button assignments in the message
window become:
MB1: click to select top to rename. You must click on the formation top line.
MB3: click to finish renaming. Renaming remains turned on until you either click MB3, reselect TopsEdit /
Rename Tops, or select some other action.
When you select a top to rename, a dialog will appear in which you enter the new name.
14
December 3, 1997
your MATLAB terminal window and simply hit the enter key a few times. If MATLAB responds each time with the
MATLAB prompt ( >> ), then LOGEDIT is ready.
If LOGEDIT is ready and your cursor is stuck as a watch, then you can reset it to an arrow by:
1) Click in the body of the LOGEDIT window to signal MATLAB that your next command applies to this window.
2) In your MATLAB terminal window at the MATLAB prompt, type:
>> set(gcf,pointer,arrow)
Your cursor should now be an arrow. If not, youve probably not done one of the steps correctly so try again.
15
December 3, 1997