Code to calculate the electric field from electromagnetic showers