This isn't correctly handling the circular nature of the src/grid cubes. There shouldn't be any NaN values.