Correcting dropouts in rain data