We present a Matlab-based routine, Bval that calculates the fit to the Gutenberg-Richter frequency-magnitude distribution (GR-FMD). This code could be readily adapted or modified for a broad range of seismological applications.
For sample use see "script_plot.m" and "script_Mc" to recreate the supplementary figure 8 within the corresponding manuscript (Schultz et al., 2018).
References:
Schultz, R., Atkinson, G., Eaton, D. W., Gu, Y. J., & Kao, H. (2018).
Hydraulic fracturing volume is associated with induced earthquake productivity in the Duvernay play
Science, 359(6373), 304-308, doi: 10.1126/science.aao0159.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details: http://www.gnu.org/licenses/