# Patent

## Title
Gain stabilization apparatus and methods for spectral gamma ray measurement systems

## Abstract

Apparatus and methods for measuring gamma ray energy spectra wherein the gain of the measurement system is continuously and automatically adjusted to a standard gain. Gain of the system is controlled automatically through analysis of the measured energy spectra. Alternately, the gain of the system is controlled by the use of a calibration source and the operation of the system at a standard and amplified gain. Gain control can be improved further by combining both the spectral analysis and calibration source methodology. The system can be embodied in a wireline or logging-while-drilling borehole logging systems that measure naturally occurring or induced gamma ray spectra. The system can also be used in non-borehole applications including non-borehole gamma ray spectral systems such as computer-aided-tomography scan systems, security scanning systems, radiation monitoring systems, process control systems, analytical measurement systems using activation analysis methodology, and the like.

## Background
RELATED APPLICATION
This application is a Continuation-In-Part of application Ser. No. 10/809,066 filed on Mar. 15, 2004.


BACKGROUND OF THE INVENTION
This invention is directed toward gain stabilization of measured gamma radiation energy spectra, and to the computation of parameters of interest from these gain stabilized spectra. More particularly, the invention is directed toward the gain stabilized measure of gamma radiation from earth formation penetrated by a well borehole, and the subsequent determination of parameters of interest from these measurements. Method and apparatus are applied to the determination of concentrations of naturally occurring radioactive elements in earth formation by analysis of energy spectra measured by at least one gamma ray detector while the borehole is being drilled. It should be understood, however, that the invention is also applicable to wireline logging systems, and to any type of borehole measurement utilizing gamma ray energy spectra. Furthermore, apparatus and methods of the invention are applicable to non-borehole measurements that incorporate measured gamma ray energy spectra.
The measure of naturally occurring gamma radiation as a function of depth within a well borehole is the basis of one of the earliest borehole geophysical exploration system. This type system, commonly referred to as a natural gamma ray logging system, typically comprises at least one gamma ray detector housed in a downhole tool that is conveyed along the borehole.
One type of natural gamma ray logging system comprises a logging tool that is responsive to total gamma radiation emitted by the earth formation, and the tool is conveyed along the borehole by means of a wireline. This “total” natural gamma ray wireline logging system was the first type of gamma ray measurement used in borehole geophysical exploration. Since most shales are relatively rich in naturally occurring radioactive elements, these logs are used primarily to delineate shale from other formations, or used to measure the shale content of formations. This wireline logging system is used only after the borehole has been drilled.
It is often advantageous to measure total natural gamma radiation while the borehole is being drilled. This is accomplished by conveying the tool along the borehole by means of a drill string. This type of system is commonly referred to as a total natural gamma ray logging-while-drilling (LWD) system.
Yet another type of natural gamma ray logging system comprises a logging tool that measures a spectrum of gamma radiation emitted by the earth formation. The spectrum is defined a measure of intensity of radiation as a function of radiation energy. This type of logging system is commonly referred to as a spectral gamma ray logging system. Spectral gamma ray logging tools are typically conveyed along the borehole by means of a wireline. Low count rate and detector stabilization are major problems in any type of natural spectral LWD systems
Most naturally occurring gamma radiation found in earth formations is emitted by potassium (K) and elements within the decay chains of uranium (U) and thorium (Th). Energy of naturally occurring gamma radiation measurable in a borehole environment typically spans a range of about 0.1 to less than 3.0 million electron Volts (MeV). The elements K, U and Th emit gamma radiation at different characteristic energies. Components of radiation from K, U and Th contributing to the total measured gamma radiation can, therefore, be obtained by identifying these characteristic energies using spectral gamma ray logging system. Through system calibration and modeling, these components can be subsequently related to the corresponding elemental concentrations of these elements within the formation. Elemental concentrations of K, U and Th can be used to determine parameters in addition to shale content obtained from total natural gamma ray logs. These additional parameters include, but are not limited to, clay typing, lithology identification, fracture detection, and radioactive tracer placement.
As in all nuclear logging systems, statistical precision of a measurement is maximized when the count rate of the radiation detector used to obtain the measurement is maximized. Naturally occurring gamma radiation is typically much less intense than gamma radiation induced in formation materials by sources of radiation within a logging tool. It is important, therefore, to design natural gamma ray logging tools to maximized measured gamma radiation count rate.
Measured count rate can be optimized by designing tool housings (both total gamma ray and spectral gamma ray) so that gamma radiation attenuation within the housing is minimized. The lower energy region of the measured spectrum is especially important in spectral gamma ray logging systems. Wireline spectral gamma ray logging tools often employ a tool housing fabricated with material of relatively low atomic number, rather than heavier (and stronger) materials such as steel. These so called “low Z” tool cases minimize gamma ray attenuation, especially at the lower end of the energy spectrum, thereby maximizing measured count rate for a given radiation intensity and detector size. Low Z materials often do not meet structural requirements of LWD systems.
Measured count rates can further be maximized through tool detector design. Due to the relatively high energies of the characteristic K, U, and Th gamma radiation, it is advantageous for the gamma ray detector of a given type to be dimensioned as large as practically possible to react with, and thereby respond to, these radiations. Typically, larger detectors can be disposed in wireline tools with less attenuating material between the detector and the formation. LWD systems employ a relatively thick tool housing, which is typically a collar with a drilling fluid flow conduit passing through the collar.
A gamma ray detector comprising a scintillation crystal and a cooperating light sensing device, such as a photomultiplier tube, typically yields the highest spectral gamma ray detector efficiency for a given detector volume. Gamma ray detectors undergo significant temperature changes during a logging operation. The gain of a photomultiplier tube changes as the temperature and, to a lesser extent, counting rate changes. Gain changes, often referred to as gain “shifts”, adversely affect gamma ray spectral analysis. Typically, a 100 degree Centigrade (° C.) change in temperature causes 100% change in gain. Temperature variations of this order of magnitude are not uncommon in wireline or LWD logging operations. It is, therefore, necessary to compensate for detector gain changes in order to obtain accurate and precise spectral gamma ray measurements. This compensation is especially difficult to achieve in LWD systems. As an example, significant gain changes can occur over a relatively short time interval. The data rates of available LWD telemetry systems between the downhole tool and surface equipment are typically too low to effectively monitor and to correct for rapidly occurring gain shifts. Automatic downhole gain control is, therefore, highly desirable in LWD systems.
As mentioned previously, naturally occurring gamma ray spectral measurements are typically low count rate. It is, therefore, desirable to use as much of the measurable gamma ray spectrum as possible in order to maximize statistical precision. Shock and vibration effects on low count rate systems can distort spectral shape, especially at the lower energy region of the measured spectrum. This problem is especially prevalent in LWD systems, which are exposed to harsh drilling environments.
SUMMARY OF THE INVENTION
This present invention is disclosed as being embodied as a spectral gamma ray logging-while-drilling (LWD) system. The system is designed to yield elemental concentrations of naturally occurring radioactive material such as K, U and Th. It should be understood, however, that the system can be used to obtain gain stabilized spectral measurements of any type of gamma radiation encountered in a borehole environment. Furthermore, apparatus and methods of the invention are applicable to non-borehole gamma ray spectral systems such as computer-aided-tomography scan systems (CAT scan systems), security scanning systems, radiation monitoring systems, process control systems, analytical measurement systems, using neutron induced gamma radiation methodology, and the like.
The LWD downhole assembly or “tool” comprises a drill collar that is attached to the lower end of a drill string. A drill bit preferably terminates the lower end of the tool. Sensor, electronics and downhole telemetry elements are disposed within the collar. The tool is conveyed along a well borehole by means of the drill string, which is operated by a rotary drilling rig at the surface of the earth. Information from the tool is telemetered to the surface via a telemetry link and received by a surface telemetry element contained in surface equipment that is operationally attached to the drilling rig. Information can also be transmitted from the surface equipment to the tool via the telemetry link.
The sensor element comprises one or more gamma ray detectors that are disposed as close as practical to the periphery of the tool. This minimizes intervening material between the one or more detectors and the source of gamma radiation, which is earth formation penetrated by the borehole. As a result of this detector geometry, spectral degradation is minimized and measured count rate is maximized for a given detector size. The detector geometry also allows an azimuthal spectral gamma ray measurement in a plane essentially perpendicular to the axis of the tool. The one or more gamma ray detectors preferably comprises a scintillation crystal optically coupled to a light sensitive device such as a photomultiplier tube. The detector element is calibrated under known conditions and at a “standard” detector gain. The sensor element can also contain a system, such as a magnetometer, that senses the orientation of the tool within the borehole.
Output signals from the sensor element are input to the electronics element. The signals are amplified using appropriate preamplification and amplification circuits. Amplified sensor signals are then input to a processor for subsequent processing. In addition to means for processing measured data with predetermined algorithms, the processor typically comprises a clock and an analog-to-digital converter (ADC). High voltage for the one or more gamma ray detectors is provided by an adjustable high voltage power supply within the electronics element. Changes in temperature or, to a lesser extent, changes in measured gamma ray count rate result in detector gain change. Peak structure location and continuum regions of measured gamma ray spectra are monitored by the processor. Any gain change is detected using predetermined relationships and criteria stored within the processor. A gain correction signal representative of the magnitude of the gain change is generated by the processor and input to the adjustable high voltage power supply thereby adjusting detector high voltage such that the gain is restored to the standard gain. This gain control system is automatic, and requires no intervention from the surface.
With detector gain stabilized to standard gain, elemental concentrations of K, U and Th are determined in the processor using predetermined relationships. These elemental concentrations can be input to the downhole telemetry element and telemetered to the surface. Alternately, gain stabilized spectral data can be input to the downhole telemetry element and telemetered to the surface for subsequent processing. Spectral gamma ray data and elemental concentration determinations can be recorded by a data storage means within the electronics element, and subsequently extracted for processing and analysis when the tool is returned to the surface of the earth.
Elemental concentrations of K, U and Th are determined as a function of depth as the tool is conveyed along the borehole. If a plurality of gamma ray detectors is used, the gain adjusted spectral responses of the detectors are combined to obtain the desired elemental concentrations. Preferably the detector responses are combined prior to computation of elemental concentrations.
The peripheral detector geometry also allows an azimuthal spectral gamma ray measurement and corresponding azimuthal elemental concentration determinations in a plane that is essentially perpendicular to the axis of the tool. Azimuthal reference is obtained by using a tool orientation sensitive device such as a magnetometer disposed within the sensor or electronics element. If a single detector is used, azimuthal measurements can be obtained only when the tool is being rotated by the drill string. A plurality of detectors yields azimuthal information when the tool is rotating or “sliding” along the borehole without rotating.
Methods and apparatus of the invention are applicable to both LWD and wireline logging systems. The system can be embodied to maximize response of both LWD and wireline systems, as will be discussed in subsequent sections of this disclosure. The invention is also applicable to all types “natural” and “induced” gamma ray borehole systems which including, but are not limited to, gamma ray tracer logging systems, pulsed neutron induced gamma ray systems commonly known as “neutron die-away” or “sigma” logging systems, thermal neutron induced capture gamma ray logging systems, and pulsed neutron inelastic scatter induced gamma ray systems commonly known as “carbon/oxygen” logging systems. Furthermore, the invention is applicable to non-borehole systems included those mentioned at the beginning of this section.



BRIEF DESCRIPTION OF THE DRAWINGS
So that the manner in which the above recited features, advantages and objects the present invention are obtained and can be understood in detail, more particular description of the invention, briefly summarized above, may be had by reference to the embodiments thereof which are illustrated in the appended drawings.
FIG. 1 illustrates the spectral natural gamma ray LWD system displayed as a whole;
FIG. 2 is a functional diagram of major elements and components of the spectral LWD system;
FIG. 3a is a cross sectional view of a spectral LWD tool sensor element comprising one gamma ray detector;
FIG. 3b is a side sectional view of the sensor element comprising one gamma ray detector;
FIG. 4 is a cross sectional view of a spectral LWD tool sensor element comprising three gamma ray detectors;
FIG. 5 is a typical gamma ray natural gamma ray spectrum measured with the spectral gamma ray LWD tool;
FIG. 6 shows a relationship between the slope of the Compton region of the measured gamma ray spectrum and the temperature of the gamma ray detector;
FIG. 7 illustrates relationships between detector gain adjustment factor required to obtain standard detector gain, a required high voltage adjustment to obtain standard detector gain, and detector temperature;
FIG. 8 is a more detailed view of a measured gamma ray spectrum illustrating how a spectral peak position is used to obtain a second order detector gain adjustment;
FIG. 9 is a graphical illustration of a method for locating statistically significant peak structure in a measured gamma ray spectrum;
FIG. 10 is a flow chart showing steps for automatically controlling the gain of a gamma ray detector using a measured spectral analysis method;
FIG. 11 illustrates basic concepts used for automatically controlling the gain of a gamma ray detector using a detector source gain control method;
FIG. 12 is a flow chart showing steps for automatically controlling the gain of a gamma ray detector using the detector source gain control method with separate standard and amplified spectrum data accumulation intervals;
FIG. 13 shows additional hardware components needed to obtain azimuthal natural gamma ray measurements using the LWD system;
FIG. 14 is an example of a spectral gamma ray LWD log showing concentrations of K, U and Th as a function of depth within a borehole;
FIG. 15 is an example of an azimuthal spectral gamma ray LWD log showing concentrations of K, U and Th as a function of azimuth around the borehole and as a function of depth within the borehole;
FIG. 16 is a functional diagram of major elements and components of the preferred spectral wireline system in which standard and amplified spectra are measured simultaneously; and
FIG. 17 is a flow chart showing steps for automatically controlling the gain of a gamma ray detector using the detector source gain control method where standard and amplified spectra data are accumulated simultaneously.



DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
Details of the preferred embodiments of the LWD spectral gamma ray logging system are presented in sections. System hardware is first disclosed. This is followed by disclosure of methodology used to monitor measured gamma ray spectra, and to stabilize the gain of these spectra as borehole temperature varies. Two gain stabilization methods are disclosed. With both, stabilization is accomplished in real time and without operator intervention. Once gain stabilization has been obtained, methods for determining elemental concentrations of naturally occurring K, U and Th are discussed. Finally, measures of total and azimuthal concentrations of K, U and Th are discussed, and “log” presentations of these measurements are illustrated.
The invention is directed toward the measure of gamma radiation that occurs naturally in earth formation. It should be understood, however, that the basic concepts of the invention are applicable for quantitative measurements of any type of gamma radiation wherein one or more gamma ray detectors are subject to gain shifts.
Hardware
FIG. 1 illustrates the LWD system 15 displayed as a whole. A downhole assembly or “tool” comprises a drill collar 10 that is attached to the lower end of a drill string 18. A drill bit 11 preferably terminates the lower end of the tool collar 10. Within the collar 10 are disposed a sensor element 12, an electronics element 14, and a downhole telemetry 16. The tool is conveyed along a well borehole 20, defined by borehole walls 21 and penetrating formation 22, by means of the drill string 18. The drill string 18 is operated from the surface 24 of the earth by rotary drilling rig, which is only illustrated conceptually at 26 since such rigs are well known in the art.
Information from the tool is telemetered to the surface of the earth 24 via a telemetry link (illustrated conceptually by the arrow 23) and received by a surface telemetry element (not shown) contained in surface equipment 28 that is operationally connected to the drilling rig 26. Information can also be transmitted from the surface equipment 28 to the tool via the telemetry link 23.
More details of the sensor element 12, the electronics element 14 and the downhole telemetry element 16 and their operating relationships are shown in the functional diagram of FIG. 2. The sensor element 12, illustrated conceptually as a broken line box, comprises at least one gamma ray detector comprising a scintillation crystal 30 and an optically coupled photomultiplier tube 32. Output signals from the photomultiplier tube are input to the electronics element, whose components are enclosed by the broken line box designated as 14. The signals are amplified using appropriate preamplification and amplification circuits 34. Amplified sensor signals are input to a processor 38. Voltage for the photomultiplier tube 32 is provided by an adjustable high voltage power supply 36 within the electronics element 14.
Still referring to FIG. 2, the processor 38 provides means for automatically controlling the gain of the at least one gamma ray detector, and is also used to process signals from the gamma ray detector to obtain elemental concentrations of K, U and Th. As mentioned previously, the tool is preferably calibrated at the surface to a “standard” gain. While logging, the temperature of the tool and elements therein change. Changes in temperature or, to a lesser extent, changes in measured gamma ray count rate result in detector gain change. Gain changes are reflected in the energy spectrum of the measured detector signals. Measured features of the spectrum are used to correct for these gain changes, as will be discussed in detail in subsequent sections of this disclosure. A gain correction signal representative of the magnitude of the gain change is generated by the processor 38 and input to the adjustable high voltage power supply 36 thereby adjusting detector high voltage so that the gain is restored to the “standard” gain. Elemental concentrations of K, U and Th are determined from gain corrected detector spectra in the processor 38 using predetermined relations as will be discussed subsequently. Elemental concentrations of K, U and Th are input to the downhole telemetry element 16 and telemetered, via the telemetry link 23, to the surface telemetry element contained in surface equipment 28. Alternately, elemental concentration of K, U and Th or “raw” count data can be stored in a recorder 39 for subsequent retrieval when the tool 10 is returned to the surface of the earth.
FIGS. 3a and 3b are cross sectional and side sectional views, respective, of the collar 10 in the region of the sensor element and depict a sensor element comprising one gamma ray detector. FIG. 3a shows the cross section A–A′ of the collar 10 with the axis of a drilling flow conduit 44 displaced from the axis of the collar. A detector channel on the periphery of the collar 10 and defined by the surfaces 40 receives the gamma ray detector comprising a scintillation crystal 30 such as NaI, CsI, BGO and the like. The scintillation crystal 30 is encapsulates in a hermetically sealed, light reflecting casing 42. The volume 46 is preferably filled with a material such RTV, epoxy and the like. The collar 10 is surrounded by a thin sleeve 48 in the region of the sensor element 12. FIG. 3b shows the side section B–B′ which includes the major axis of the collar 10. A photomultiplier tube 32 is optically coupled to the scintillation crystal 30. Electrical leads to the photomultiplier tube are not shown for purposes of clarity.
Again referring to both FIGS. 3a and 3b, it is apparent that the scintillation crystal 30 is disposed as close as practical to the periphery of the collar 10. This minimizes intervening material between the detector and the source of gamma radiation, which is earth formation penetrated by the borehole (not shown). By displacing the axis of the flow conduit 44, the diameter, and thus the efficiency, of the detector is maximized. For typical LWD equipment, the diameter of the scintillation crystal can be 2 inches (5.1 centimeters) or larger and still maintain structural specifications of the collar 10. As a result of this detector geometry, gamma ray spectral degradation is minimized and measured count rate is maximized for a given detector size.
FIG. 4 illustrates a sensor element comprising three gamma ray detectors. This cross section view shows the scintillation crystals 30 of each detector. Each crystal 30 is encapsulated in hermetically sealed, light reflecting casing 42, and is disposed in a detector channel defined by the surfaces 40. The channels are arranged at 120 degree angular spacings. The collar 10 is in the region of the sensor element and is again surrounded by a thin sleeve 48. A side section view has been omitted for brevity, but a photomultiplier tube (not shown) is again optically coupled to each scintillation crystal 30. As with the single detector sensor element shown in FIGS. 3a and 3b, it is apparent that the scintillation crystals 30 are disposed as close as practical to the periphery of the tool thereby minimizing intervening material between the detectors and the source of gamma radiation within the earth formation. Using the multiple detector configuration, the axis of the flow conduit 44 is coincident with the axis of the collar 10. For typical LWD equipment, the diameter of each scintillation crystal is limited to about 1.5 inches (3.8 centimeters) so that structural specifications of the collar can be maintained. Compared with the single scintillation crystal sensor element configuration shown in FIGS. 3a and 3b, the efficiency of each detector on FIG. 4 is reduced. Signals from each detector can, however, be combined to obtain a total sensor element efficiency that equals or exceeds the efficiency of the single detector configuration. In addition, the three detector sensor element configuration offers advantages in azimuthal spectral gamma ray measurements that will be discussed in a subsequent section of this disclosure.
It should be understood that the multiple detector sensor element configuration is not limited to the three detector configuration shown in FIG. 4. It should also be understood that angular spacing between the multiple detectors need not be equal. Finally, it should be understood that the dimensions of the multiple detectors need not be the same.
Gain Stabilization
Two methods of detector gain stabilization are disclosed. The first method will be referred to as the “measured spectral analysis” method, and the second method will be referred to as the “detector source” gain correction method. The gain of an LWD gamma ray detector can change significantly and rapidly in the harsh borehole drilling environment. Telemetry links between the tool and the surface are relatively slow and do not permit gain monitoring and correction from the surface. Gain control must be implemented automatically within the tool. Both of the disclosed methods can be used to effectively control gamma ray detector gain.
Considering the importance of gain control and the harshness of the borehole environment, it is desirable to use both methods. The two methods can be used with one serving as a primary method for gain control, and the second serving as a back-up method for gain control. Alternately, both methods can be used simultaneously, and the results combined to obtain a detector gain correction. Such a combination can take a variety of forms including a simple numerical average or a weighted average.
Measured Spectral Analysis Method
FIG. 5 is a typically natural gamma ray spectrum measured in earth formation with a scintillation type gamma ray detector. The spectrum comprises measured gamma ray intensity as a function of gamma ray energy, represented by the curve 50. The abscissa is gamma ray energy in million electron Volt (MeV), and the ordinate in the natural log of measured count rate per increment of energy. The increments of energy are represented energy channels or “channels” on the top scale abscissa. Representative peak structure from K, U and Th is shown at energies 1.46 MeV, 1.76 MeV and 2.61 MeV, respectively. During tool calibration, the detector high voltage is adjusted to give a detector gain for which specific energies of gamma radiation fall within predetermined energy channels. This gain is referred to as the “standard” gain. Tool calibration will be discussed further in a subsequent section of this disclosure.
The Compton scatter region of the spectrum comprises formation gamma radiation that has undergone several collisions in intervening material before it reaches the gamma ray detector. This region of the spectrum is identified by the numeral 52, and terminates at the low energy region by the “hump” 54 at energy 56. This exponential-looking region 52 is a “down-scatter” continuum region of the spectrum that contains no direct contributions from K, U, and Th peak structure. The Compton scatter region 52 is, therefore independent of relative concentrations of K, Th and U. The slope of this region is mainly a function of the photomultiplier tube gain, and can be used to monitor detector gain.
FIG. 6 is a plot of the measures of the slope of the Compton region 52 as a function of detector temperature in degrees Centigrade (° C.). Measured values of slope (ordinate) versus temperature (abscissa) are indicated by the data points 62. A curve 60 fitted through the data points 62 shows that there is essentially 1:1 correlation between the slope and detector temperature.
Curve 66 of FIG. 7 shows the relationship between a multiplicative first order gain adjustment factor F1 and corresponding detector temperature, where

Gstd=F1Gobs.  (1)

Gobs is the observed detector gain, and Gstd is the previously defined “standard” gain for which the tool is calibrated. Relationships of slope versus temperature shown graphically as curve 60 on FIG. 6 can be combined with gain adjustment factor as a function of temperature shown graphically as curve 66 in FIG. 7 to eliminate the temperature parameter. This combination yields a functional relationship between the measured slope and the desired first order gain adjustment factor F1. Stated mathematically, F1=fa(slope) where fa(slope) is a function of the measured slope.

At this point, detector high voltage can be adjusted to correct detector gain for temperature effects. Curve 68 of FIG. 7 shows the relationship between required high voltage adjustment to obtain Gstd and detector temperature. Once F1 has been obtained as described above, the high voltage V1 required to obtain Gstd can then be determined. The following example is presented as a graphical solution. Assume that from a measure of the Compton slope, it has been determined that F1=1.1 as indicated in FIG. 7 at 70. A horizontal line is projected until it intersects the curve 66 at a point 71. A vertical line is projected until it intersects the curve 68 at point 72. Finally, a horizontal line is projected to the right ordinate at point 73 giving a required high voltage correction of +10 volts. Stated mathematically, V1=fb(F1) where fb(F1) is a function of F1, which in turn is related to the measured slope via F1=fa(slope) as stated above. Referring again to FIG. 2, 10 volts added to the photomultiplier tube 32 by the adjustable high voltage power supply will adjust the gain of the gamma ray detector to the standard gain Gstd.
To summarize, the relationships shown graphically in FIG. 6 and FIG. 7 are combined to develop a relationship between measured slope in the Compton region as a function of high voltage required to maintain standard detector gain. The example discussed above is graphical, but it should be understood that the solution can be reduced to analytical form suitable for computation in a processor. A measure of slope can, therefore, be used to correct for detector gain shifts. Using this slope to predict gain changes is extremely robust since it is calculated from a number of data points, it is immune to electronics noise, and it has been found that is not highly affected by borehole and formation conditions. A first order detector gain correction can be made for the most severe gain changes ranging from about −60% of the standard gain to +150% of the standard gain. Such severe gain changes are induced by equally severe changes in temperature ranging from about −60° C. to about +150° C., with 25° C. being the “standard” calibration temperature.
As discussed above, a measure of slope can be used to obtain a voltage adjustment required to obtain standard gain. This is a first order correction considering the magnitude of gain changes that can be handled. Second and third order corrections are made to further increase precision and accuracy of the detector gain settings. Because of these additional corrections, it is preferred not to adjust detector voltage after the first order gain correction. Instead, the spectrum is adjusted by adjusting the count rate per energy channel using the first order gain correction factor F1. Using the previous example of F1=1.1, the width of each channel is “stretched” by 10 percent, and the measured count rates are redistributed over the wider channels. This methodology can be thought of a “software” gain shift, and is preferably performed in processor 38. The detector gain adjustment is now further refined by examining a predominate peak in this modified energy spectrum. FIG. 8 shows a portion of the full spectrum 50 shown in FIG. 5, and includes a peak 80 at 1.46 MeV from K. This peak is typically the most prominent peak in the spectrum, and is suitable for the second order gain adjustment. After modifying the spectrum using methodology previously discussed, it is observed that the maximum of the peak 80 falls in a channel Chobs at 78. Tool calibration requires that the energy corresponding to this peak maxima fall in a modified channel Chstd at 76, where the channels have been adjusted in width by the first order correction F1. The gain of the detector is further adjusted to a second order correction so that the maxima of the peak 80 falls in Chstd. This is again accomplished with a “software” gain shift by adjusting the widths of the energy channels and redistributing the measured count rates to form a second modified spectrum. A second order gain correction F2 is obtained from the equation

F2=(Chstd/Chobs).  (2a)

The gain correction process can be terminated at this point, with no further refinement of the gain setting. If this option is chosen, the corresponding high voltage setting V2 required to obtain this second order corrected standard gain and is expressed mathematically as

V2=F2V1  (2b)

Peaks in measured gamma ray spectra such as the curve 50 shown in FIG. 5 are identified with respect to channel (and corresponding energy) using a second derivative algorithm after a strong filter is applied. Locations of the peaks are determined using a Guassian fit around each peak. FIG. 9 illustrates the effectiveness of the detection and location method. Curve 86 represents the second derivative d2C/dCh2 (right ordinate) of spectral count rate C as a function of corresponding energy channel Ch for a spectrum of the type shown in FIG. 5. Peaks are indicated when the curve 86 crosses d2C/dCh2=0. Since the spectrum exhibits statistical variations, the curve can also exhibit a “zero crossing” due to statistics of the count rate rather than actual peak structure. It is, therefore, necessary to identify a non-statistical or “noise” zero crossings from a true zero crossing which indicate a peak. The curves 82 and 84 represent upper and lower limits of standard deviation of the count rate C as a function of energy channel, and are presented in arbitrary count rate units of the left ordinate. Only zero crossing excursions that extend outside the standard deviation “envelope” are considered as statistically significant indications of a peak. There is only one such indication in the curve 86 at a channel identified by the numeral 88. This corresponds to the K peak at 1.46 MeV shown clearly in FIG. 5.
It is preferred to still further refine the gain setting. Once the second modified energy spectrum has been computed, all statistically significant peaks in the second modified spectrum are located using the peak location technique discussed above. Once the energy channels in which these peaks are observed, they are compared with their corresponding “standard” channels determined in tool calibration. This methodology is similar to the single-peak methodology used for the second order gain correction, but all peaks are used in this third order correction. Channel widths are again adjusted and count rates redistributed so that all identifiable peaks fall in their corresponding standard energy channels, corrected for the first and second order software gain adjustments. This is the third order gain correction and yields a third order gain adjustment factor F3. The uncorrected detector voltage V is now adjusted to obtain a corrected voltage Vcor using the relationship

Vcor=F1F2F3V.  (3a)

The corrected detector gain Gcor is

Gcor=HVcor  (3b)

where H is a multiplicative constant relating the third order corrected high voltage Vcor to the fully corrected detector gain Gcor. Channel widths are reset to their original values.

The measured spectral analysis method of automatic gain correction is summarized in the flow chart shown in FIG. 10. The slope of the Compton region 52 (see FIG. 5) is measured at 90. The first order gain correction F1 is determined at 92 using the measured slope as discussed above. An identifiable peak is located in the measured spectrum at 94. The second order gain correction F2 is determined at 96 using previously discussed methodology and equation (2a). All statistically significant peaks in the measured gamma ray spectrum are determined at 98. The third order gain correction factor F3 is obtained at 100 by a software gain adjustment that positions all peaks in alignment with their assigned energy channels obtained at tool calibration. The corresponding high voltage Vcor required for standard detector gain is also determined at 100 using equation (3a). The corrected detector gain Gcor is set at 102 using V3 and equation (3b). It again noted that an actual voltage adjustment is made only after the third order correction, with software gain adjustments being used in the first and second order corrections. It should also be understood that other algorithms can be used to obtain suitable software gain adjustments for the first and second order corrections.
Once again, it is emphasized that the invention is not limited to natural gamma ray logging. The invention can be used to automatically monitor and correct the gain of any gamma ray spectrum in which the Compton scatter continuum region 52 is independent of relative components of the composite gamma ray spectrum. Applications include a wide variety of LWD and wireline systems and non-borehole systems as recited previously.
Detector Source Gain Correction Method
Gamma ray detector gain can be monitored using an alternate technique. A small radioactive “detector” source is disposed near or within the one or more scintillation crystals comprising the natural gamma ray LWD sensor element. The detector source generates a “calibration” peak in the measured gamma ray spectrum. If the gain of the measured spectrum changes, the position of the calibration peak shifts with the change in gain. A measure of position of the calibration peak can, therefore, be used to monitor and to correct detector gain.
The calibration peak is preferably at a relatively low energy so that it will not interfere with higher energy radiation from K, U and Th used to determine elemental concentrations. A suitable detector source is Americium-241 (241Am) which emits gamma radiation at 0.060 MeV. Referring again to FIG. 5, a typical measured natural gamma ray spectrum encompasses an energy range of 0.0 to 3.0 MeV over typically 256 channels. With this “standard” detector gain setting, the low energy end of the spectrum, which includes the 0.060 MeV calibration peak, is very susceptible to electronics noise. In addition, since the spectrum spreads over about 3.0 MeV and typically 256 energy channels, the 241Am peak occupies only about 3 out the 256 channels, which makes it difficult to precisely locate the peak position.
Attention is directed to FIG. 11, which conceptually depicts the low energy region of a gamma ray spectrum measured with a detector comprising a 241Am detector source. The curve 110 shows the peak structure with the detector set at standard gain. Since the peak occupies only three energy channels, it is difficult to locate the center of the peak using previously discussed methods. This peak can, in principle, be used as shown to stabilize detector gain. Any gain stabilization using the 241Am peak at 0.060 MeV would, therefore, be subject to large errors, especially at the higher energy region of the spectrum used for elemental concentration calculations.
The precision of detector gain stabilization using a low energy detector source and calibration peak is improved by varying the gain of the amplification circuits 34 (see FIG. 2). The amplification circuits 34 are operated at a “standard” amplification, which generates a spectrum with a standard gain. The 0.060 MeV 241Am peak in this standard spectrum is shown at 110 in FIG. 11. For purposes of gain stabilization, the spectrum signal is amplified with a gain factor of N greater than that of the standard gain. This generates an amplified spectrum with an “amplified” gain. For purposes of discussion, it will be assumed that N=10, although it should be understood that other values of N can be used. Curve 112 is the amplified gain spectrum showing the 241Am peak at 0.060 MeV amplified by a factor of N=10. The peak now occupies about 30 energy channels, and previously discussed peak location methods are used to determine that the center of the peak is in energy channel Pobs, which identified at 114. From tool calibration, it is known that energy 0.060 MeV should fall in energy channel Pstd for the standard gain, or in channel N×Pstd for the amplified gain, shown at 116 in FIG. 11. The detector high voltage V is adjusted to a corrected value, Vcor, using the relationship

Vcor=V(N Pstd/Pobs).  (4)

A signal proportional to (N Pstd/Pobs) is preferably generated in the processor 38 and input to the adjustable high voltage power supply 36. This generates the corrected high voltage Vcor supplied to the detector. Corrected standard gain amplification Gcor is expressed by the relationship

Gcor=H Vcor  (5)

where H, as in equation (3), is a multiplicative constant relating high voltage to detector gain.

It should be understood that various methods can be used to increase the detector gain by a factor of N. As an example, the amplification circuits 34 (see FIG. 2) can be operated sequentially at the standard gain for a first time interval and an amplified gain for a second time interval. The gain is increased by a predetermined factor of N by cooperation between the processor 38 and the adjustable high voltage power supply 36. The first and second time intervals are controlled by a clock which, as previously mention, is preferably contained within the processor 38. Embodied as a LWD spectral gamma ray system, the first time interval is preferably of the order of 180 seconds, and the second time interval is of the order of 10 seconds. It should be understood that different first and second time intervals can be selected to maximize system response as a function of drilling speed, intensity of the measured gamma ray spectra, strength of the calibration source, and other operational and borehole factors. Count rate data from which parameters of interest are collected at the standard spectral gain during the first time interval. The second time interval is used solely to determine the position of the expanded calibration peak at the amplified gain, and to subsequently correct the standard gain based upon this determination. Regarding collecting count rate data to determine formation parameters of interest, the system is “dead” for 10 seconds of the 190 second count cycle.
This method for gain stabilization method using a radioactive “detector” source is summarized in the flow chart of FIG. 12. The low energy portion of the measured gamma ray spectrum is increased by a factor of N thereby forming an “amplified” gain spectrum during the second time interval at step 120. The energy channel Pobs, in which the stabilization peak is maximum, is determined at step 122 using a suitable peak location technique. High voltage Vcor required to position the peak maximum in energy channel N×Pstd is determined (see equation (4)) at step 124, and the correct detector gain Gcor is set at step 126 (see equation (5)) for the “standard” spectrum collected during the first time interval.
LWD tools are typically conveyed along the well borehole at a much slower rate than their wireline counterparts. For the slower moving LWD systems, little axial and azimuthal data are lost with 10 seconds of “dead” time out of the 190 second count cycle used in the above example. For the faster moving wireline tools, the methods and apparatus of the previous embodiment can be used. Significant axial data will, however, be lost during the dead time period. For wireline embodiments, it is highly desirable to eliminate dead time by measuring both standard and amplified spectra simultaneously and continuously.
A system comprising the sensor element 12, the electronics element 17, and the downhole telemetry element 16 designed for optimal response in a wireline tool is shown in FIG. 16. As in FIG. 2, the sensor element 12 comprises at least one gamma ray detector comprising a scintillation crystal 30 and an optically coupled photomultiplier tube 32. Output signals from the photomultiplier tube are input to the electronics element, whose components are enclosed by the broken line box designated as 17. The signals are again amplified using appropriate preamplification and amplification circuits 34. Output from the amplification circuits 34 is “branched”, with one branch being input into a “standard” ADCS 35 which yields a digital spectrum with “standard” gain. The second branch is input to an “amplification” ADCA which yields a digital spectrum amplified by the factor N thereby forming the amplified calibration peak 112 as shown in FIG. 11. As described previously in great detail, the position of the amplified calibration peak is determined and used to subsequently determine the appropriate gain corrections for the “standard” spectrum.
As in the previously discussed system shown in FIG. 2, the processor 38 provides means for automatically controlling the gain of the at least one gamma ray detector, and is also used to process signals from the gamma ray detector. Embodied as a spectral natural gamma ray wireline system, the processor is used to obtain elemental concentrations of K, U and Th. More specifically, elemental concentrations of K, U and Th are determined from gain corrected “standard” spectra in the processor 38 using predetermined relations as will be discussed subsequently. Elemental concentrations of K, U and Th are input to the downhole telemetry element 16 and telemetered, via the wireline link 23, to the surface telemetry element contained in surface equipment 28.
Using the apparatus shown in FIG. 16, there is no gamma ray detector system “dead” time. Both standard and amplified spectra are measured simultaneously and continuously. This means that no axial data are lost as the tool is conveyed axially along the well borehole, which is advantageous when the system is embodied for wireline operations. The apparatus shown in FIG. 16 can, however, also be used in LWD tools and in non-borehole embodiments recited previously.
In any spectral measurement, it is desirable to obtain a sufficient number of counts to achieve statistically significant peak structure. With the system embodied as shown in FIG. 2 and discussed previously as a LWD embodiment, only a fraction of the total count time is devoted to obtaining an amplifies calibration peak. Using the previously discussed example, only 10 seconds in a 190 second count cycle is used to measure the amplified calibration peak 112 (see FIG. 11). In order to obtain a statistically significant amplified calibration peak in approximately five percent of the total count time, a relatively intense calibration source must be used. This intense source in the immediate vicinity of the sensor element 12 can cause problems, such as pulse pileup, while the standard spectrum is being measured for parametric determinations. With the system embodied as shown in FIG. 17, both amplified and standard spectra are measured simultaneously and continuously. A significantly less intense calibration source can, therefore, be used to obtain the same calibration peak statistical significance thereby minimizing adverse effects of the calibration source in the measure of the standard spectrum.
As discussed above, it is advantageous to measure standard and amplified spectra simultaneously and continuously, especially when the system is embodied for wireline applications. FIG. 16 illustrates one embodiment of the electronics element 17 that will achieve these desired results. It should be understood that alternate embodiments of the electronics element 17 can be used to obtain simultaneous and continuous spectral measurements. As an example, output from the photomultiplier tube 32 of the sensor element 12 can be “branched” into a first amplifier with standard gain, and simultaneously “branched” into a second amplifier with a gain increased by a factor of N. Outputs of the amplifiers can be multiplexed into a single ADC, and the resulting standard and amplified spectra deconvolved in the processor 38.
The method for gain stabilization using simultaneous measurements of standard and amplified spectra is summarized in the flow chart of FIG. 17. Signals from the sensor element 12 are preamplified and amplified at step 180. Amplified signals are simultaneously converted to standard spectra and amplified spectra at steps 182 and 184, respectfully. Standard and amplified spectra are compared at step 186 to obtain the energy channel Pobs, again using a suitable peak location technique. High voltage Vcor required to position the peak maximum in energy channel N×Pstd is determined (see equation (4)) at step 188, and the correct detector gain Gcor is set at step 190 (see equation (5)) for the standard spectrum.
Hybrid Correction Method
The measured spectral analysis method and the detector source gain correction methods can be combined to yield a hybrid gain control method. A calibration source is disposed in within or in the immediate vicinity of at least one gamma ray detector. When in the borehole, this detector produces a gamma ray spectrum comprising a first component from naturally occurring radioactive elements within the formation and a second component from the calibration source. A first detector gain correction is determined from spectral features from the naturally occurring gamma radiation as previously discussed in the measured spectral analysis method. A second gain correction is determined from the calibration source component as previously discussed in the detector source gain correction methods. The first and second gain corrections are combined to correct for gain shift of the detector.
Elemental Concentration Determinations
With detector gain stabilized to “standard” gain, elemental concentrations of K, U and Th are determined, preferably in the processor 38 of the electronics element 14 (see FIGS. 1 and 2), from measured spectral data. These elemental concentrations can be input to the downhole telemetry element 16 and telemetered via the telemetry link 23 to the surface equipment 28. Alternately, the spectral data can be input to the downhole telemetry element 16 and telemetered to the surface equipment 28 for subsequent processing. Since the telemetry bandwidth is limited and the gamma ray spectra are much more data intensive than the elemental concentrations determined therefrom, it is preferred to telemeter the elemental concentrations of K, U and Th to the surface. Alternately, spectral gamma ray data and elemental concentration determinations can be recorded by a data storage means within the electronics element, and subsequently extracted from processing and analysis when the tool is returned to the surface.
The following methodology is preferred for determining elemental concentrations of K, U and Th. It should be understood, however, that other spectral processing methods such as spectrum stripping, peak area analysis and the like can be used to determine concentrations of K, U and Th. The required elemental concentration calibration constants are obtained at tool calibration.
Elemental concentrations are obtained by solving the matrix equation

[C]=[A][M].  (6)

[C] is a m×1 column matrix comprising elements ci (i=1, . . . , m) representing count rate recorded in energy channel i (see FIG. 5). Typically 256 energy channels (m=256) are used, although more or fewer channels can be used within the scope of the invention.
[A] is a m×j matrix comprising elements aij with (i=1, . . . , m) and =K, U, Th). Physically, the element aij is the sensitivity of energy channel i to the element j, typically in units of counts per second per part per million (U and Th) or counts per second per percent (K). The matrix [A] comprises calibration constants, is referred to as a “sensitivity” matrix, and is determined at tool calibration. At tool calibration, the response of the tool is measured in formations containing known concentrations of K, U and Th, and in “standard” borehole conditions, and with the one or more detectors in the sensor element operated at “standard” gain Gcor.
[M] is a j×1 column matrix comprising elements Mj (j=K, U, Th) which are the parameters of interest, namely the formation elemental concentrations of K, U and Th. MK is in percent, and MU and MTh in parts per million (ppm). The desired elemental concentrations are obtained by solving equation (6) for [M], preferably using a weighted least squares fit.
Measured gamma ray spectra from one or more gamma ray detectors in the sensor section are tracked as a function of depth of the tool in the borehole 20 (see FIG. 1). If the sensor element 12 comprises only one gamma ray detector as shown in FIGS. 3a and 3b, the elements of the matrix [C] are obtained from that detector. If the sensor element comprised a plurality q of detectors, such as the q=3 embodiment shown in FIG. 4, the elements of the [C] matrix are obtained by combining responses of the q detectors, typically by simply summing the responses if all detectors exhibit equal sensitivity.
Azimuthal Elemental Concentration Determinations
The spectral gamma ray LWD system can be used to measure elemental concentrations MK, MU and MTh as a function of azimuth within the borehole as well as a function of depth within the borehole. Azimuthal measurements require additional components disposed preferably within the electronics element 14. FIG. 13 is a functional diagram of components added to the electronics element shown in FIG. 2 so that azimuthal elemental concentrations MK, MU and MTh can be determined. A device sensing tool orientation, such as a magnetometer 130, and a clock 132 are operationally connected to the processor 38. As in the previous discussion of FIG. 2, signals from the one or more gamma ray detectors and amplifier circuits are input to the processor at 136. The processor 38 again controls detector gain adjustments of the detectors at 138 through the adjustable high voltage power supply 36. Spectral and elemental concentrations are output from the processor at 134 as described below.
As the tool rotates through 360 degrees, gamma ray spectra of the form shown in FIG. 5 are measured during discrete time intervals Δt, where these elements are defined by the clock 132 cooperating with the processor 38. Spectra are stored in bins according to time intervals Δt in which they are measured. The time interval Δt is preferably about 50 milliseconds. During each time interval, the average reading of the magnetometer 130 is determined thereby defining an azimuth sector associated with each time interval, and thereby assigned an azimuth sector to each bin. Each bin, therefore, contains a gamma ray spectrum measured at a known borehole azimuth sector. The spectral data binning, and the averaging of magnetometer readings during each time interval, are controlled by the processor 38. Binned spectral data and corresponding azimuth sectors are preferably stored in the processor 38. The process is repeated through multiple 360 degree rotations within a given depth interval Δd in order to maximize statistical precision of each natural gamma ray spectrum stored in each bin. Gain stabilization techniques previously disclosed in detail are used to control the gain of each binned spectrum. Previously discussed data analysis methods are used to compute the matrix [M] for each binned spectrum thereby yielding elemental concentrations MK, MU and MTh for each azimuth sector around the borehole.
If the sensor element comprises a plurality of detectors, detector outputs are phased by the processor 38 so that as each detector rotates through each azimuth sector, output from that detector is stored within the bin corresponding to that azimuth sector.
The tool can be conveyed along the borehole without rotating. This conveyance is commonly referred to as “sliding”. If the sensor element 12 comprises only one gamma ray detector, azimuthal natural gamma ray spectral measurements can not be made when the tool is sliding. If the sensor element comprises a plurality of gamma ray detectors, azimuthal spectral measurements can be obtained while sliding. The magnitudes of the azimuth sectors are determined by the number of detectors in the sensor element. For the sensor element comprising three detectors on 120 degree centers as shown in FIG. 4, each azimuth sector would be 120 degrees. This yields an azimuthal resolution that is typically inferior to that obtained with the tool rotating and with time intervals Δt of about 50 milliseconds.
Log Presentations
FIG. 14 shows an example 140 of a natural gamma ray LWD log presentation of MK, MU and MTh as a function of depth in the borehole. The quantities MK, MU and MTh are computed from measured spectral data [C] using equation (6). Units for concentrations of K (%), U (ppm) and Th (ppm) are shown in the fields 141, 143 and 145, respectively. Scales are typically in % per chart division for K and ppm per chart division for U and Th. Concentrations of MK, MU and MTh are shown as a function of depth 148 in the borehole by curves 142, 144 and 146, respectively. As an example, excursions 147 and 149 in MK and MU, respectively, are indicated at a depth of about xx20. An excursion 159 in MTh is indicated at a depth of about xx40. It should be understood that other formats can be used to present the basic LWD natural gamma ray log data.
FIG. 15 shows an example 150 of an azimuthal natural gamma ray LWD log presentation. Elemental concentrations of MK (%), MU (ppm) and MTh (ppm) are designated with solid, long dashed and short dashed curves 164, 162, and 160, respectively, as shown in field 151. Corresponding scales for these concentrations are tabulated in field 150 and are typically in % per chart division for MK and ppm per chart division for MU and MTh. Concentrations MK, MU and MTh, obtained from spectra summed over a depth interval Δd shown in the field 153, are shown as a function of azimuth sector 152, in degrees, for that depth interval. As an example, excursions 156 and 154 in MK and MU, respectively, are shown at an azimuth sector of about 180 degrees over the depth interval xx20. As another example, an excursion 158 in MTh is shown at an azimuth sector of about 225 degrees over the depth interval xx40. It should be understood that other formats can be used to present the basic LWD azimuthal natural gamma ray log data.
While the foregoing disclosure is directed toward the preferred embodiments of the invention, the scope of the invention is defined by the claims, which follow.

## Claims

1. A system for measuring gamma radiation, the system comprising:
(a) at least one gamma ray detector that measures a gamma ray energy spectrum;
(b) a calibration source disposed near or within said at least one detector and emitting calibration radiation; and
(c) a processor cooperating with said at least one gamma ray detector; wherein
(d) said system is operated at a standard detector gain producing a standard spectrum and at an amplified detector gain producing an amplified spectrum;
(e) in said amplified spectrum, an observed position of a calibration peak generated by said calibration source is compared within said processor with a predetermined standard position for said calibration peak; and
(f) result of said comparison is used to correct said standard spectrum to a standard detector gain.

2. The system of claim 1 further comprising:
(a) a standard ADC which receives an analog signal from said at least one gamma ray detector and outputs standard digitized data into said processor;
(b) an amplification ADC which simultaneously receives said analog signal from said at least one gamma ray detector and outputs amplified digitized data into said processor; and
(c) an adjustable high voltage power supply cooperating with said processor and said at least one gamma ray detector; wherein
(i) said standard digitized data are processed in said processor thereby forming said standard spectrum,
(ii) said amplified digitized data are processed in said processor thereby forming said amplified spectrum,
(iii) said standard spectrum and said amplified spectrum are formed simultaneously and continuously,
(iv) said processor generates a calibration signal indicative of said comparison and inputs the said calibration signal to said adjustable high voltage power supply, and
(v) high voltage supplied to said at least one detector by said adjustable high voltage power supply is adjusted in relation to said calibration signal thereby correcting said standard spectrum to said standard detector gain.

3. The system of claim 2 further comprising a borehole logging tool; wherein
(a) said at least one gamma ray detector, said calibration source, said processor, said standard ADC, said amplification ADC, and said adjustable high voltage power supply are disposed within said borehole logging tool; and
(b) said borehole logging tool is conveyed along a borehole with a wireline.

4. The system of claim 1 further comprising:
(a) amplification circuits which receive a signal from said at least one gamma ray detector and output an amplified signal into said processor; and
(b) an adjustable high voltage power supply cooperating with said processor and said at least one gamma ray detector; wherein
(i) under the control of said processor, said adjustable high voltage power supply is set to said standard detector gain thereby forming said standard spectrum over a first time interval,
(ii) under the control of said processor, said adjustable high voltage power supply is set to said amplified detector gain thereby forming said amplified spectrum over a second time interval,
(iii) said processor generates a calibration signal indicative of said comparison and inputs the said calibration signal to said adjustable high voltage power supply, and
(v) high voltage supplied to said at least one detector by said adjustable high voltage power supply is adjusted in relation to said calibration signal thereby correcting said standard spectrum to said standard detector gain.

5. The system of claim 4 further comprising a borehole logging tool; wherein
(a) said at least one gamma ray detector, said calibration source, said processor, said amplification circuits, and said adjustable high voltage power supply are disposed within said borehole logging tool; and
(b) said borehole logging tool is conveyed along a borehole with a drill string.

6. A system for measuring gamma radiation, the system comprising:
(a) at least one gamma ray detector; and
(b) a calibration source in the vicinity of said at least one gamma ray detector; wherein
(c) said gamma ray detector measures, at a standard detector gain, a gamma ray spectrum comprising a first component representative of a parameter of interest and measures, at an amplified detector gain, a second component from said calibration source;
(d) a first detector gain correction is determined from features of said first component;
(e) a second detector gain correction is determined from said second component; and
(f) said first and said second gain corrections are combined to maintain said standard detector gain.

7. The system of claim 6 further comprising:
(a) a processor;
(b) a standard ADC which receives an analog signal from said at least one gamma ray detector and outputs standard digitized data into said processor;
(c) an amplification ADC which receives said analog signal from said at least one gamma ray detector and outputs amplified digitized data into said processor; and
(d) an adjustable high voltage power supply cooperating with said processor and said at least one gamma ray detector; wherein
(i) said standard digitized data are processed in said processor thereby forming a standard spectrum,
(ii) said amplified digitized data are processed in said processor thereby forming an amplified spectrum,
(iii) said standard spectrum and said amplified spectrum are formed simultaneously and continuously,
(iv) in said amplified spectrum, an observed position of a calibration peak generated by said calibration source is compared within said processor with a predetermined standard position for said calibration peak;
(v) said processor generates a calibration signal indicative of said comparison and inputs the said calibration signal to said adjustable high voltage power supply, and
(vi) high voltage supplied to said at least one detector by said adjustable high voltage power supply is adjusted in relation to said calibration signal thereby forming said second gain correction.

8. The system of claim 7 further comprising a borehole logging tool; wherein
(a) said at least one gamma ray detector, said calibration source, said processor, said standard ADC, said amplification ADC, and said adjustable high voltage power supply are disposed within said borehole logging tool; and
(b) said borehole logging tool is conveyed along a borehole with a wireline.

9. The system of claim 6 further comprising:
(a) amplification circuits which receive a signal from said at least one gamma ray detector and output an amplified signal into said processor; and
(b) an adjustable high voltage power supply cooperating with a processor and said at least one gamma ray detector; wherein
(i) under the control of said processor, said adjustable high voltage power supply is set to said standard detector gain thereby forming said standard spectrum over a first time interval,
(ii) under the control of said processor, said adjustable high voltage power supply is set to said amplified detector gain thereby forming said amplified spectrum over a second time interval,
(iii) in said amplified spectrum, an observed position of a calibration peak generated by said calibration source is compared within said processor with a predetermined standard position for said calibration peak;
(iv) said processor generates a calibration signal indicative of said comparison and inputs the said calibration signal to said adjustable high voltage power supply, and
(v) high voltage supplied to said at least one detector by said adjustable high voltage power supply is adjusted in relation to said calibration signal thereby forming said second gain correction.

10. The system of claim 9 further comprising a borehole logging tool; wherein
(a) said at least one gamma ray detector, said calibration source, said processor, said amplification circuits, and said adjustable high voltage power supply are disposed within said borehole logging tool; and
(b) said borehole logging tool is conveyed along a borehole with a drill string.

11. A method for measuring gamma radiation, the method comprising:
(a) providing at least one gamma ray detector that measures a gamma ray energy spectrum;
(b) disposing a calibration source near or within said at least one detector;
(c) providing a processor that cooperates with said at least one gamma ray detector;
(d) operating said system at a standard detector gain producing a standard spectrum and at an amplified detector gain producing an amplified spectrum;
(e) in said amplified spectrum, comparing an observed position of a calibration peak, generated by said calibration source, within said processor with a predetermined standard position for said calibration peak; and
(f) using result of said comparison to correct said standard spectrum to a standard detector gain.

12. The method of claim 11 further comprising:
(a) providing a standard ADC which receives an analog signal from said at least one gamma ray detector and outputs standard digitized data into said processor;
(b) providing an amplification ADC which receives said analog signal from said at least one gamma ray detector and outputs amplified digitized data into said processor;
(c) providing an adjustable high voltage power supply cooperating with said processor and said at least one gamma ray detector;
(d) processing said standard digitized data in said processor thereby forming said standard spectrum;
(e) processing said amplified digitized data in said processor thereby forming said amplified spectrum;
(f) forming said standard spectrum and said amplified spectrum simultaneously and continuously;
(g) generating in said processor a calibration signal indicative of said comparison and inputting said calibration signal to said adjustable high voltage power supply; and
(h) adjusting high voltage supplied to said at least one detector by said adjustable high voltage power supply in relation to said calibration signal thereby correcting said standard spectrum to said standard detector gain.

13. The method of claim 12 further comprising:
(a) providing a borehole logging tool;
(b) disposing said at least one gamma ray detector, said calibration source, said processor, said standard ADC, said amplification ADC, and said adjustable high voltage power supply within said borehole logging tool; and
(c) conveying said borehole logging tool is conveyed along a borehole with a wireline.

14. The method of claim 11 further comprising:
(a) providing amplification circuits that receive a signal from said at least one gamma ray detector and output an amplified signal into said processor;
(b) providing an adjustable high voltage power supply cooperating with said processor and said at least one gamma ray detector;
(c) under the control of said processor, setting said adjustable high voltage power supply to said standard detector gain thereby forming said standard spectrum over a first time interval;
(d) under the control of said processor, setting said adjustable high voltage power supply to said amplified detector gain thereby forming said amplified spectrum over a second time interval;
(e) generating with said processor a calibration signal indicative of said comparison and inputting said calibration signal to said adjustable high voltage power supply; and
(f) adjusting high voltage supplied to said at least one detector by said adjustable high voltage power supply in relation to said calibration signal thereby correcting said standard spectrum to said standard detector gain.

15. The method of claim 14 further comprising:
(a) providing a borehole logging tool;
(b) disposing said at least one gamma ray detector, said calibration source, said processor, said amplification circuits, and said adjustable high voltage power supply within said borehole logging tool; and
(c) conveying said borehole logging tool along a borehole with a drill string.

16. The method of claim 11 wherein said standard spectrum comprises peak structure of gamma radiation from naturally occurring radioactive elements in earth formation.

17. The method of claim 11 wherein said standard spectrum comprises peak structure from gamma radiation induced in earth formation.

18. A method for measuring gamma radiation, the method comprising:
(a) providing at least one gamma ray detector;
(b) providing a calibration source in the vicinity of said at least one gamma ray detector;
(c) measuring with said gamma ray detector, at a standard detector gain, a gamma ray spectrum comprising a first component representative of a parameter of interest and measuring, at an amplified detector gain, a second component from said calibration source;
(d) determining a first detector gain correction from features of said first component;
(e) determining a second detector gain correction from said second component; and
(f) combining said first and said second gain corrections to maintain gain of said system at said standard detector gain.

19. The method of claim 18 further comprising:
(a) providing a processor;
(b) providing a standard ADC which receives an analog signal from said at least one gamma ray detector and outputs standard digitized data into said processor;
(c) providing an amplification ADC which receives said analog signal from said at least one gamma ray detector and outputs amplified digitized data into said processor;
(d) providing an adjustable high voltage power supply cooperating with said processor and said at least one gamma ray detector;
(e) processing said standard digitized data in said processor thereby forming a standard spectrum;
(f) processing said amplified digitized data in said processor thereby forming an amplified spectrum;
(g) forming said standard spectrum and said amplified spectrum simultaneously and continuously;
(h) comparing within said processor, an observed position of a calibration peak generated by said calibration source in said amplified spectrum with a predetermined standard position for said calibration peak;
(i) within said processor generating a calibration signal indicative of said comparison and inputting said calibration signal to said adjustable high voltage power supply; and
(j) adjusting high voltage supplied to said at least one detector by said adjustable high voltage power supply in relation to said calibration signal thereby forming said second gain correction.

20. The method of claim 19 further comprising:
(a) providing a borehole logging tool;
(b) disposing said at least one gamma ray detector, said calibration source, said processor, said standard ADC, said amplification ADC, and said adjustable high voltage power supply within said borehole logging tool; and
(c) conveying said borehole logging tool along a borehole with a wireline.

21. The method of claim 18 further comprising:
(a) providing amplification circuits that receive a signal from said at least one gamma ray detector and output an amplified signal into said processor;
(b) providing an adjustable high voltage power supply cooperating with a processor and said at least one gamma ray detector;
(c) under the control of said processor, setting said adjustable high voltage power supply to said standard detector gain thereby forming said standard spectrum over a first time interval;
(d) under the control of said processor, setting said adjustable high voltage power supply to said amplified detector gain thereby forming said amplified spectrum over a second time interval;
(e) comparing within said processor, an observed position of a calibration peak generated by said calibration source in said amplified spectrum with a predetermined standard position for said calibration peak;
(f) within said processor generating a calibration signal indicative of said comparison and inputting said calibration signal to said adjustable high voltage power supply; and
(g) adjusting high voltage supplied to said at least one detector by said adjustable high voltage power supply in relation to said calibration signal thereby forming said second gain correction.

22. The method of claim 21 further comprising:
(a) providing a borehole logging tool;
(b) disposing said at least one gamma ray detector, said calibration source, said processor, said amplification circuits, and said adjustable high voltage power supply within said borehole logging tool; and
(c) conveying said borehole logging tool along a borehole with a drill string.

23. The method of claim 18 wherein said standard spectrum comprises peak structure from gamma radiation from naturally occurring radioactive elements in earth formation.

24. The method of claim 18 wherein said standard spectrum comprises peak structure from gamma radiation induced in earth formation.