Code for analysing linecuts of magnetic and optical images to determine resolution.