Characteristics of interplanetary magnetic clouds in relation to their solar association