/ssw-plugin:ssw-prepfrom ssw-plugin
SDO/AIA solar data ML preprocessing pipeline. Use when Claude needs to: (1) preprocess AIA Level 1 FITS data for machine learning, (2) calibrate solar images (pointing, degradation, exposure), (3) register and normalize solar disk images, (4) batch convert raw FITS to ML-ready format, (5) standardize solar observation data for neural network training. Triggers: 'AIA preprocessing', 'solar data prep', 'FITS preprocessing', 'aia_prep_ml', 'ML-ready solar data', 'calibrate AIA', 'solar image registration', '태양 데이터 전처리', 'AIA 보정', 'ML 전처리'
Ships in ssw-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
SDO/AIA solar data preprocessing pipeline from ssw-tools (https://github.com/sswlab/ssw-tools). Transforms Level 1 FITS data into standardized ML-ready format.
pip install git+https://github.com/sswlab/ssw-tools
Raw AIA Level 1 FITS (4096x4096, variable orientation/brightness)
│
├─ 1. Pointing Correction → Fix spacecraft orientation errors
├─ 2. Registration → North-up, center disk, resample to fixed size
├─ 3. Degradation Correction → Compensate sensor aging over mission lifetime
└─ 4. Exposure Normalization → DN → DN/s (standardize brightness)
│
▼
ML-Ready (1024x1024, float32, DN/s, north-up, centered)
from sunpy.map import Map
import astropy.units as u
from aiapy.calibrate.util import get_correction_table, get_pointing_table
from ssw_tools.prep.sdo_aia import aia_prep_ml
# Load raw FITS
aia_map = Map('aia_lev1_file.fits')
# Fetch calibration tables
pointing_table = get_pointing_table(aia_map.date - 6*u.h, aia_map.date + 6*u.h)
correction_table = get_correction_table()
# Preprocess
prep_map = aia_prep_ml(
aia_map,
pointing_table=pointing_table,
correction_table=correction_table,
resolution=1024, # output size: 512, 1024, or 2048
padding_factor=0.1 # solar disk padding: 0.1=10%, 0.2=20%
)
# Save
prep_map.save('prep_193A.fits', overwrite=True)
| Parameter | Description | Default |
|---|---|---|
aia_map | SunPy Map of AIA Level 1 data | required |
pointing_table | Pointing calibration table | None |
correction_table | Degradation correction table | None |
resolution | Output pixel size (512/1024/2048) | 1024 |
padding_factor | Extra space around solar disk | 0.1 |
Resolution formula: resolution/2 = (1 + padding_factor) × R_sun_pixels
from pathlib import Path
from sunpy.map import Map
import astropy.units as u
from aiapy.calibrate.util import get_correction_table, get_pointing_table
from ssw_tools.prep.sdo_aia import aia_prep_ml
from loguru import logger
input_dir = Path('./raw/')
output_dir = Path('./prep/')
output_dir.mkdir(exist_ok=True)
correction_table = get_correction_table() # fetch once, reuse
for fits_file in sorted(input_dir.glob('*.fits')):
try:
m = Map(str(fits_file))
pt = get_pointing_table(m.date - 6*u.h, m.date + 6*u.h)
prep = aia_prep_ml(m, pt, correction_table, resolution=1024, padding_factor=0.1)
prep.save(str(output_dir / f'prep_{m.wavelength.value:.0f}A_{m.date.isot}.fits'),
overwrite=True)
logger.info(f'Done: {fits_file.name}')
except Exception as e:
logger.error(f'Failed: {fits_file.name}: {e}')
For pipeline stage details, custom configurations, and helper functions, see references/pipeline_details.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tykimos/ssw-plugin --plugin ssw-plugin4 skills in this plugin
/ssw-downloadssw-plugin:ssw-downloadSolar observation data downloader for SDO, STEREO, and Solar Orbiter missions. Use when Claude needs to: (1) download SDO/AIA EUV data from JSOC, (2) download STEREO/SECCHI/EUVI data, (3) download Solar Orbiter/EUI/FSI data, (4) create multi-date time series of solar observations, (5) pair multi-wavelength observations. Triggers: 'solar data download', 'SDO download', 'AIA data', 'STEREO data', 'Solar Orbiter data', 'FITS download', 'sun observation data', 'EUI data', 'EUVI data', '태양 데이터 다운로드', '태양 관측 데이터'/ssw-mlssw-plugin:ssw-mlMachine learning for solar physics using preprocessed SSW data. Use when Claude needs to: (1) train deep learning models on solar EUV images, (2) build solar flare prediction models, (3) perform image-to-image translation between solar instruments, (4) detect/segment coronal holes or active regions, (5) create PyTorch/TensorFlow dataloaders for FITS files, (6) evaluate ML models on solar observation data. Triggers: 'solar ML', 'solar deep learning', 'flare prediction', 'coronal hole detection', 'instrument translation', 'solar image segmentation', 'FITS dataloader', 'solar neural network', '태양 ML', '태양 딥러닝', '플레어 예측', 'solar AI'/ssw-vizssw-plugin:ssw-vizSolar observation data visualization for EUV imagery, ML results, and analysis. Use when Claude needs to: (1) display solar EUV images from FITS files, (2) create multi-wavelength comparison panels, (3) make before/after preprocessing comparisons, (4) visualize ML model predictions on solar data, (5) create solar time-lapse animations, (6) plot intensity distributions of solar images. Triggers: 'solar visualization', 'solar image display', 'FITS visualization', 'EUV image plot', 'multi-wavelength comparison', 'solar animation', 'sun image', '태양 이미지 시각화', '태양 시각화', 'solar plot'Other plugins' skills for the same job