distance calculation
Calculate the distance from specific qualitative values to each pixel on the ascii grid map.