extractSpots function

Extract the spot coordinates