Many of the codes used in this paper were written by Jon Claerbout. Additionally, the derivation of the weighting functions was shown to me by Sergey Fomel.