Diamond ATR artefact correction
10018561 ยท 2018-07-10
Assignee
Inventors
Cpc classification
G01N21/62
PHYSICS
International classification
G01N21/62
PHYSICS
Abstract
A method of using a spectrometer to produce corrected diamond Attenuated Total Reflectance (ATR) spectral data includes acquiring, using the spectrometer, an initial set of ATR spectral data for a sample pressed into contact with a diamond ATR crystals; numerically matching, using the spectrometer, a pressure dependent diamond artifact reference spectrum to a corresponding pressure dependent diamond artifact in the initial set of ATR spectral data; and numerically subtracting out the numerically matched pressure dependent diamond artifact reference spectrum from the initial set of ATR spectral data to yield a corrected set of ATR spectral data for the sample for output by the spectrometer.
Claims
1. A method for investigating physical and/or chemical properties of a sample comprising the steps of: pressing a sample into contact with a diamond Attenuated Total Reflectance (ATR) crystal on a sample supporting surface of a spectrometer by a pressure applying means; directing radiation to an ATR crystal by a radiation source; the radiation modified by contact with the sample to produce modified radiation; detecting the modified radiation at a detector; acquiring, using the spectrometer, an initial set of ATR spectral data for the sample; numerically matching, using the spectrometer, a pressure dependent diamond artefact reference spectrum to a corresponding pressure dependent diamond artefact in the initial set of ATR spectral data; and numerically subtracting out the numerically matched pressure dependent diamond artefact reference spectrum from the initial set of ATR spectral data to yield a corrected set of ATR spectral data for the sample to determine physical and/or chemical properties of the sample without directly measuring a pressure applied to the crystal by the sample.
2. A method according to claim 1 in which the numerically matching step comprises adjusting the magnitude of the artefact reference spectrum.
3. A method according to claim 2 in which the step of adjusting the magnitude of the artefact reference spectrum comprises finding a magnitude that yields a best fit between the pressure dependent diamond artefact reference spectrum and the corresponding pressure dependent diamond artefact in the initial set of ATR spectral data.
4. A method according to claim 3 in which the step of adjusting the magnitude of the artefact reference spectrum comprises the steps of: i) finding a magnitude that yields a best fit between the pressure dependent diamond artefact reference spectrum and the corresponding pressure dependent diamond artefact in the initial set of ATR spectral data; ii) identifying at least one data point from the best fit as an outlier; iii) suppressing said at least one data point and finding a modified magnitude that yields a modified best fit between the pressure dependent diamond artefact reference spectrum and the corresponding pressure dependent diamond artefact in the initial set of ATR spectral data with said at least one data point suppressed.
5. A method according to claim 4 in which the identifying and the suppressing and the finding are iterated suppressing further data points in each iteration.
6. A method according to claim 1 in which the numerically matching step comprises adjusting for differences in abscissa scales associated with the reference spectrum and the initial set of spectral data.
7. A method according to claim 6 in which the step of adjusting for differences in abscissa scales comprises the step of: comparing a spectrometer specific standard ATR spectral data for a standard sample substance with a reference set of standard ATR spectral data for the standard sample substance.
8. A method according to claim 7 in which the standard sample substance is diamond.
9. A method according to claim 7 in which the step of adjusting for differences in abscissa scales comprises the steps of: first adjusting for differences in abscissa scales based on the comparison between the spectrometer specific standard ATR spectral data and the reference set of standard ATR spectral data for the standard sample substance; and after this further adjusting for differences in abscissa scales based on a comparison between the pressure dependent diamond artefact reference spectrum and the corresponding pressure dependent diamond artefact in the initial set of ATR spectral data.
10. A method according to claim 7 in which the step of adjusting for differences in abscissa scales comprises the steps of: determining an abscissa shifted version of the reference set of standard ATR spectral data; determining a difference spectrum from the difference between the abscissa shifted version of the reference set of standard ATR spectral data and the original reference set of standard ATR spectral data; determining a trial spectrum by adding a scaled amount of the difference spectrum to the original reference set of standard ATR spectral data, the scaled amount comprising a shift scale factor; fitting the trial spectrum to the set of spectrometer specific standard ATR spectral data by varying the shift scale factor to obtain the best fit; and determining an appropriate abscissa scale adjustment in dependence on the shift scale factor corresponding to the best fit.
11. A method according to claim 7 in which the step of adjusting for differences in abscissa scales comprises the steps of: determining an abscissa shifted version of the reference set of standard ATR spectral data; determining a difference spectrum from the difference between the abscissa shifted version of the reference set of standard ATR spectral data and the original reference set of standard ATR spectral data; determining the first derivative of the difference spectrum, the first derivative of the original reference set of standard ATR spectral data, and the first derivative of the set of spectrometer specific standard ATR spectral data; determining a trial spectrum by adding a scaled amount of the first derivative of the difference spectrum to the first derivative of the original reference set of standard ATR spectral data, the scaled amount comprising a shift scale factor; fitting the trial spectrum to the first derivative of the set of spectrometer specific standard ATR spectral data by varying the shift scale factor to obtain the best fit; and determining an appropriate abscissa scale adjustment in dependence on the shift scale factor corresponding to the best fit.
12. A method according to claim 11, in which the step of adjusting for differences in abscissa scales comprises the steps of: adjusting the pressure dependent diamond artefact reference spectrum in dependence on the determined abscissa scale adjustment to give an adjusted artefact reference spectrum; determining an abscissa shifted version of the adjusted artefact reference spectrum; determining a difference spectrum from the difference between the abscissa shifted version of the adjusted artefact reference spectrum and the original adjusted artefact reference spectrum; determining the first derivative of the difference spectrum, the first derivative of the original adjusted artefact reference spectrum, and the first derivative of the initial set of ATR spectral data; determining a trial spectrum by adding a scaled amount of the first derivative of the difference spectrum to the first derivative of the original adjusted artefact reference spectrum, the scaled amount comprising a shift scale factor; fitting the trial spectrum to the first derivative of the initial set of ATR spectral data by varying the shift scale factor to obtain the best fit; and determining a further appropriate abscissa scale adjustment in dependence on the shift scale factor corresponding to the best fit.
13. A method according to claim 1 in which the numerically matching step comprises pre-processing at least one of the sets of ATR spectral data and/or pre-processing the pressure dependent diamond artefact reference spectrum to suppress slow baseline variation.
14. A method according to claim 1 in which the numerically matching step comprises the step of adjusting the resolution of the diamond artefact reference spectrum to match the resolution of the initial set of ATR spectral data.
15. A method according to claim 1 wherein the numerically matching step comprises adjusting the magnitude of the artefact reference spectrum, wherein the step of adjusting the magnitude of the artefact reference spectrum includes the determination of at least one magnitude coefficient, the numerically matching step comprises adjusting for differences in abscissa scales associated with the reference spectrum and the initial set of spectral data, and the step of adjusting for differences in abscissa scales includes the determination of at least one shift coefficient and the method comprises checking whether the at least one magnitude coefficient satisfies at least one respective threshold and checking whether the at least one shift coefficient satisfies at least one respective threshold.
16. A method according to claim 1 in which the step of numerically subtracting out the numerically matched pressure dependent diamond artefact reference spectrum may comprise dividing in transmittance.
17. The method of claim 1 further comprising outputting the corrected set of ATR spectral data by an output device coupled to the spectrometer.
18. The method of claim 17 wherein the outputting by an output device comprises outputting to a screen for display to a user.
19. The method of claim 17 wherein the outputting by an output device comprises outputting data for further processing.
20. The method of claim 17 wherein the outputting comprises outputting data to determine a substance present in the sample.
21. A spectrometer arranged for performing Attenuated Total Reflectance (ATR) measurements comprising: a source of radiation; a detector for detecting radiation having passed through a diamond ATR crystal positioned in the spectrometer; and a processing unit for processing the output of the detector to produce sets of ATR spectral data; wherein the spectrometer has a memory for storing a pressure dependent diamond artefact reference spectrum and is arranged to acquire an initial set of ATR spectral data for a sample pressed into contact with a diamond ATR crystal; and the processing unit is arranged to: numerically match the pressure dependent diamond artefact reference spectrum to a corresponding pressure dependent diamond artefact in the initial set of ATR spectral data; and numerically subtract out the numerically matched pressure dependent diamond artefact reference spectrum from the initial set of ATR spectral data to yield, without directly measuring a pressure applied to the crystal by the sample, a corrected set of ATR spectral data for the sample for output by the spectrometer to allow a determination of physical and/or chemical properties of the sample.
22. A method of producing corrected diamond Attenuated Total Reflectance (ATR) spectral data comprising the steps of: obtaining a pressure dependent diamond artefact reference spectrum on a first reference spectrometer; acquiring, using a second spectrometer, an initial set of ATR spectral data for a sample pressed into contact with a diamond ATR crystal; numerically matching, using the second spectrometer, the pressure dependent diamond artefact reference spectrum to a corresponding pressure dependent diamond artefact in the initial set of ATR spectral data; and numerically subtracting out the numerically matched pressure dependent diamond artefact reference spectrum from the initial set of ATR spectral data to yield, without directly measuring a pressure applied to the crystal by the sample, a corrected set of ATR spectral data for the sample for output by the spectrometer to allow a determination of physical and/or chemical properties of the sample.
23. A method of correcting diamond Attenuated Total Reflectance (ATR) spectral data comprising the steps of: receiving an initial set of ATR spectral data for a sample pressed into contact with a diamond ATR crystal; numerically matching a pressure dependent diamond artefact reference spectrum to a corresponding pressure dependent diamond artefact in the initial set of ATR spectral data; and numerically subtracting out the numerically matched pressure dependent diamond artefact reference spectrum from the initial set of ATR spectral data to yield, without directly measuring a pressure applied to the crystal by the sample, a corrected set of ATR spectral data for the sample for output by a spectrometer to allow a determination of physical and/or chemical properties of the sample.
24. A non-transitory machine readable data carrier carrying a computer program comprising code portions which when loaded and run on a computer cause the computer to carry out the method of claim 23.
25. A computer for correcting diamond Attenuated Total Reflectance (ATR) spectral data arranged under the control of software to: receive an initial set of ATR spectral data for a sample pressed into contact with a diamond ATR crystal; numerically match a pressure dependent diamond artefact reference spectrum to a corresponding pressure dependent diamond artefact in the initial set of ATR spectral data; and numerically subtract out the numerically matched pressure dependent diamond artefact reference spectrum from the initial set of ATR spectral data to yield, without directly measuring a pressure applied to the crystal by the sample, a corrected set of ATR spectral data for the sample for output by the spectrometer to allow a determination of physical and/or chemical properties of the sample.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Embodiments of the present invention will now be described, by way of example only, with reference to the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
DETAILED DESCRIPTION
(9)
(10) The spectrometer 1 comprises a main body 2 on which is mounted a source of radiation 3, a sample support surface 4 carrying an ATR crystal 5 and a detector 6. Also provided is a pressure applying means or clamp 7 for pressing a sample 8 into contact with the ATR crystal 5. Note that all of these components are shown only in highly schematic form in
(11) The processing unit 9 is connected to the source of radiation 3 to enable control of the source and connected to the detector 6 such that the output of the detector 6 can be fed to the processing unit 9 for processing. As is the case in all conventional ATR based spectrometers, radiation is directed to the ATR crystal 5, internally reflected at a facet of the crystal which is in contact with the sample 8 and progresses on to the detector 6. At the detector 6, the radiation as modified by its interaction with the sample during the total internal reflection process is detected and the resulting data is fed to the processing unit 9 to form an appropriate set of ATR spectral data.
(12) As alluded to above, to this degree, the functioning of the current spectrometer is standard and thus more detailed description of its structure, function and operation is omitted for the sake of brevity. The present techniques may be used in respect of many different types of implementations of the structure and optical parts of the spectrometer. Thus these details are not of particular interest in the present application. What is of interest are the techniques used to allow for the fact that the diamond ATR crystal 5 introduces errors or artefacts into the spectral data measured using the spectrometer 1 due to the pressure dependent absorption features exhibited by diamond as mentioned in the introduction. In the present techniques, the processing unit 9 is arranged to operate on the spectral data as initially received from the detector 6.
(13) In general terms the processing unit 9 is arranged under the control of software for carrying out various of the steps mentioned in more detail below which form part of the diamond ATR correction methods of the present application.
(14)
(15) At the most generalised level, the method of
(16) Note that this technique does not require a measurement or assessment of the actual pressure being applied to the ATR crystal via the sample when the initial set of spectral data is acquired. Rather the numerical matching process is used to obviate the need for such a measurement or assessment. Thus this means that the present techniques are much more practical than ones where it would be necessary to attempt to measure or assess that applied pressure.
(17) The process of
(18) In step 1 the pressure dependent diamond artefact reference spectrum is obtained using a reference spectrometer. Typically this step will only be performed once by the manufacturer to develop the pressure dependent diamond artefact reference spectrum that then can be used in correcting spectral data for specific samples acquired using individual investigating spectrometers.
(19) In the method of
(20) In step 3 an investigating spectrometeri.e. the spectrometer of a useris optionally used to acquire a spectrometer specific set of standard ATR spectral data for the standard sample substance. This is in effect taking the same background measurement of step 2 but on the user spectrometer whereas step 2 relates to taking that background spectrum on the reference spectrometer.
(21) In step 4, an initial set of ATR spectral data for a sample of interest is acquired using the investigating spectrometer. If the present correction techniques were not to be used then this initial set of spectral data would be the output of the spectrometer. However in the present techniques we then move to step 5 of numerically matching the pressure dependent artefact reference spectrum as obtained in step 1 to the initial set of spectral data as obtained in step 4.
(22) Once this numerical matching has occurred in step 5, then in step 6 the numerically matched pressure dependent diamond artefact reference spectrum may be subtracted out the initial set of ATR spectral data to yield a modified set of ATR spectral data for the sample which can be output by the output device 10. This may, for example, be a screen to display data to a user, or data output for further processing. Of course ultimately this ATR data can be used in determining the substance(s) present in the sample.
(23) In the present embodiment, as shown in
(24) Thus, in effect step 5A is making an adjustment to shift the pressure dependent artefact reference spectrum in terms of wave number (or wave length, frequency etc) to, for example, allow for any abscissa calibration difference between the reference spectrometer and the investigating spectrometer so that the artefact reference spectrum lines up with the appropriate features in the initial set of data. On the other hand step 5B is useful to take account of the fact that the pressure applied by the pressure applying means 7 to the ATR crystal 5 can be different. It has been found that the pressure dependent artefact reference spectrum has a magnitude which is dependent on the applied pressure. Thus by adjusting the magnitude of the artefact reference spectrum numerically it is possible to find a magnitude which best fits the artefact as present in the initial set of ATR spectral data and thus numerically match the artefact reference spectrum to the initial set of data.
(25) Note that the numerically matching steps of step 5 as shown in
(26) Whilst the step of obtaining the pressure dependent diamond artefact reference spectrum using a reference spectrometer as shown in step 1 of
(27)
(28) In the present technique for obtaining such a reference spectrum, then in step 101 a reference sample is pressed against the diamond ATR crystal. It will be appreciated that in obtaining such a reference spectrum, the same type of setup as shown in
(29) In step 102, the pressure applied to the ATR crystal via the sample is varied and in step 103 ATR spectra for the reference sample are obtained at a plurality of applied pressures.
(30) In step 104 pressure dependent features in the obtained spectra are determined. This may be carried out, for example, by a principal component analysis. Alternatively, if, in the reference setup, it is possible to independently determine the applied pressure, other techniques such as partial least squares or principal component regression may be used.
(31) In step 105, at least one region in the spectrum with pressure dependent features is determined. It is useful to limit the range of the pressure dependent artefact reference spectrum for use in the method of
(32) In step 106 the pressure dependent artefact reference spectrum is generated taking into account the results of step 104 and step 105. As part of this process it should be ensured that the ends of the spectrum tend to zero such that the removal of the spectrum during step 6 of the method shown in
(33) Whilst the overall process of
(34) In some embodiments of the invention, all of the spectra determined in steps 1 and 4 of
(35) Similarly the invention may be embodied in a spectrometer which can acquire the spectra of step 4 of
(36) With this in mind, the numerical matching steps and numerical subtracting out steps of the overall process shown in
(37) As mentioned above in respect of
(38) Further, step 5A of adjusting for differences in abscissa scales may again be broken down into two distinct processes. The first is adjusting for differences in abscissa scales using background or standard sample substance data and the second is adjusting for abscissa scale differences using the pressure dependent diamond artefact features. In the embodiment shown in and described below in relation to
(39) At a general level the process shown in
(40) With this summary in mind the process as illustrated in
(41) In step 501 an abscissa shifted version of the reference set of standard ATR spectral data is determined. It will be recalled that this reference set of standard ATR spectral data is in effect a background reading taken on the original reference spectrometer used to develop the pressure dependent diamond artefact reference spectrum.
(42) In step 502 a difference spectrum is determined from the abscissa shifted version of the reference set of ATR spectral data as determined in step 501 and the original version of the reference set of standard ATR spectral data.
(43) In step 503 first derivatives are determined of the difference spectrum, the original set of standard ATR spectral data and the set of spectrometer specific standard ATR spectral data. Thus at this stage one has first derivatives of the difference spectrum, the background spectrum on the reference spectrometer and the background spectrum on the investigating spectrometer.
(44) In step 504 a trial spectrum is determined. This consists of a scaled amount of the first derivative of the difference spectrum summed with the first derivative of the original reference set of standard ATR spectral data.
(45) In step 505 the trial spectrum of step 504 is fitted to the first derivative of the set of spectrometer specific standard ATR spectral data by varying the shift scale factor. Thus at this stage there is the operation of fitting the background spectrum taken on the reference spectrometer to the background spectrum taken on the investigating spectrometer with the actual fit being carried out using first derivatives to filter out slowly varying/baseline features. Out of the end of this process a best fit scale factor is determined which is representative of the difference in abscissa calibration between the reference spectrometer and the investigating spectrometer.
(46) Next in step 506 a process of fitting the pressure dependent diamond artefact reference spectrum is begun. The first step as included in step 506 is adjusting the resolution of the pressure dependent artefact reference spectrum to match that of the initial set of ATR spectral data acquired for the sample (as was acquired for example in step 4 of the process shown in
(47) In step 507, the pressure dependent diamond artefact reference spectrum is operated on in dependence on the best fit shift scale factor found in step 505 so that the effect of the differences in abscissa calibration can be taken into account. This yields an adjusted artefact reference spectrum which has been shifted in terms of abscissa position. As a result of this, the abscissa position of the adjusted artefact reference spectrum should be close to where the corresponding diamond artefact features should be present in the initial set of ATR spectral data for the sample.
(48) Next in steps beginning with step 508, a process of more finely adjusting the abscissa position of the reference spectrum is undertaken by fitting the adjusted artefact reference spectrum to the initial set of ATR spectral data for the sample in terms of abscissa position. The steps used in this part of the process, namely steps 508-512 are to a large degree a repetition of steps 502-505 described above but are carried out in respect of the spectra including the pressure dependent diamond artefact features rather than the background spectra.
(49) Thus in step 508 an abscissa shifted version of the adjusted artefact reference spectrum is determined. In step 509 a difference spectrum is determined from the abscissa shifted version of the adjusted artefact reference spectrum and the original adjusted artefact reference spectrum.
(50) In step 510 first derivatives are determined of the difference spectrum found in step 509, the original adjusted artefact reference spectrum as found in 507 and the initial set of ATR spectral data for a sample as found for example in step 4 of the process shown in
(51) In step 511 a trial spectrum is determined. This is made up of a scaled amount of the first derivative of the difference spectrum summed with a first derivative of the original adjusted artefact reference spectrum.
(52) Then in step 512 the trial spectrum is fitted to the first derivative of the initial set of ATR spectral data for the sample by varying the shift scale factor. The best fit shift scale factor is then noted.
(53) In step 513 a shift coefficient for shifting the adjusted artefact reference spectrum by an amount which should most closely fit the reference artefact spectrum to the corresponding artefact features in the sample data is determined from the best fit shift scale factor. Thus by the completion of step 513 an optimum abscissa position for the artefact reference spectrum has been determined.
(54) Next in steps 514-519 a sub process of fitting the artefact reference spectrum to the sample data in terms of magnitude is carried out.
(55) This sub process starts in step 514 by taking the trial spectrum of step 511 whilst using the best fit shift scale factor and varying the magnitude of the trial spectrum. Then in step 515 the shift fitted trial spectrum is fitted to the first derivative of the initial set of ATR spectral data for the sample by varying the magnitude scale factor. The best fit magnitude scale factor is then noted.
(56) However at this stage it is appreciated that real features in the data might be skewing the best fit magnitude value. Therefore in step 516 at least one data point in the initial set of ATR data is identified as an outlier in the magnitude best fit.
(57) After this in step 517 the at least one data point is suppressed and the fitting step of 515 is repeated with that data point suppressed to yield a modified best fit magnitude scale factor. An improved best fit scale factor should thereby be obtained.
(58) In steps 518, steps 515-517 may be repeated until predetermined conditions are satisfied or for predetermined number of iterations with new outlier data points being determined and suppressed in each iteration. This should improve the fit. In one specific example the process may be repeated three times. In another implementation the process might be repeated until the magnitude scale factor stabilises, that is to say, until the variation of magnitude scale factor between one iteration and the next is below some threshold value, for example.
(59) In step 519 a magnitude coefficient is determined from the best fit magnitude scale factor.
(60) The shift coefficient determined in step 513 and magnitude coefficient determined in step 519 are then available for use in determining the best abscissa position and magnitude for the adjusted artefact reference spectrum to facilitate its removal from the sample data.
(61) The process of numerically subtracting out the numerically matched pressure dependent artefact spectrum, making use of the shift coefficients and magnitude coefficients determined by the process shown in
(62) In step 601 the reasonableness of the shift coefficient and magnitude coefficient is checked. In particular the shift coefficient and magnitude coefficient are checked against respective thresholds. Thus, for example, a maximum plausible value for the shift coefficient and the magnitude coefficient may be determined based on the biggest shift which could be expected and the largest artefact features which could be expected under the maximum pressure exertable in any typical ATR spectrometer. These maximum values could then be used as upper thresholds for the coefficient.
(63) In step 602 the diamond artefact reference spectrum is scaled in dependence on the magnitude coefficient to generate a scaled diamond artefact reference spectrum.
(64) In step 603 a shifted difference spectrum for the diamond artefact reference spectrum is determined in dependence on the shift coefficient. In fact this means determining an abscissa shifted version of the artefact reference spectrum, determining a difference spectrum from the abscissa shifted and original versions of the diamond artefact reference spectrum to yield the shift different spectrum. This shift difference spectrum can then be scaled in dependence on the shift coefficient.
(65) In step 604 the scaled diamond artefact reference spectrum and scaled shift difference spectrum can be summed to generate the spectrum to the subtracted out.
(66) This spectrum is then converted back to transmittance so that it may be subtracted out of the sample data (also in transmittance) by dividing the spectra. This avoids losing any negative terms.
(67)
(68) Below is a description of the matching and subtracting processes of steps 5 and 6 of
(69) An example spectrum for polyethylene before correction is shown in
(70) The series of steps described below start from a position where, from the reference (or calibration) spectrometer, we have available the pressure dependent diamond artefact reference spectrum (or restricted range ATR artefact spectrum/correction spectrum) and the reference set of standard ATR spectral data for a standard sample substance (the reference ATR background). Further we have available the initial set of spectral data for a sample (the uncorrected sample spectrum) and a spectrometer specific set of standard ATR spectral data for the standard sample substance (the target ATR background).
(71) Note that the terminology used in the example below is in some instances different from that used above in the description of
(72) a) truncate the range of the calibration background to a suitable region of strong sharp features, in this case 2180-1994 cm.sup.1; convert the spectrum to log (quasi-absorbance).
(73) b) interpolate and truncate the target background to match the calibration background sampling; convert to log.
(74) c) compute the centered difference (essentially the first derivative) of the calibration background and multiply by a ramp function proportional to wavenumber starting at 0.5 for the highest wavenumber in the range. This generates essentially a shift-difference spectrum.
(75) d) compute the adjacent differences (a simple first derivative) of all three spectra and truncate the ranges a little to avoid end effects.
(76) e) least squares fit the derivative calibration spectra to the derivative target spectrum allowing for ordinate offset shift
(77) f) compute the fractional abscissa calibration difference from the ratio of the fit coefficient of the centered difference component and the fit coefficient of the calibration background component.
(78) g) if necessary, broaden the artefact calibration (correction) spectrum to match the resolution of the target sample spectrum. Sufficient accuracy is achieved here with a convolution filter representing the approximate instrument line shape of the target instrument. However, conceptually the process can be substantially more complex.
(79) h) interpolate and shift the correction spectrum to match the data interval and abscissa calibration as determined by steps a-f; convert to log.
(80) i) similarly to step c, compute the centered difference times ramp of the correction spectrum to yield the shift-difference spectrum.
(81) j) truncate the target spectrum to the range of the correction spectra and convert to log.
(82) k) least squares fit the correction spectra to the target spectrum allowing for ordinate offset.
(83) l) compute the rms fit residue (sigma)
(84) m) rerun the least squares fit excluding points corresponding to outliers with residue outside +/4 sigma
(85) n) recompute sigma excluding outliers
(86) o) iterate steps m and n a suitable number of times (we used 3)
(87) p) check that the fit coefficients for the correction spectrum and the shift-difference spectrum are sensible. We set the scale of the correction spectrum to be the largest we could ever expect, meaning that its coefficient should never exceed 1. Equally, if the shift calibration performed in steps a-f is effective, the scale of the shift-difference coefficient should never exceed 1 in a realistic correction situation.
(88) q) provided the fit coefficients are sensible, compute the scaled combination of correction and shift-difference spectra, take the antilog (convert to transmittance) and divide into the full range sample transmittance spectrum over the correction range.
(89) Below are details of some more specific and optional details of the method as performed by the applicant in developing the present invention.
(90) In developing the diamond artefact reference spectrum spectral resolution of 2 cm.sup.1 might typically be used.
(91) In limiting the range of, or trimming the artefact reference spectrum, then it may be appropriate to set the limits on the range of the spectrum to 2700-1800 cm.sup.1.
(92) Note that when adjusting for differences in abscissa scales between the reference and investigating (target) instrument, multipoint abscissa calibration is needed for dispersive spectrometers. On the other hand for Fourier Transform (FT) instruments, for example, a single scale factor should be adequate.
(93) When producing a background or standard sample spectrum, then whilst above the diamond ATR substrate itself is used as the standard sample substance, it would be possible to use other substances. In particular, for example, a liquid such as toluene which requires no pressure to keep it in intimate contact with the ATR crystal might be used.
(94) Further, whilst in the specific examples described above, first derivatives are used for preprocessing/filtering the data, other preprocessing might be used. For example different filters such as second derivatives or other filters may be used, as might baseline subtraction.
(95) As part of the abscissa matching process, the shift difference spectrums mentioned above might be determined as an approximation by the use of a first derivative times a linear ramp function which is proportional to wave number.
(96) In step 506 described in relation to
(97) When shifting the artefact spectrum to match the abscissa scale of the investigating spectrometer for FT instruments, it is appropriate to use the predetermined abscissa scaling factor whereas for dispersive spectrometers the multipoint abscissa calibration could be used. Further cubic spline or higher order interpolation may be used in conjunction with the scaled abscissa value to generate the shift.
(98) When one is fitting the adjusted artefact spectrum to the sample spectrum in terms of magnitude, offset slope and other polynomial terms may be included in the fit to help in the fitting process.
(99) It should also be noted that the step of shifting the artefact spectrum based on comparing the artefact reference spectrum to the position of the corresponding features in the sample data as outlined in steps 508-513 of