On the mapping of ionospheric convection into the magnetosphere