A system and method for obtaining an OIS coordinate frame comprising an electronic control unit configured to determine a local 3D electric field loop, create a zero mean version of E(t) over a depolarization interval, compute an Ė; value at each of a plurality of time intervals, compute an initial estimate of ŵ; from a cross product of E and the Ė; value for each of the plurality of time intervals, average the initial estimate of ŵ; from each of the plurality of time for a best estimate of ŵ;, determine a plurality of â(θ) values and using the corresponding {circumflex over (n)}(θ) values, compute a composite match score, and choose at least one best value for â and a best value for {circumflex over (n)}.