Author Topic: Log wt % output  (Read 5854 times)

Malcolm Roberts

  • Professor
  • ****
  • Posts: 134
Log wt % output
« on: June 01, 2015, 08:21:00 PM »
I’m trying to fathom log wt % output in calcimage. A user has asked for this to highlight variation at low cons. However, I can find no information on what the transformation entails as I cannot match corresponding values between the normal wt % and the log wt% values. There is no info in the calcimage v10.4.5 user guide nor seemingly on line. Not even GS discussion forum has anything. Attached two images as an example. Ignore the pen marks……
Cheers,
Malc.

John Donovan

  • Administrator
  • Emeritus
  • *****
  • Posts: 3265
  • Other duties as assigned...
    • Probe Software
Re: Log wt % output
« Reply #1 on: June 01, 2015, 08:43:16 PM »
I’m trying to fathom log wt % output in calcimage. A user has asked for this to highlight variation at low cons. However, I can find no information on what the transformation entails as I cannot match corresponding values between the normal wt % and the log wt% values. There is no info in the calcimage v10.4.5 user guide nor seemingly on line. Not even GS discussion forum has anything. Attached two images as an example. Ignore the pen marks……
Cheers,
Malc.

Hi Malcolm,
Here is the code I'm using to calculate log wt%. It's just the natural log! Best to open the .dat file in Excel to check the actual data.
john

' Save log weight percent results to LogWeightPercentData
If CalcImageCalculateLogWeightPercentsFlag Then

sum! = 0#
For i% = 1 To CalcImageOldSample(1).LastChan%
sum! = sum! + CalcImageAnalysis.WtPercents!(i%)
If CalcImageAnalysis.WtPercents!(i%) < MINIMUM_WEIGHT_LOG_VALUE! Then CalcImageAnalysis.WtPercents!(i%) = MINIMUM_WEIGHT_LOG_VALUE!
CalcImageAnalysis.CalData!(1, i%) = Log(CalcImageAnalysis.WtPercents!(i%))
Next i%

' Store log weight percent (if sum is greater than MINIMUM_SUM_WEIGHT!)
For i% = 1 To CalcImageOldSample(1).LastChan%
If sum! > MINIMUM_SUM_WEIGHT! Then
tLogWeightPercent!(i%) = CalcImageAnalysis.CalData!(1, i%)
Else
tLogWeightPercent!(i%) = BLANKINGVALUE!
End If
Next i%
John J. Donovan, Pres. 
(541) 343-3400

"Not Absolutely Certain, Yet Reliable"

Malcolm Roberts

  • Professor
  • ****
  • Posts: 134
Re: Log wt % output
« Reply #2 on: June 01, 2015, 10:49:37 PM »
Thanks John
I had my suspicions that it might be natural. Good to know.........
Cheers,
Malc.

Malcolm Roberts

  • Professor
  • ****
  • Posts: 134
Re: Log wt % output
« Reply #3 on: August 25, 2015, 07:29:20 PM »
John..... Would it be possible to get a log base 10 option? I am pondering ways of dragging out subtlety in data sets and though this might work.

Probeman

  • Emeritus
  • *****
  • Posts: 2828
  • Never sleeps...
    • John Donovan
Re: Log wt % output
« Reply #4 on: August 26, 2015, 10:38:20 AM »
John..... Would it be possible to get a log base 10 option? I am pondering ways of dragging out subtlety in data sets and though this might work.

Hi Malcolm,
I'm pretty sure that both log base methods would give the same visual result.   Can you perform the two different log calculations on the quant (elemental) output .dat file and see if they look any different in Surfer?
john
The only stupid question is the one not asked!

Malcolm Roberts

  • Professor
  • ****
  • Posts: 134
Re: Log wt % output
« Reply #5 on: August 27, 2015, 06:55:17 PM »
I've give it a go.... Watch this space......