Agent skill
satellitetoolbox-celestialbodies
SatelliteToolboxCelestialBodies.jl for computing Sun and Moon positions and velocities in the MOD frame. Use when computing third-body positions, Sun/Moon ephemeris, or eclipse geometry.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/satellitetoolbox-celestialbodies
SKILL.md
SatelliteToolboxCelestialBodies.jl
Analytical Sun and Moon position/velocity in the Mean-Of-Date (MOD) reference frame. Repo: JuliaSpace/SatelliteToolboxCelestialBodies.jl
Sun
r_sun = sun_position_mod(jd_tdb) # -> SVector{3, Float64} [km]
r_sun = sun_position_mod(date_tdb) # DateTime input
v_sun = sun_velocity_mod(jd_tdb) # -> SVector{3, Float64} [km/s]
Moon
r_moon = moon_position_mod(jd_tdb) # Default: Meeus algorithm (~10" accuracy)
r_moon = moon_position_mod(jd_tdb, Val(:Vallado)) # Faster, lower accuracy (~0.3°)
r_moon = moon_position_mod(jd_tdb, Val(:Meeus)) # Explicit high-accuracy
Key Conventions
- Time must be in TDB (Barycentric Dynamical Time) as Julian Day or
DateTime - Output frame: MOD (Mean-Of-Date) -- apply precession/nutation for J2000/GCRF
- Positions in km, velocities in km/s (note: unlike other SatelliteToolbox packages)
- Returns
SVector{3, Float64} - Model selection via
Val(:symbol)dispatch
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?