Measurement of the open magnetic flux in the inner heliosphere down to 0.13 AU