I would like to add a new column 'Vth' in my table with the following calculation:-
First I need to find the index i of column 'IDS' where the 'IDS' is nearest to 1e-9 (or Log10[IDS] = -9); and then Vth = VGS(i). It should be grouped by Site, Measurement, SWP, Device, Wafer columns as well. That is, each unique combination of Site, Measurement, SWP, Wafer, Device will have one Vth value.
One technique to find exact VTH could be
Find VGS, logIDS, which is just above -9..-- Call it VGS_u, log(IDS)_u
Find VGS, logIDS, which is just below -9..-- Call it VGS_i, log(IDS)_i
calculate slope, m = abs(log(IDS)_u-log(IDS)_i)./abs( abs(VGS_u-VGS_i))
Exact VTH = VGS_i + 1/m*(9-abs(log(IDS)_i)))
Note the SWP column is sweep of VGS in forward (0) and reverse (1) direction; therefore the lower and higher values of VGS need to be taken care of in proper manner. Plot logIDS (y-axis) vs. VGS (x-axis) and overlay by SWP (for a given Site, Measurement, Wafer, Device), to know what I am talking about.