Train passengers can expect altered services and busier carriages during the Open Championship at St Andrews from July 15.
ScotRail is running an altered service until July 19 for spectators using Leuchars, which is the closest railway station to the event.
Most Edinburgh to Perth trains will be diverted to start and finish at Dundee, calling at Leuchars.
Replacement buses will run between Ladybank and Perth on affected services.
Some Fife services to and from Glenrothes, will also be diverted to start and finish at Dundee, with replacement buses between Kirkcaldy and Glenrothes with Thornton.
Some trains will be too long for the platforms at Portlethen, Carnoustie, Broughty Ferry and Springfield.
Buses will run instead to allow connections with train services.
A ScotRail spokesperson said: “Passengers are encouraged to check our website or the ScotRail app to see if their service is affected.”
Leuchars Railway Station car park will be closed for the duration of the Open from midnight next Monday until 10pm on July 21.
Alternative parking will be provided at Guardbridge Mill, and a free shuttle bus will run between there and Leuchars Station for ScotRail passengers.
Cars cannot be parked at Guardbridge overnight.