The hottest day of the year so far has been recorded in Scotland today.

The country has been experiencing high temperatures for weeks, peaking on Thursday in Dumfries and Galloway, and the hot weather is expected to last until the weekend.

The mercury hit a record 29C in Threave, near Castle Douglas.

However, eastern and central areas woke up submerged in sea fog - or haar -, caused by the warm air passing over the cold North Sea.

The Met Office has also issued amber warnings for extreme heat in Northern Ireland, Wales and the south east of England, appealing to people to watch out for heat exhaustion and sunburn.

READ MORE: 'Toxic' pollution at burn with black water and dead fish under investigation by SEPA

BBC Weather said the heat was triggering a few thunderstorms in Dumfries and Galloway with grey, murky skies in some eastern coastal areas and the Northern Isles.

Forecaster Kirsteen MacDonald said: "High pressure across the UK did not really move all week.

"We also have had a cumulative effect, where each day of strong sunshine warms the air further, on top of the warming by descent.

"This is what has caused the hot weather in parts of the UK over the last few days. Temperatures will peak again tomorrow around 28C, possibly 29C.

"This weekend, high pressure will remain in charge across Scotland. Plenty of warm sunshine in the forecast, but temperatures will be down by quite a few degrees. Eastern coasts will continue to be plagued by haar."

The Met Office launched its new extreme heat warning system at the start of June, with amber being the second-highest level in the system.

READ MORE: Councils under pressure due to staff shortages as bin collection is suspended

Heatwaves are becoming more frequent due to human-induced climate change.

The world has already warmed by about 1.2C since the industrial era began, and temperatures are predicted to keep rising unless governments around the world make steep cuts to greenhouse emissions.