psp-spectral-analysis

Analyze PSP FIELDS magnetometer data with CDF loading and spectral analysis.

1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/huangzesen/zesen-huang --skill psp-spectral-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: psp-spectral-analysis
Source: https://github.com/huangzesen/zesen-huang/tree/main/huang-zesen/psp-spectral-analysis
Command: npx skills add https://github.com/huangzesen/zesen-huang --skill psp-spectral-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the complex process of analyzing PSP FIELDS magnetometer data, ensuring accurate and consistent results with control experiments and stability notes.

Core Features & Use Cases

  • End-to-End Workflow: CDF loading, epoch conversion, Welch PSD, bandpass + Hilbert phase extraction, circular statistics, and control experiments.
  • Numerical Stability: Offers notes on sosfiltfilt vs filtfilt for numerical stability.
  • Control Experiment Design: Provides guidance on designing control experiments to test the physicality of phase coherence results.
  • Methodological Hierarchy: Offers a comprehensive methodological hierarchy for further analysis.

Quick Start

Analyze the PSP FIELDS magnetometer data from 'psp_fld_l2_mag_rtn_YYYYMMDDHH_v02.cdf' by running the analysis workflow.

Frequently Asked Questions about psp-spectral-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform spectral analysis on PSP FIELDS magnetometer CDF data?

To perform spectral analysis on PSP magnetometer data, you run an end-to-end workflow that loads CDF files, converts epochs, and applies Welch PSD. This process is explicitly designed for high-precision analysis of PSP FIELDS magnetometer data.

How does phase coherence extraction work with bandpass and Hilbert transforms?

Phase coherence extraction works by applying a bandpass filter to magnetometer data and using a Hilbert transform to extract phase. Circular statistics are then computed to quantify the coherence.

Can I use this workflow to design control experiments for phase coherence results?

Yes, you can design control experiments to test the physicality of phase coherence results. The workflow provides explicit guidance for setting up these controls to validate magnetic data analysis outcomes.

Why should I use sosfiltfilt instead of filtfilt for numerical stability in magnetometer data analysis?

You should use sosfiltfilt instead of filtfilt to maintain numerical stability during bandpass filtering for phase extraction. The workflow includes explicit notes recommending sosfiltfilt to prevent filtering errors.

What is the methodological hierarchy for further magnetometer data analysis?

The methodological hierarchy provides a structured framework for advanced analysis steps following initial spectral and phase extraction. It guides further investigation of PSP FIELDS magnetometer data.

Does this analysis workflow require any specific external dependencies to process CDF files?

No specific external dependencies are required. The workflow operates independently to handle CDF loading, epoch conversion, and spectral analysis without needing external library setups.