Logo van Earthquake Mc

Earthquake Mc

Community
GuangyaoYin
earthquake-mc

Estimate earthquake catalog magnitude of completeness Mc using normalized cumulative occurrence curves, especially the Petrillo & Zhuang normalized quantity method used in the EMQTP fault-zone correlation paper. Use when the user asks to calculate, explain, plot, justify, or report Mc/completeness magnitude for earthquake catalogs before b-value, Gutenberg-Richter, declustering, correlation, or seismicity-rate analysis.

Overzicht

UitgeverGuangyaoYin
Repositoryskills
Skillnaamearthquake-mc
Sterren
64
Forks
2
Meegeleverde bestanden
2
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 2

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door GuangyaoYin op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Earthquake Mc in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/GuangyaoYin/skills/tree/main/skills/earthquake-mc
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GuangyaoYin/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/earthquake-mc .claude/skills/earthquake-mc
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Earthquake Mc in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Earthquake Mc automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Earthquake Mc niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Earthquake Mc

Core Task

Estimate and explain the magnitude of completeness (Mc) for an earthquake catalog by comparing normalized cumulative occurrence curves for a range of threshold magnitudes. Use this skill when a catalog must be filtered to a complete magnitude range before downstream seismicity statistics.

The motivating paper is:

  • Correlation of earthquake occurrence among major fault zones in the eastern margin of the Tibetan Plateau through Big Data Analysis, The Innovation Geoscience, 2025.
  • It cites Petrillo and Zhuang (2023), Verifying the Magnitude Dependence in Earthquake Occurrence, Phys. Rev. Lett. 131, 154101.
  • In the EMQTP case, threshold curves were tested for Mc = 0.5, 1.0, 1.5, 2.0, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.5. Curves were dispersed for Mc <= 2.0 and nearly overlapped for Mc >= 2.5, so the paper adopted Mc = 2.5.

Do not hard-code 2.5 for new catalogs. Treat it as an example from that paper.

Required Inputs

Require or infer:

  • Event origin time or an event order column.
  • Magnitude column.
  • Study region, time window, catalog source, magnitude type, and magnitude precision if available.
  • Candidate magnitude thresholds, usually spanning below and above the likely completeness magnitude.

Before estimating Mc, check:

  • Time values are parseable and sorted chronologically.
  • Magnitudes are numeric and use one magnitude scale or documented mixed scales.
  • The catalog time span does not combine strongly incompatible network eras without noting the limitation.
  • Each candidate threshold has enough events to support a curve. Flag thresholds with too few events.

Normalized Quantity Method

For each threshold magnitude m_th, select events with M >= m_th. Compute the normalized cumulative count as a function of time:

text
F(t | m_th) = count(events with time <= t and M >= m_th) / count(events with M >= m_th)

This is the empirical cumulative distribution of occurrence times for events above each threshold.

Interpretation:

  • If m_th is below the completeness magnitude, early or low-detectability periods usually miss small events. The normalized curves for lower thresholds separate from higher-threshold curves.
  • If m_th is at or above Mc, the curves for all higher thresholds should become visually indistinct or nearly collapse, apart from small noise.
  • Choose the lowest threshold at which the curve family is stable/collapsed and event counts remain adequate.

The method is a catalog-completeness diagnostic, not a standalone proof. Combine the plot with event counts, known station/network changes, magnitude precision, and study purpose.

Workflow

  1. Load the catalog and identify time and magnitude fields.
  2. Define candidate thresholds. If the user does not provide them, use the catalog magnitude precision:
    • 0.1 spacing for high-resolution catalogs.
    • 0.5 spacing for coarse historical or regional catalogs.
    • Include several thresholds below and above the apparent transition.
  3. For each threshold, calculate event count and F(t | m_th).
  4. Plot all normalized cumulative curves on the same time axis. Overlay catalog events or a magnitude-time scatter when useful.
  5. Quantify curve separation using a common time grid:
    • Interpolate each threshold curve on the same grid.
    • Compare the envelope of curves from each candidate threshold upward.
    • Report max and median separation; use this only as a guide, not a substitute for visual inspection.
  6. Select the lowest threshold where higher-threshold curves collapse and sample size is still sufficient.
  7. Write a short justification that includes candidate thresholds, accepted Mc, rejected lower thresholds, event counts, and known caveats.

Script

Use scripts/estimate_mc_normalized.py when the user provides a CSV catalog or asks for a reproducible calculation.

Example:

bash
python scripts/estimate_mc_normalized.py catalog.csv \
  --time-column time \
  --mag-column magnitude \
  --thresholds 0.5,1.0,1.5,2.0,2.5,2.6,2.7,2.8,2.9,3.0,3.5 \
  --out-dir mc_results

The script writes:

  • normalized_curves.csv
  • threshold_summary.csv
  • mc_report.md
  • normalized_curves.png if matplotlib is installed

Treat the script recommendation as a first pass. Always inspect the plot and the event counts before giving the final Mc.

Reporting Template

When reporting Mc, include:

text
Catalog: <source, region, time window>
Method: normalized cumulative occurrence curves after Petrillo & Zhuang (2023)
Candidate thresholds: <list>
Accepted Mc: <value>
Reason: curves below <value> are separated; curves from <value> upward nearly overlap/collapse.
Event count at Mc: <n>
Caveats: <network changes, magnitude type, sparse high-threshold curves, mixed catalog sources, etc.>
Downstream use: use events with M >= Mc for statistics requiring catalog completeness.

Relationship To b-Value

Do not claim that the EMQTP paper computed a b-value unless the user provides additional supporting text. In that paper's main text, the relevant section uses the normalized quantity method to choose Mc; it does not present a b-value calculation workflow.

If the user asks to calculate b-value after Mc, use a standard Gutenberg-Richter/Aki-Utsu maximum-likelihood estimate on events with M >= Mc:

text
b = log10(e) / (mean(M) - (Mc - deltaM / 2))

Use deltaM equal to the catalog magnitude bin width, commonly 0.1 when magnitudes are rounded to 0.1. State whether the b-value is calculated from the raw or declustered catalog.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Earthquake Mc?

Estimate earthquake catalog magnitude of completeness Mc using normalized cumulative occurrence curves, especially the Petrillo & Zhuang normalized quantity method used in the EMQTP fault-zone correlation paper. Use when the user asks to calculate, explain, plot, justify, or report Mc/completeness magnitude for earthquake catalogs before b-value, Gutenberg-Richter, declustering, correlation, or seismicity-rate analysis.

Waarom Earthquake Mc gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Earthquake Mc bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Earthquake Mc in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/GuangyaoYin/skills/tree/main/skills/earthquake-mc. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Earthquake Mc gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Earthquake Mc gebruiken?

Zoveel als je wilt. Je kunt Earthquake Mc gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Earthquake Mc gratis?

Deze skill is door GuangyaoYin op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇