.. _example_tmi_weights: Depth/Distance Weighting ======================== Here the code **pfweight_60.exe** and the input file **pfweight.inp** is used to generate distance weighting for the inversion. Files relevant to this part of the example are in the sub-folder *pfweights*. Before running this example, you may want to do the following: - `Download and open the zip folder containing the entire Mag3d example `__ (if not done already) - Learn how to :ref:`run pfweight ` - Learn the format of the :ref:`input file ` Here is the input file for **pfweight_60.exe** .. figure:: ../inputfiles/images/pfweight_input.png :align: center :width: 700 The resulting distance weights are plotted on the mesh below. .. figure:: images/distance_weights.PNG :align: center :width: 500