Skip to content

feat: Add particle data spectrogram calculations#16

Open
Beforerr wants to merge 1 commit intomainfrom
claude/spectrograms-012goCfsUEBvmMF5Y8fSWoPU
Open

feat: Add particle data spectrogram calculations#16
Beforerr wants to merge 1 commit intomainfrom
claude/spectrograms-012goCfsUEBvmMF5Y8fSWoPU

Conversation

@Beforerr
Copy link
Copy Markdown
Member

@Beforerr Beforerr commented Feb 8, 2026

Implement comprehensive spectrogram computation functions for particle distribution data, including energy, angular (theta/phi), pitch angle, and gyrophase spectrograms.

Key features:

  • energy_spectrogram: omnidirectional flux vs energy/time
  • theta_spectrogram, phi_spectrogram: angular distributions
  • pitch_angle_spectrogram: pitch angle vs time (requires B field)
  • gyrophase_spectrogram: gyrophase vs time (requires B field)

Implementation based on SPEDAS/pyspedas conventions:

  • Proper solid angle weighting using omega weights
  • Coordinate system matching SPEDAS (-90° to 90° latitude)
  • Support for multiple aggregation methods (mean, sum, median)
  • Handles 3-D and 4-D (time-varying) particle data
  • NaN/Inf handling for data quality

Includes comprehensive design documentation (SPECTROGRAMS_DESIGN.md) detailing implementation choices, comparison with pyspedas, and areas for future improvement.

https://claude.ai/code/session_012goCfsUEBvmMF5Y8fSWoPU

Implement comprehensive spectrogram computation functions for particle
distribution data, including energy, angular (theta/phi), pitch angle,
and gyrophase spectrograms.

Key features:
- energy_spectrogram: omnidirectional flux vs energy/time
- theta_spectrogram, phi_spectrogram: angular distributions
- pitch_angle_spectrogram: pitch angle vs time (requires B field)
- gyrophase_spectrogram: gyrophase vs time (requires B field)

Implementation based on SPEDAS/pyspedas conventions:
- Proper solid angle weighting using omega weights
- Coordinate system matching SPEDAS (-90° to 90° latitude)
- Support for multiple aggregation methods (mean, sum, median)
- Handles 3-D and 4-D (time-varying) particle data
- NaN/Inf handling for data quality

Includes comprehensive design documentation (SPECTROGRAMS_DESIGN.md)
detailing implementation choices, comparison with pyspedas, and areas
for future improvement.

https://claude.ai/code/session_012goCfsUEBvmMF5Y8fSWoPU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants