Skip to content
Back to skills

Satellitetoolbox Gravity Hammerhead Space Agenticcodingrules

ASecurity

SatelliteToolboxGravityModels.jl for spherical harmonic gravity field computation. Use when loading gravity models (EGM96, EGM2008), computing gravitational acceleration or potential, or working with ICGEM gravity field files.

  • 30 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
ai-agentsgoangulargitperformance

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill satellitetoolbox-gravity-hammerhead-space-agenticcodingrules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Satellitetoolbox Gravity Hammerhead Space Agenticcodingrules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Satellitetoolbox Gravity Hammerhead Space Agenticcodingrules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-satellitetoolbox-gravity-hammerhead-space-agenticc-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-satellitetoolbox-gravity-hammerhead-space-agenticc-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: satellitetoolbox-gravity
description: SatelliteToolboxGravityModels.jl for spherical harmonic gravity field computation. Use when loading gravity models (EGM96, EGM2008), computing gravitational acceleration or potential, or working with ICGEM gravity field files.
---

# SatelliteToolboxGravityModels.jl

Spherical harmonic gravity field modeling. Repo: [JuliaSpace/SatelliteToolboxGravityModels.jl](https://github.com/JuliaSpace/SatelliteToolboxGravityModels.jl)

## Loading a Model

```julia
using SatelliteToolboxGravityModels

# Load from ICGEM file (downloads and caches automatically)
model = GravityModels.load(IcgemFile, fetch_icgem_file(:EGM96))
model = GravityModels.load(IcgemFile, fetch_icgem_file(:EGM2008))
```

## Computing Accelerations

All positions must be in **ITRF (body-fixed frame)** in **meters**.

```julia
# Gravitational acceleration (mass-attraction only) -> SVector{3} [m/s²]
a = GravityModels.gravitational_acceleration(model, r_itrf; max_degree=70, max_order=70)

# Gravity acceleration (includes centrifugal) -> SVector{3} [m/s²]
g = GravityModels.gravity_acceleration(model, r_itrf; max_degree=70)

# Gravitational potential -> scalar [J/kg]
U = GravityModels.gravitational_potential(model, r_itrf; max_degree=70)

# Field derivative in spherical coords -> (dU/dr, dU/dϕ, dU/dλ)
fd = GravityModels.gravitational_field_derivative(model, r_itrf; max_degree=70)
```

## Pre-allocated Legendre Buffers (for hot-path performance)

```julia
P  = LowerTriangularStorage{RowMajor, Float64}(max_degree + 1)
dP = LowerTriangularStorage{RowMajor, Float64}(max_degree + 1)
a  = GravityModels.gravitational_acceleration(model, r; max_degree=70, P=P, dP=dP)
```

## Model Queries

```julia
GravityModels.gravity_constant(model)       # μ [m³/s²]
GravityModels.radius(model)                 # Reference radius [m]
GravityModels.maximum_degree(model)         # Max available degree
GravityModels.coefficients(model, n, m)     # (Clm, Slm) at degree n, order m
GravityModels.coefficient_norm(model)       # :full, :schmidt, or :unnormalized
```

## Key Conventions
- Positions in **ITRF, meters**. Returns in **m/s²**.
- `max_degree` and `max_order` keywords truncate the expansion
- Time-varying coefficients supported (pass `time` argument as seconds since J2000 or `DateTime`)
- AD support via ForwardDiff/Zygote package extension
- Uses `LowerTriangularStorage{RowMajor}` from SatelliteToolboxBase for efficient coefficient storage

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.