A yellow weather warning was issued for the city, and the majority of Scotland, with some places under an amber warning.