cali.Rd
This function shifts the x varibale left or right so that it's TSP peak sits at 0 ppm.
cali(x, p)
x | The spectrum you want to calibrate as an array |
---|---|
p | The matched ppm variable to the x you want to calibrate |
A spectrum that is calibrated to tsp
cali()
finds how far away the maximum value of of x between -0.2 and 0.2 is from the ppm variable closest to 0.
It then adds and subtracts the appropriate amount of values on either end of the spectrum so that x's TSP peak resides at 0.
Kyle Bario kylebario1@gmail.com