Added code to calculate a grid of pointings.