Agent skill
satellitetoolbox-legendre
SatelliteToolboxLegendre.jl for computing associated Legendre functions and derivatives. Use when working with spherical harmonics, gravity field expansions, or geomagnetic field computations.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/satellitetoolbox-legendre
SKILL.md
SatelliteToolboxLegendre.jl
Associated Legendre functions and derivatives with multiple normalization options. Repo: JuliaSpace/SatelliteToolboxLegendre.jl
Computing Legendre Functions
# 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
(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
Nselects normalization:Val(:full),Val(:schmidt),Val(:unnormalized) - Angle
ϕin radians - Indexing:
P[n+1, m+1]for degreen, orderm - Optional
ph_term=trueincludes Condon-Shortley phase(-1)^m - In-place variants infer
n_max/m_maxfrom matrix dimensions if omitted - Zero external dependencies (pure Julia)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?