From an old query that came in by a user, I thought I would add an illustrative example here (github gist):
https://gist.github.com/cpelley/6351252This was not accepted as a suitable example for the iris gallery (not iris enough) so I thought I would post it here since I believe people would benefit from more examples working with the tools at their disposal.
This example demonstrates how we might use an external library (pyproj) to calculate the distance from our points in a cube to a specific location, using our cubes grid mapping. We then associate this information onto our original cube as an auxiliary coordinate, since this relates to the original phenomena. Following this, a determination of maximum data value as a function of distance is plotted.
I realise I have not chosen example data for this.
