An algorithm to correct and/or scale an electrical current-based coordinate system can include the determination of one or more global transformation or interpolation functions and/or one or more local transformation functions. The global and local transformation functions can be determined by calculating a global metric tensor and a number of local metric tensors. The metric tensors can be calculated based on pre-determined and measured distances between closely-spaced sensors on a catheter.