contents

Magnitude Calculation

Once a solution has been found for an event, function calc_netmag is called to calculate average body wave and surface wave magnitudes from amplitudes reported with associated phases.  Body wave magnitudes are only calculated for phases identified as P which were recorded at a suitable distance and have an amplitude reported for a suitable period.  Surface wave magnitudes are calculated for any unidentified phase recorded at a suitable distance with an amplitude measured at a suitable period because surface waves are not included in the location and so are not given an internal phase code if they were reported as LR etc.



There are 6 members of the solution structure that relate to the calculation of magnitudes:


There are 4 members of each phase structure that relate to the calculation of magnitudes:


There are 9 external variables related to magnitudes assigned in read_config and corresponding to lines in config.txt: