An analysis of rainfall based on entropy theory