Function Repository Resource:

EarthquakeMagnitudeConvert

Source Notebook

Convert between different earthquake magnitude scales

Contributed by: Jason Martinez

ResourceFunction["EarthquakeMagnitudeConvert"][mag,scale1scale2]

converts earthquake magnitude mag from scale1 to scale2.

Details and Options

The magnitude specification should be a real-valued number.
Supported magnitude scales can be obtained via ResourceFunction["EarthquakeMagnitudeConvert"]["Properties"].
Using All as the scale2 argument returns all possible converted values.

Examples

Basic Examples (2) 

Discover equivalent values for an earthquake magnitude in different measurement systems:

In[1]:=
ResourceFunction["EarthquakeMagnitudeConvert"][6, "SeismicMomentMagnitude" -> All]
Out[1]=

Convert between two systems of measurement:

In[2]:=
ResourceFunction["EarthquakeMagnitudeConvert"][6.3, "BroadbandBodyWaveMagnitude" -> "JapanMeteorologicalAgencyMagnitude"]
Out[2]=

Scope (3) 

Find supported magnitude scales:

In[3]:=
ResourceFunction["EarthquakeMagnitudeConvert"]["Properties"]
Out[3]=

Learn the equivalent values for other earthquake magnitude measurements:

In[4]:=
ResourceFunction["EarthquakeMagnitudeConvert"][6, "RichterScaleMagnitude" -> All]
Out[4]=

Explore how different magnitude scales relate:

In[5]:=
ResourceFunction["EarthquakeMagnitudeConvert"][6, "JapanMeteorologicalAgencyMagnitude" -> "SeismicMomentMagnitude"]
Out[5]=

Applications (1) 

Compare how the different scales differ in magnitude:

In[6]:=
data = Table[
   ResourceFunction["EarthquakeMagnitudeConvert"][i, "SeismicMomentMagnitude" -> All], {i, 3, 9, 0.1}];
data = Transpose[{Table[i, {i, 3, 9, 0.1}], #}] & /@ Transpose[Values[data]];
ListPlot[data, Joined -> True]
Out[8]=

Possible Issues (1) 

Magnitude scales are not supported for all possible values:

In[9]:=
ResourceFunction["EarthquakeMagnitudeConvert"][9, "BroadbandBodyWaveMagnitude" -> "JapanMeteorologicalAgencyMagnitude"]
Out[9]=

Version History

  • 1.0.0 – 29 September 2020

Source Metadata

Related Resources

License Information