Back to skills
SKILL.md
Satellitetoolbox Legendre Hammerhead Space Agenticcodingrules
ASecuritySatelliteToolboxLegendre.jl for computing associated Legendre functions and derivatives. Use when working with spherical harmonics, gravity field expansions, or geomagnetic field computations.
- 30 stars
- 0 votes
- 0 copies
- 0 views
- Added November 12, 2026
Security analysis
100/100npx -y skills add majiayu000/claude-skill-registry-data --skill satellitetoolbox-legendre-hammerhead-space-agenticcodingrules --agent claude-codeAre you the author of Satellitetoolbox Legendre Hammerhead Space Agenticcodingrules?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/majiayu000-satellitetoolbox-legendre-hammerhead-space-agentic-claude-skill-registry-data)---
name: satellitetoolbox-legendre
description: SatelliteToolboxLegendre.jl for computing associated Legendre functions and derivatives. Use when working with spherical harmonics, gravity field expansions, or geomagnetic field computations.
---
# SatelliteToolboxLegendre.jl
Associated Legendre functions and derivatives with multiple normalization options. Repo: [JuliaSpace/SatelliteToolboxLegendre.jl](https://github.com/JuliaSpace/SatelliteToolboxLegendre.jl)
## Computing Legendre Functions
```julia
# P[n+1, m+1] = P_{n,m}[cos(ϕ)]
P = legendre(Val(:full), ϕ, n_max) # Full normalization
P = legendre(Val(:schmidt), ϕ, n_max, m_max) # Schmidt semi-normalization
P = legendre(Val(:unnormalized), ϕ, n_max) # Unnormalized
# In-place (zero-allocation)
legendre!(Val(:full), P, ϕ, n_max, m_max)
```
## Computing Derivatives
```julia
(dP, P) = dlegendre(Val(:full), ϕ, n_max) # Returns both dP and P
dlegendre!(dP, ϕ, P, n_max, m_max) # In-place (P must be pre-computed)
```
## Key Conventions
- First argument `N` selects normalization: `Val(:full)`, `Val(:schmidt)`, `Val(:unnormalized)`
- Angle `ϕ` in **radians**
- Indexing: `P[n+1, m+1]` for degree `n`, order `m`
- Optional `ph_term=true` includes Condon-Shortley phase `(-1)^m`
- In-place variants infer `n_max`/`m_max` from matrix dimensions if omitted
- Zero external dependencies (pure Julia)
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.