The effect of rain on photovoltaic systems