Agent skill
astromeasurements-jl
Develop and maintain AstroMeasurements.jl, a Julia library for computing astrodynamics measurements from observers. Use when working on AstroMeasurements.jl, implementing observation models, computing measurement Jacobians, or simulating orbit determination observations.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/astromeasurements-jl-hammerhead-space-agenticcodingrules
SKILL.md
AstroMeasurements.jl
Julia library for computing astrodynamic measurements from various observer types. Repo: HAMMERHEAD-Space/AstroMeasurements.jl
Architecture
Observer Types
| Type | Measurements | Description |
|---|---|---|
Radar |
rho, rho_dot, alpha, delta | Range, range-rate, RA, Dec |
RangeOnly |
rho, rho_dot | Range and range-rate only |
Optical |
alpha, delta, alpha_dot, delta_dot | Angles and angular rates |
AngleOnly |
alpha, delta | RA and Dec only |
GNSSType |
x,y,z,vx,vy,vz | Full state from GNSS |
FullStateType |
x,y,z,vx,vy,vz | Perfect state observation (simulation) |
Source Layout
src/
AstroMeasurements.jl # Module entry, exports, includes
constants.jl # Physical constants
observer_types.jl # Observer type definitions
observer_functions.jl # Shared observer utilities
get_measurement.jl # Core measurement computation
get_measurement_jacobian.jl # Analytical Jacobians
radar.jl # Radar-specific logic
optical.jl # Optical-specific logic
gnss.jl # GNSS-specific logic
fullstate.jl # Full-state observer logic
Key Patterns
Core API
# Compute measurement from observer
meas = get_measurement(observer, state, params...)
# Compute analytical Jacobian
H = get_measurement_jacobian(observer, state, params...)
Multiple dispatch on observer type selects the correct measurement model.
Analytical Jacobians
Hand-derived Jacobians verified against ForwardDiff in tests. This provides:
- Better performance than AD for orbit determination inner loops
- Validated correctness against automatic differentiation
Features
- Light-time correction: Optional for ground station observations
- Elevation masking: Configurable elevation masks for visibility checking
- Frame transformations: Uses
SatelliteToolboxTransformationsfor ECI/ECEF conversion
Adding a New Observer Type
- Define observer struct in
observer_types.jl - Implement
get_measurement()dispatch for the new type - Derive and implement analytical Jacobian in
get_measurement_jacobian.jl - Validate Jacobian against ForwardDiff in tests
- Add
@check_allocstest for measurement computation
Dependencies
AstroCoords0.3,Parameters0.12,StaticArraysCore1SatelliteToolboxTransformations1 (frame transformations)- Test:
AllocCheck,Aqua,ForwardDiff,JET
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?