A spatial simulation model for vegetation dynamics