Statistics for Planning of irrigation to optimize the effect of rainfall