harmonica

Compute gravity and magnetic forward models from prisms and tesseroids.

46|3|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/SteadfastAsArt/geoscience-skills --skill harmonica
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harmonica
Source: https://github.com/SteadfastAsArt/geoscience-skills/tree/main/harmonica
Command: npx skills add https://github.com/SteadfastAsArt/geoscience-skills --skill harmonica

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, boule, harmonica, xarray, verde, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Gravity and magnetic forward modeling to predict subsurface body effects from observed data.

Core Features & Use Cases

  • Gravity and magnetic forward modeling with prisms and tesseroids.
  • Terrain, Bouguer, and derivative corrections; equivalent-source gridding; regional-scale analysis.
  • Use cases include gravity surveys, magnetics interpretation, and multi-scale geophysical studies.

Quick Start

Run a quick forward gravity model for a rectangular prism on a sample grid and compare terrain-corrected Bouguer anomaly.

Frequently Asked Questions about harmonica

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute gravity forward models for a rectangular prism?

You compute gravity forward models by defining rectangular prisms and observation coordinates, then applying Harmonica functions to predict subsurface body effects on observed gravity data.

What is terrain correction in gravity and magnetics modeling?

Terrain correction in gravity modeling adjusts observed data for topographic mass variations, and this Skill applies terrain and Bouguer corrections alongside equivalent-source gridding to isolate true subsurface anomalies.

Can I use tesseroids for regional scale geophysical forward modeling?

Yes, tesseroids support regional-scale geophysical forward modeling, allowing you to compute gravity and magnetic effects from defined bodies across large geographic areas alongside local prism-based analysis.

Does this gravity modeling workflow work with Verde for projections?

Yes, the workflow is compatible with Verde for projections, integrating directly with xarray, numpy, and boule to manage observation coordinates and perform equivalent-source gridding for gravity surveys.

Do I need boule to perform Bouguer corrections for gravity surveys?

Yes, boule is required alongside Harmonica to perform Bouguer and terrain corrections for gravity surveys, providing the necessary reference ellipsoid utilities for accurate gravity data processing.

What's the best way to apply equivalent-source gridding to magnetics interpretation data?

The best way to apply equivalent-source gridding to magnetics interpretation data is using the Harmonica ecosystem, which integrates with Verde and xarray to grid scattered observations and perform derivative corrections.