Text this: An algorithm for evaluation of lightning electromagnetic fields at difference distances with respect to lightning channel