Remote monitoring of the magnetospheric plasma density via resonance measures of the geomagnetic field lines