From radio-analyst
First-pass continuum or cube imaging of a calibrated CASA MS with derived tclean parameters and image-quality assessment. Follows skill 11-imaging.md.
How this command is triggered — by the user, by Claude, or both
Slash command
/radio-analyst:imagecommands/This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
Run first-pass imaging on this calibrated MS: $ARGUMENTS Read `.claude/skills/radio-interferometry/11-imaging.md` before starting. Prerequisite: CORRECTED_DATA populated on the target field(s) — run `/project:calibrate` (and `/project:polcal` for IQUV) first if not. **Workflow:** 1. `ms_workflow_status(ms_path, workdir)` — confirm CORRECTED is populated. 2. **Step 0 — confirm field and Stokes with the user** per 11-imaging.md §0. Never assume mosaic vs. single pointing. Default Stokes='I' unless polcal is complete and the user wants IQUV. 3. Gather placeholders from tool outputs ...
Run first-pass imaging on this calibrated MS: $ARGUMENTS
Read .claude/skills/radio-interferometry/11-imaging.md before starting.
Prerequisite: CORRECTED_DATA populated on the target field(s) — run
/project:calibrate (and /project:polcal for IQUV) first if not.
Workflow:
ms_workflow_status(ms_path, workdir) — confirm CORRECTED is populated.
Step 0 — confirm field and Stokes with the user per 11-imaging.md §0. Never assume mosaic vs. single pointing. Default Stokes='I' unless polcal is complete and the user wants IQUV.
Gather placeholders from tool outputs (no hand math):
ms_observation_info(ms_path) → telescope, center_freq_hzms_spectral_window_list(ms_path) → bandwidth_hzms_antenna_list(ms_path) → dish_diameter_m, n_antms_baseline_lengths(ms_path) → max_baseline_m, expected_beam_major_arcsecms_scan_list(ms_path) → t_on_source_s for the target fieldDerive tclean parameters per 11-imaging.md §Steps 1–7:
ms_tclean(ms_path, imagename, field, stokes, specmode, deconvolver, nterms, gridder, wprojplanes, cell, imsize, weighting='briggs', robust=0.5, niter=50000, threshold, savemodel='modelcolumn', workdir, execute=False) → run the generated script. Wait for completion.
ms_image_stats(imagename.image.pbcor, psf_path=imagename.psf)
— quality metrics.
Apply 11-imaging.md §Step 9 gates:
If rms_jy > 3 × radiometer estimate, escalate — the problem is calibration,
not imaging. ms_residual_stats on the target's CORRECTED column before
re-imaging.
Output: the derived tclean parameters, image paths, image-quality metrics with pass/fail per gate, and a recommendation (ship, re-image with different parameters, or go back to calibration).
npx claudepluginhub skunkworks-ra/radio-analyst --plugin radio-analyst/imageGenerates images via Codex /imagen with automatic mode detection, image-studio prompting, and post-processing prevention. Takes a natural language image request as argument.