quality:correction, stylistic:style_transfer
Spain

Spain was an early adopter in the development of solar energy, since it is one of the countries of Europe with more hours of sunshine. The Spanish government committed to achieving a target of 12 percent of primary energy from renewable energy by 2010 with an installed solar generating capacity of 3000 megawatts (MW). Spain is the top tenth in the installed PV solar capacity and used to export 80 percent of solar power output to Germany. Total solar power in Spain reached nearly 7 GW by the end of 2016 including both installed PV and CSP. Nearly 8 TWh of electricity was generated from photovoltaics, and 5 TWh from CSP plants in 2016. Solar PV accounted for nearly 3% of total electricity generation in 2016 along with an additional of 1.9% from solar thermal.