I took this yesterday - what causes the purple flare and how can I avoid it? I'm guessing it's the sun but although I've noticed something similar in a couple of other shots, the vast majority of my ones featuring the sun have no such problems.
The EXIF data is: D40, 32mm (using the kit lens), 0.004s, f/14, ISO 200