GAS DETECTION APPARATUS AND METHOD

20190257747 ยท 2019-08-22

    Inventors

    Cpc classification

    International classification

    Abstract

    A method of identifying the presence of a first gas such as methane within a sample, for example containing natural gas. A detector is provided having a sensor responsive to a first wavelength, a sensor responsive to a second wavelength, and a sensor for collecting reference readings. A gas sample is analysed to obtain a first absorption reading corresponding to the first wavelength, a second absorption reading corresponding to the second wavelength and a reference reading. A first absorption figure is calculated using the first absorption reading and the reference reading, and a second absorption figure using the second absorption reading and the reference reading. The sensor for each wavelength is calibrated for detecting the first gas such that the data collected at each wavelength gives the same reading when only said first gas is present in a sample.

    Claims

    1. A method of measuring the concentration of a first gas in a sample, comprising the steps of providing a detector having a sensor responsive to a first wavelength, a sensor responsive to a second wavelength, and a sensor for taking reference readings; applying a lineariser function to each of the first and second absorption figures to calculate first and second concentration figures, calibrating the sensor for each wavelength for detecting the first gas such that the data at each wavelength gives the same reading when only said first gas is present in a sample; analysing a gas sample to obtain a first absorption reading at the first wavelength, a second absorption reading at the second wavelength and a reference reading; calculating a first concentration figure (c.sub.1) and a second concentration figure (c.sub.2) using the reading at the first wavelength, the reading at the second wavelength and the reference reading, and calculating a corrected concentration figure (c.sub.cor) indicative of the actual concentration of said first gas in the sample using the equation c.sub.cor=c.sub.1X.Math.(c.sub.2c.sub.1), in which X=D.Math.A.Math.(c.sub.1/c.sub.2).sup.B, where A and B are constants for a particular pair of filter wavelengths chosen depending on the gases which are being looked for in the sample, and D is a correction factor which depends on concentration of the first gas in the sample.

    2. A method according to claim 1, wherein the value of D is extrapolated from calibration readings taken using the detector to measure the concentration of at least a first gas mixture of known composition at least at two known concentrations, and a second gas mixture of a known composition which is different to the composition of the first gas mixture at least at two known concentrations.

    3. A method according to claim 2, wherein the calibration readings are taken using the same concentration values for each of the first and second gas mixtures

    4. A method according to claim 2 or claim 3, wherein one of said known concentrations is 100% of the first gas mixture, and 100% of the second gas mixture.

    5. A method according to claim 3 or claim 4, wherein said other concentrations is 50% of the gas mixture mixed with another gas

    6. A method according to claim 4, wherein said other gas is nitrogen.

    7. A method according to any of claims 2 to 6, wherein calibration values of D are calculated using readings taken from sample of known composition using the equation D = c 1 - c cor A . ( c 1 .Math. / .Math. c 2 ) B .Math. ( c 2 - c 1 ) where C.sub.1 and C.sub.2 are the sensor readings take for the sample and C.sub.cor is the actual concentration of the gas in the known sample.

    8. A method according to any of claims 2 to 7, wherein the value of D for a sample of unknown composition is extrapolated from the calibration values of D using a linear extrapolation between the calibration values to extrapolate to a value of D for the measured value of C1 for the sample.

    9. A method according to claim 8, wherein D is calculated for a particular sample of unknown composition using the equation: D = NG .Math. .Math. 1 cor . Y NG .Math. .Math. 1 ( c 1 ) + NG .Math. .Math. 2 cor . Y NG .Math. .Math. 2 ( c 1 ) where NG .Math. .Math. 1 cor = R @ 100 .Math. % .Math. NG .Math. .Math. 2 - R R @ 100 .Math. % .Math. NG .Math. .Math. 2 - R @ 100 .Math. % .Math. NG .Math. .Math. 1 .Math. .Math. and ( 31 ) NG .Math. .Math. 2 cor = R - R @ 100 .Math. % .Math. NG .Math. .Math. 1 R @ 100 .Math. % .Math. NG .Math. .Math. 2 - R @ 100 .Math. % .Math. NG .Math. .Math. 1 ( 32 ) With R=c.sub.2/c.sub.1; R.sub.@100% NG1=calibration Determination ratio measured at the at least one known concentration of the first gas mixture of known composition NG1, R.sub.@100% NG2=calibration Determination ratio measured at the at least one known concentration of the second gas mixture of known composition NG2, and D.sub.NG1 is the linear equation which extrapolates between the calibrations values of D for the first gas mixture and D.sub.NG2 is the linear equation which extrapolates between the calibrations values of D for the second gas mixture.

    10. A method of measuring the concentration of a first gas in a sample, comprising the steps of providing a detector having a sensor responsive to a first wavelength, a sensor responsive to a second wavelength, and a sensor for taking reference readings; applying a lineariser function to each of the first and second absorption figures to calculate first and second concentration figures, calibrating the sensor for each wavelength for detecting the first gas such that the data at each wavelength gives the same reading when only said first gas is present in a sample; analysing a gas sample to obtain a first absorption reading at the first wavelength, a second absorption reading at the second wavelength and a reference reading; calculating a first concentration figure (c.sub.1) and a second concentration figure (c.sub.2) using the reading at the first wavelength, the reading at the second wavelength and the reference reading, and calculating a corrected concentration figure (c.sub.cor) indicative of the actual concentration of said first gas in the sample using the equation c.sub.cor=c.sub.1X.Math.(c.sub.2c.sub.1), in which X=A.Math.(c.sub.1/c.sub.2).sup.B, where A and B are constants for a particular pair of filter wavelengths chosen depending on the gases which are being looked for in the sample.

    11. A method according to any of the preceding claims, wherein the first gas is methane and its concentration is being measured in a sample containing natural gas or another higher hydrocarbon.

    12. A method according to claim 11, wherein A=2.5577 and B=1.869.

    13. A method according to any of claims 1 to 10, wherein in the event that the gas present is methane, the output of the sensor responsive to the first wavelength only is used to calculate the concentration reading.

    14. A method according to any of claims 1 to 10, wherein the equation is used only where the ratio of the reading of the sensor responsive to the first wavelength to the sensor responsive to the second wavelength (c.sub.1/c.sub.2) is above a first threshold value, the output of the sensor responsive to the first wavelength only is used where (c.sub.1/c.sub.2) is below a second threshold value, and a transitioning algorithm is used where (c.sub.1/c.sub.2) is between the first and second threshold values.

    15. A method according to claim 14, wherein the first threshold valve is 1, and the second threshold value is 0.9.

    16. A method according to claim 15, wherein the correction equation is c.sub.cor=M2.Math.(c.sub.1X.Math.(c.sub.2c.sub.1))+M1.Math.c.sub.1, where M1=(z0.9)/(10.9), and M2=(1z)/(10.9), with z=0.9 when (c.sub.1/c.sub.2)<0.9, z=1 when (c.sub.1/c.sub.2)>1, and z=(c.sub.1/c.sub.2) when 0.9(c.sub.1/c.sub.2)1.

    17. A method of identifying the presence of a first gas within a sample, comprising the steps of providing a detector having a sensor responsive to a first wavelength, a sensor responsive to a second wavelength, and a sensor for collecting reference readings; analysing a gas sample to obtain a first absorption reading corresponding to the first wavelength, a second absorption reading corresponding to the second wavelength and a reference reading; calculating a first absorption figure using the first absorption reading and the reference reading, and a second absorption figure using the second absorption reading and the reference reading; applying a lineariser function to each of the first and second absorption figures to calculate first and second concentration figures; calibrating the sensor for each wavelength for detecting the first gas such that the data collected at each wavelength gives the same reading when only said first gas is present in a sample; calculating the ratio of the first concentration figure to the second concentration figure, and using said ratio to identify whether only the first gas is present in the sample.

    18. A method according to claim 17, wherein the first gas is methane and the sample includes higher hydrocarbons such as propane and butane mixed with methane.

    19. A method according to any of the preceding claims, wherein the first wavelength is 3.3 microns plus or minus 0.1 microns and the second wavelength is 3.4 microns plus or minus 0.1 microns

    20. A method according to claim 19, wherein the step of calibrating the sensors comprises calibrating the sensors for detecting methane such that the same reading is obtained at each wavelength when analysing a sample containing methane but no other hydrocarbons.

    21. A method according to any of the preceding claims, wherein compensation is carried out separately on the reading at each wavelength in order to eliminate errors due to variations in environmental parameters.

    22. A method according to claim 21, wherein at least one of temperature compensation and pressure compensation is be carried out.

    23. A method according to claim 22, wherein temperature compensation is carried out in two stageszero drift correction and span drift correction.

    24. A method according to any of the preceding claims, wherein the sensor responsive to the first wavelength is a first sensor and the sensor responsive to the second wavelength is a second sensor distinct from the first sensor.

    25. A method according to any of claims 1 to 23, wherein a single sensor operable in different modes is used to analyse the gas sample to obtain absorption readings corresponding to both the first and second wavelengths.

    26. A method according to any of the preceding claims, wherein the or each sensor is an infrared radiation absorption sensor

    27. A selective gas detecting apparatus comprising a sensor responsive to a first wavelength, a sensor responsive to a second wavelength, and a sensor for collecting reference readings; and processing means, said processing means being programmed to calculate a first absorption figure using the reading for the first wavelength and the reference reading, and a second absorption figure using the reading for the second wavelength and the reference reading; to calculate first and second concentration figures by applying a lineariser function to each of the first and second absorption readings; the sensor for each wavelength being calibrated for detecting the first gas such that the reading for each wavelength is the same when only said first gas is present in a sample; to calculate the ratio of the first concentration figure to the second concentration figure, and to identify the gas which is present in the sample based on the calculated ratio.

    28. A selective gas detecting apparatus comprising a sensor responsive to a first wavelength, a sensor responsive to a second wavelength, and a sensor for collecting reference readings; the sensor for each wavelength being calibrated for detecting a first gas such that the reading for each wavelength is the same when only said first gas is present in a sample; and processing means, said processing means being programmed to apply the method according to any of claims 1 to 26.

    29. A selective gas detecting apparatus according to claim 27 or claim 28, wherein a separate sensor is used for each of the first wavelength, the second wavelength and the reference reading.

    30. A selective gas detecting apparatus according to any of claims 27 to 29, wherein the or each sensor is an infrared radiation absorption.

    Description

    [0039] In order that the invention may be well understood, there will now be described some embodiments thereof, given by way of example, reference being made to the accompanying drawings, in which:

    [0040] FIG. 1 is a graph showing an example of indication algorithm for a sensor according to a preferred embodiment of the invention with methane and natural gas;

    [0041] FIG. 2 is a graph showing the distribution of lineariser error for a sample batch of the methane and hydrocarbon sensors;

    [0042] FIG. 3 is a graph showing the variations in gas determination ratio for different sensor batches;

    [0043] FIG. 4 are graphs showing the effects of correction according to the invention on both methane and hydrocarbon sensor data;

    [0044] FIG. 5 is a graph showing the effect of applying the lineariser correction algorithm of the invention on the gas determination ratio;

    [0045] FIG. 6 are graphs showing methane and hydrocarbon sensor lineariser output incorporating the method of the invention for different gases;

    [0046] FIG. 7 is a graph showing lineariser response to natural gas using the correction algorithm of the invention;

    [0047] FIG. 8 is a graph showing variation in algorithm correction factor for different gases;

    [0048] FIG. 9 is a graph showing variation in algorithm correction factor with discrimination ratio;

    [0049] FIG. 10 are graphs showing the measurement error in a methane sensor compared to the error created by the hydrocarbon correction algorithm for methane according to the invention;

    [0050] FIG. 11 is a graph showing the variation of a modified correction factor with discrimination ratio;

    [0051] FIG. 12 is a graph showing the variation of determination ratio with concentration for different gases for detector utilising the method of the invention;

    [0052] FIG. 13 is a graph showing calibration reading of a methane sensor plotted against the ratio of the output of the methane sensor to the output of another hydrocarbon sensor taken on a number of samples of known but different composition and concentration; and

    [0053] FIG. 14 is a graph showing the output of the methane sensor plotted against value of a correction factor calculated from the calibration data shown in FIG. 13.

    [0054] NDIR spectroscopic detection of methane is a widely used technique with sensors being available from various suppliers. However there are no sensors of this type that have been used successfully to identify natural gas. Such sensors can, be spec'd to measure different parts of the IR spectrum, so as to produce a sensor where the target gas is methane or a sensor where the target gas is the higher hydrocarbons (propane, butane, etc). Regardless though, of the target gas, they will still respond to all hydrocarbons to different degrees.

    [0055] The preferred embodiment of the present invention now described is based on provision of a detector which has a methane sensor and a hydrocarbon sensor. Although the detailed description of the invention relates refers to methane and hydrocarbon, it will be understood that this is for illustration purposes only and that the invention is applicable to gases in general and is not necessarily limited only to detection of methane.

    [0056] Accordingly, the detector utilised as part of the present invention effectively has two hydrocarbon sensors. They both respond to hydrocarbons, but to different degrees. If both are calibrated for methane, and methane is the only gas present, both will produce the same result. However, if another hydrocarbon is present as well as methane, e.g. ethane as will be the case for natural gas, the two sensors will produce different results. This unbalancing of the signals in the presence of natural gas is what enables the discrimination between methane and natural gas in the present invention.

    [0057] The sensors utilised in the invention are Non-dispersive IR sensors, which use the basic principles of Infrared spectroscopy to measure the concentration of gas. Put simply, the gas absorbs light at specific wavelengths (spectroscopic fingerprint). The amount of light absorbed will depend on the concentration of the target gas, the higher the concentration, the greater the absorption.

    [0058] This process can be modelled by the Beer-Lambert equation,


    I=I.sub.0e.sup.cl(1)

    [0059] Where I.sub.0=Light intensity in air; =absorption coefficient; c=gas concentration; and l=optical pathlength.

    [0060] Because a non-dispersive system looks at a many number of absorption lines and not just at a single line of the gas (as in laser spectroscopy), the product l is not constant, but is dependent c.

    [0061] The sensor used in the preferred embodiment of the invention consists of three pyroelectric detectors and an infrared source. The three detectors each have a spectral filter for detecting different parts of the mid-IR spectrum.

    [0062] In the invention, the specifications of the three filters are as follows:

    [0063] Filter 1 (methane): 3.33 um+/0.1 um

    [0064] Filter 2 (higher hydrocarbons): 3.40 um+/0.1 um

    [0065] Filter 3 (reference): 3.95 um+/0.1 um

    [0066] The bandwidth of each filter is in the order or hundreds of nanometers, such as, for example, 160 nm for Filter 1, 120 nm for Filter 2, and 90 nm for Filter 3. These bandwidths values are not, however exclusive, and will vary depending on the specification of the sensors used.

    [0067] The infrared source is flashed at 4 Hz. This generates a 4 Hz sinusoidal waveform at the output of the detector circuitry, the amplitude of which is measured to provide an indication of the amount of light arriving at the detector (l in equation 1)

    [0068] The method by which natural gas is identified is as follows:

    [0069] First the absorption in each channel is calculated (using the reference detector as a measure of the signal strength in air).

    [00003] abs m = 1 - I m I r ( 2 ) abs hc = 1 - I hc I r ( 3 )

    [0070] Where,

    [0071] I.sub.m=normalised methane channel intensity;

    [0072] I.sub.hc=normalised hydrocarbon channel intensity;

    [0073] I.sub.r=normalised reference channel intensity;

    [0074] A lineariser equation is then used to calculate the concentration measured in each channel.


    c=c(abs)(4)

    [0075] Where c(abs)=lineariser function.

    [0076] There is a separate lineariser for each channel.

    [0077] The ratio of the two calculated concentrations is then calculated,

    [00004] R = C hc C m ( 5 )

    [0078] If R=1, the gas is methane.

    [0079] Due to the position of the spectral filters and the relative strengths of absorption for methane and the other hydrocarbons, the hydrocarbon channel will see a greater absorption than the methane channel in the presence of natural gas (or any hydrocarbons other than methane). This means for natural gas C.sub.2>C.sub.1. Therefore, if R>1 it can be deduced that the gas is not solely methane.

    [0080] The gas determination ratio, equation 5, is in theory quite straight forward. However, because the ratio of two numbers is being taken, if these numbers are small, as in the case for low gas concentrations, it has been found that noise can play a significant part in the calculation. It has also been found to be desirable to account for errors in linearity. So, in the preferred embodiment, limits are to be set to reduce the chances of an incorrect determination.

    [0081] The preferred limits are:

    [0082] If C.sub.1<Y, then gas is undermined; (Signals are too low to make a reliable decision)

    [0083] If C.sub.1>Y AND R<1.025, then gas is methane;

    [0084] If C.sub.1>Y AND 1.025<R<1.05, then gas is undetermined; (this is a buffer to take into account noise and sensor to sensor variation in linearity)

    [0085] If C.sub.1>Y AND R>1.05, then gas is natural gas;

    [0086] where Y is constant which is selected to provide acceptable results depending on the particular calibration value etc. The lower the value of Y the greater the sensitivity of the system but all the more susceptible it is to noise. Preferably, Y is less than or equal to 1.5, and more particularly is equal to 1.0, especially for calibration at 1% concentration of methane. An example of the indication algorithm working is shown in FIG. 1.

    [0087] It is well known to apply environmental compensation to compensate for changes in sensor output with environmental conditions such as temperature and pressure.

    [0088] For the preferred embodiment of the invention, temperature compensation of the sensors has to be done separately for each absorption channel. It also needs to be done in two stages. [0089] 1. Zero drift correction [0090] 2. Span drift correction

    [0091] Data should be compared for a larger number of sensors (circa 100) in order to check how similar/different the sensors were from each other after the lineariser is applied.

    [0092] Although small errors in linearity, shown in FIG. 2, are not that concerning in themselves for calculation of the gas concentration, they can feed through to significant errors when calculating the gas determination ratio as shown in FIG. 3.

    [0093] FIG. 3 shows that for a batch of 100 examples of the preferred embodiment, many of the data points measured lie in the undetermined region of 1.025<R<1.05. There are also a few errors where R>1.05, which would give an indication of natural gas, when the gas is actually methane.

    [0094] To improve the scenario in FIG. 3, a method has been created whereby the sensors are calibrated at 1% and 5% methane, as well as 100% methane.

    [0095] The equations for correction of the linearized data are:

    [0096] 0-5% Methane:

    [00005] c corr = c - c .Math. Err 1 .Math. % .Math. ( 5 - c 4 ) - c .Math. Err 5 .Math. % .Math. ( c - 1 4 ) ( 13 )

    [0097] 5-100% Methane:

    [00006] c corr = c - c . Err 5 .Math. % . ( 100 - c 95 ) .Math. .Math. Where , ( 14 ) Err 1 .Math. % = c 1 .Math. % - 1 1 ( 15 ) Err 5 .Math. % = c 5 .Math. % - 5 5 ( 16 )

    [0098] c.sub.1% and c.sub.5% are the lineariser outputs for 1% and 5% methane before correction.

    [0099] The results of this correction algorithm are shown in FIG. 4 and FIG. 5.

    [0100] For the particular sensor of the example, a mainly undetermined decision is produced before correction. Following the correction a marked improvement in calculation of the Gas Discrimination Ratio is achieved, and can be corrected across the full range. This three point calibration need only be a one off event at initial calibration, and serve as a way to characterise each individual sensor. Subsequent calibrations should only need to be done at 100% methane.

    [0101] Because the linearisers used in the instrument according to the method of the preferred embodiment of the invention are calibrated for methane, if the instrument measures natural gas, or any of the other hydrocarbons, the increased absorption relative to methane mean it will read high. In the case of volume levels of natural gas, the concentration indicated by the lineariser can be hundreds of percent above the actual concentration present. Examples of this are shown in FIG. 6.

    [0102] To rectify this, the preferred embodiment of the method of the invention uses equation 19 (also see FIG. 7), to combine the two channels to estimate the actual concentration of gas being measured.


    c.sub.actual=c.sub.1X.Math.(c.sub.2c.sub.1)(19)

    [0103] From the data shown in FIG. 6 is used to calculate the correction factor X for each gas, as shown in FIG. 8.

    [00007] X = c 1 - c actual c 2 - c 1 ( 20 )

    [0104] FIG. 8 shows that each gas type has its own profile for the correction factor X.

    [0105] When X is plotted against the Discrimination Ratio there appears to be a trend relating the two values, as illustrated in FIG. 9.

    [0106] Therefore the correction factor X can be calculated using the equation,

    [00008] X = 2.5577 . ( c 1 c 2 ) 1.869 ( 21 )

    [0107] While this correction factor works reasonably well for natural gas, it does not as well for the propane and butane. However, if the instrument is intended for propane or butane measurement it would be calibrated as such. This method ensures that the instrument will give a sensible reading regardless of the gas being detected. The natural gas discrimination sensor is only intended to give a YES/NO decision on whether the gas is methane or not. It is not intended to be a completely accurate measurement tool for all gases at all times.

    [0108] With the hydrocarbon correction algorithm in place it can introduce noise to the measurement when recording methane. FIG. 10 shows that while there is very little noise on the single methane channel, the hydrocarbon correction algorithm appears to amplify any measurement error.

    [0109] To counteract this effect the correction algorithm is applied only if natural gas is detected. If the gas is methane, then only the methane channel output should be used as the displayed measurement. To enable a smooth transition between using a single channel to switching to a combination of both measurement channels a set of switching limits is used.

    [0110] To achieve this equation 19 is modified to be,


    c=M2.Math.(c.sub.1X.Math.(c.sub.2c.sub.1))+M1.Math.c.sub.1(22)

    [0111] The limits and conditions for the calculation of M1 and M2 are as follows,

    [0112] (if statements are written in Microsoft Excel syntax)

    [00009] Z = if ( c 1 c 2 < 0.9 , 0.9 , if ( c 1 c 2 > 1 , 1 , c 1 c 2 ) ) ( 23 ) M .Math. .Math. 1 = Z - 0.9 1 - 0.9 ( 24 ) M .Math. .Math. 2 = 1 - Z 1 - 0.9 ( 25 )

    [0113] Equation 22 effectively means that if the gas being measured is methane,


    c=c.sub.1

    [0114] If the gas being measured is natural gas then,


    c=c.sub.1X.Math.(c.sub.2c.sub.1)

    [0115] So the problems with noise being added to the methane measurement go away.

    [0116] To simplify the software needed to implement the hydrocarbon correction algorithm, rather than compute X, a look up table can be used to replicate equation 21. This can be taken a step further and a look up table created for equation 22 based on the equation,

    [00010] X .Math. .Math. 1 = c 1 - c eq .Math. .Math. 22 c 2 - c 1 ( 26 )

    [0117] This produces the data shown in FIG. 11.

    [0118] Therefore, equation 22 can be replaced by,


    c=c.sub.1X1.Math.(c.sub.2c.sub.1)(27)

    [0119] The method of the invention and associated detector enables measurement of the concentration of a detectable gas, namely methane, and the discrimination of methane from natural gas (and other hydrocarbons). The detector houses at least three individual pyroelectric detectors, each with a different spectral filter attached. The first detector is for detecting primarily methane, the second is for detecting the higher hydrocarbons and the third is used as a reference.

    [0120] The preferred filter specs are:

    [0121] Filter 1 (methane): 3.33 um+/0.1 um

    [0122] Filter 2 (higher hydrocarbons): 3.40 um+/0.1 um

    [0123] Filter 3 (reference): 3.95 um+/0.1 um

    [0124] The bandwidth of each filter is in the order or hundreds of nanometers, such as, for example, 160 nm for Filter 1, 120 nm for Filter 2, and 90 nm for Filter 3. These bandwidths values are not, however exclusive, and will vary depending on the specification of the sensors used.

    [0125] The combination of the methane detector and reference detector, and hydrocarbon detector and reference detector serve to create a methane channel and hydrocarbon channel respectively. By creating methane linearisers for each channel, and monitoring the ratio of the concentrations measured by the two channels, we can set limits on to enable the identification of the gas type being monitored.

    [00011] R = c 2 c 1

    [0126] The preferred limits are,

    [0127] If C.sub.1<Y, then gas is undermined; (Levels are too low to make a reliable decision)

    [0128] If C.sub.1>Y AND R<1.025, then gas is methane;

    [0129] If C.sub.1>Y AND 1.025<R<1.05, then gas is undetermined; (this is a buffer to take into account noise and sensor to sensor variation in linearity)

    [0130] If C.sub.1>Y AND R>1.05, then gas is natural gas;

    [0131] where Y is a constant which is selected to provide acceptable results depending on the particular calibration value etc. Preferably, Y is less than or equal to 1.5, and more particularly is equal to 1.0, especially for calibration at 1% concentration of methane.

    [0132] Referring now to FIG. 12, this shows how the gas determination ratio (R) varies for different gas mixtures for the detector incorporating the sensor arrangement of the invention. This suggests that if R is greater than or equal to 2, then it is likely propane/butane (the two are indistinguishable), aka LPG is present. However, it does not follow, based just on this information, that if R is less than 2 then the gas is Natural gas, because for high concentrations of gas, the data shows that the ratio for LPG drops below 2. Accordingly, the invention may be used to detect the presence of LPG by applying a different algorithm according to which, if R2, then the gas is LPG, and if R<2 and the concentration is determined to be less than a defined figure (from FIG. 12, less than 20% and more particularly less than 10% to allow for variations in sensors readings between detectors), then the gas is not LPG.

    [0133] Issues with linearity due to sensor to sensor variation are minimised by implementing a three point calibration. The sensor is calibrated preferably at 100%, 5% and 1% methane. The calibration at 1% and 5% methane need only be a one off for each sensor.

    [0134] The method of the invention also provides an estimated indication of gas concentration if the gas being detected is natural gas. The linearisers for methane will give a high reading if natural gas is detected. This method ensures that the instrument does not produce unrealistic readings in the presence of natural gas or higher hydrocarbons.

    [0135] Whilst it has been found that the use of equation 19 above with X=A.Math.(c.sub.1/c.sub.2).sup.B, where A and B are constants for a particular pair of filter wavelengths chosen depending on the gases which are being looked for in the sample produces satisfactory results in many applications, the accuracy of the corrected concentration derived using that equation is found to diminish with some sensors. According to a further development of the invention, then, it has been found that accuracy of the concentration reading can be further improved by modifying the value of X using a variable multiplier D, the value of which depends upon the composition of the gas being measured.

    [0136] In particular, it has been found that the value of the constant A calculated as set out above is necessarily constant for a given sensor used with a given gas, but may vary depending on the particular composition of the gas being sampled. In a further embodiment of the invention, therefore, improved values can therefore be obtained if the constant A is modified by the new variable D, dependent on the actual concentration readings taken from the two sensors, such that X in equation 19 becomes:


    X=D.Math.A.Math.(c.sub.1/c.sub.2).sup.B(28)

    [0137] In this alternative embodiment, which improves accuracy over a range of natural gas compositions and of concentrations, a detector is first calibrated by taking concentration readings for two natural gas mixtures, NG1 and NG2 These can be any two mixtures but in order to get better accuracy across the range, it is preferred that they represent extremes of the compositions which might be analysed by the detector in practice. To that end, it has been found to work well if the compositions are as follows: [0138] NG1 being a mixture composed mainly of methane, with the minimum addition of higher hydrocarbons which is expected to be found in use. IN this example, a mixture of 98% Methane and 2% Ethane is used but other composition is possible as long as the actual composition is known. [0139] NG2 is similar, but with the maximum extra higher hydrocarbons expected to be found in use. In this example, a mixture of 90% Methane and 10% Ethane is used, but again, other composition is possible as long as the actual composition is known.

    [0140] It will also be recognized that more than two known compositions can be used if required, for example if greater accuracy is needed.

    [0141] Measurements, preferably at least two, are taken on the detector for each gas mixtureone at 50% mix of the gas with another gas, for example Nitrogen, and one at 100% of the natural gas mixture (NG1 or NG2), each measurement giving a reading for each sensor (c.sub.1 and c.sub.2)

    [0142] Nitrogen is preferred as the other gas as it reduces the risk of explosion but other gases could also be used, such as air.

    [0143] Furthermore, more than two measurements can be taken for each gas mixture without departing from the scope of the invention, each being taken at different mixture compositions with another gas. Two measurements are preferred as this is found to give a good level of accuracy without making the calibration process too arduous and time consuming. However, if greater accuracy is requirement, more than two sets of measurements can be taken.

    [0144] FIG. 13 shows an illustrative graph of example data produced by the example, with Methane sensor output reading (c.sub.1) being plotted against the ratio of the two sensor output readings (c.sub.2/c.sub.1). The x-axis is the % methane equivalent, so when tested in 50% and 100% methane, the ratio is 1. When tested in either concentration of NG1, the ratio is higher, and in NG2 higher still; as is the % methane equivalent reading.

    [0145] This analysis gives four sets of data, two for NG1 (one for 50% concentration and one for 100% concentration), and two for NG2 (at 50% and 100% concentration). Each set of data comprises a value for C1, a value for C2 and a value for the actual concentration Ccor, which is known because the compositions of NG1 and NG2 are known.

    [0146] Combining equations 19 and 28, and rearranging for D, D is then given as,

    [00012] D = c 1 - c cor A . ( c 1 .Math. / .Math. c 2 ) B .Math. ( c 2 - c 1 ) ( 29 )

    [0147] Values of A and B are know from the first embodiment described above, and the values of C1, C2 and C.sub.cor obtained by the four sets of data can be used to generate four values for D, two for NG1 and two for NG2. These can be plotted on a graph as shown in FIG. 14 with the coefficient D on the y-axis, and the methane sensor output value (C1) on the X-axis.

    [0148] A straight line approximation for the relations between C1 and D2 for a particular composition has been found to be a good approximation, and hence the data, as displayed in FIG. 14, is used to generation a linear equations between C1 and D for each of NG1 (D.sub.NG1) and NG2. (D.sub.NG2)

    [0149] The data is then further extrapolated between the two linear approximations for concentrations which are neither NG1 nor NG2. If the measured ratio is below the ratio for NG1, the value is interpolate between the line for NG1 and the line for methane (correction factor=1). If the measured ratio is between NG1 and NG2, the value is interpolate between the line for NG1 and the line for NG2. If the ratio is higher still, the line for NG2 is used.

    [0150] The actual correction factor, D, which should be applied for a particular composition being analysed, is calculated in the instrument using the equations below,


    D=NG1.sub.cor.Math.D.sub.NG1(c.sub.1)+NG2.sub.cor.Math.D.sub.NG2(c.sub.1)(30)

    [0151] Equation 30 relates the measurement values from an unknown gas mixture to the know values shown in FIGS. 13 and 14. The correction factors NG1.sub.cor and NG2.sub.cor determine the position of the measured determination ratio to the known determination ratio values at 100% NG1 and NG2, and are calculated using,

    [00013] NG .Math. .Math. 1 cor = R @ 100 .Math. % .Math. NG .Math. .Math. 2 - R R @ 100 .Math. % .Math. NG .Math. .Math. 2 - R @ 100 .Math. % .Math. NG .Math. .Math. 1 ( 31 ) NG .Math. .Math. 2 cor = R - R @ 100 .Math. % .Math. NG .Math. .Math. 1 R @ 100 .Math. % .Math. NG .Math. .Math. 2 - R @ 100 .Math. % .Math. NG .Math. .Math. 1 ( 32 )

    [0152] Where the determination ratio R=c.sub.2/c.sub.1, and R.sub.@100% NG1=Determination ratio at 100%

    [0153] NG1, R.sub.@100% NG2=Determination ratio at 100% NG2.

    [0154] D.sub.NG1 and D.sub.NG2 are the equations shown in FIG. 14.

    [0155] Each detector is therefore calibrated using this processes and the processor is programmed with values for R.sub.@100% NG1, R.sub.@100% NG2, as well as the characteristic equations D.sub.NG1 and D.sub.NG2 derived for that detector during the calibration procedure.

    [0156] The values for C1 and C2 obtained for the sample being analysed are then used in equation 30 to generate a value for D, which in turn is used in Equation 28 and equation 19 to generated a corrected value for the actual concentration of the sample.

    EXAMPLE 1

    [0157] As an example, using the above graphs, if the methane reading is 100 and the ratio is 1.1 (graph 1), the ratio for NG1 is approximately 1.2, so a line midway between the methane line (y1) and the NG1 line (D.sub.NG1=0.0003729x+1.1014806) is used. This gives a correction factor of approximately 1.025. The calculation is shown in broken line on FIG. 14.

    EXAMPLE 2

    [0158] If the methane sensor gives a reading of 80 and the ratio is 1.3, i.e. the correction factor lies between NG1 and NG2, then from FIG. 13, the ratio for 100% NG1 is 1.2 and the ratio for 100% NG2 is 1.45. Therefore (1.451.3)/(1.451.2) of the correction factor for NG1 and (1.31.2)/(1.451.2) of the correction factor for NG2 is used. This gives a figure of 0.6the correction factor for NG1 and 0.4the correction factor for NG2.

    [0159] The reading from the methane sensor are then used in the equation for NG1 and NG2, i.e.


    D.sub.NG1:0.0003729x80+1.1014806=1.072


    D.sub.NG2:0.0003773x80+1.2146882=1.185

    [0160] The final correction factor (D) in this example if then given by 0.61.072+0.41.185=1.1172. This figure can be confirmed from Graph 2.

    [0161] It will, of course, be understood that while the various parts and features of the method have been described in combination, the advantages afforded by different parts of the method may be achieved in isolation of each other, at least in part, and the description of the whole method is not in any way meant to restrict the teaching of the application only to the use of the different aspects in combination with each other. Equally, although the method has been described primarily in connection with the detection of methane and natural gas, other gas combinations are also possible.