WeightedCells function

Compute the square-root of the cosine of the latitude weighting on the given array.