---
id: "earthquake_magnitude"
kind: "datatype"
status: "draft"
is_pii: false
name: "Earthquake magnitude"
regexp: "^(?:-[0-3]|\\d|10)(?:[.,]\\d{1,3})?$"
categories: ["science", "environment", "values"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/earthquake_magnitude"
---

# Earthquake magnitude (`earthquake_magnitude`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Size of an earthquake on a magnitude scale: a number with one to three decimals, from below zero for the smallest events a dense network records to about 9.5 for the largest earthquake measured (Valdivia, 1960). Seismic catalogues give it next to the origin time, latitude, longitude and depth of the event and name the scale in the column or beside it: local magnitude (ML), moment magnitude (Mw), body-wave (mb), surface-wave (Ms), duration (Md) and others (magnitude(Mw), ML, mag, magType). The scales are logarithmic and agree only roughly, so a catalogue may hold several magnitudes of one event with their standard errors. A number alone does not tell a magnitude from another measure: the field name does.

- Parent datatype: [`numeric`](https://registry.apicrafter.io/datatype/numeric.md)
- Personal data (PII): no
- Categories: Scientific (science), Environment (protected areas, biodiversity, water, weather, emissions, waste) (environment), All measurable values (percentage, amount and e.t.c) (values)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:-[0-3]|\d|10)(?:[.,]\d{1,3})?$
```

## Examples

- `4.46` — Moment magnitude of an aftershock catalogue
- `1.864` — Local magnitude with three decimals, IPOC catalogue of northern Chile
- `8.8`
- `-0.3` — A micro-earthquake
- `25` (invalid example) — Above every magnitude scale

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `earthquakemagnitudebyname` (field, `common/observations.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- es: Magnitud de un sismo
- ru: Магнитуда землетрясения

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Seismic_magnitude_scales>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/earthquake_magnitude.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/science/earthquake_magnitude.yaml>
