Statistics for Estimating ionospheric currents by inversion from ground-based geomagnetic data and calculating geoelectric fields for studies of geomagnetically induced currents