Add a few functions for calculating the area weights for global variables