Visualization convolution

From VectorSpaceLab/AREX-Skill · View interactive version

Visualization convolution is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Use Astropy visualization and convolution for image normalization, stretches, WCSAxes, RGB rendering, FITS bitmap export, kernels, direct convolution, and FFT convolution.

How to use this skill

Skill file

Visualization and Convolution Router

Use this sub-skill when a task centers on displaying astronomy images or

convolving array data with Astropy kernels.

Load This When

ZScaleInterval, PercentileInterval, AsinhStretch, LogStretch, or

Matplotlib normalization.

coordinates, or publication-style FITS image display.

convolve_fft, NaN interpolation, boundary modes, or kernel normalization.

Route Away When

../wcs-nddata/SKILL.md.

../modeling-stats-timeseries/SKILL.md.

../cli-config-data/SKILL.md.

First Actions

  1. Identify the input: NumPy array, FITS image, WCS object, RGB channels,

masked/NaN data, or kernel.

  1. For display, separate data extraction, normalization, plotting, and file

output.

  1. Choose interval and stretch based on data distribution; avoid hard-coded

min/max until inspecting the image.

  1. For WCS plotting, create/validate WCS first, then pass it as Matplotlib

projection.

  1. For convolution, choose direct convolve for small kernels or

convolve_fft for larger FFT-friendly kernels.

  1. Decide boundary, fill value, NaN treatment, and kernel normalization.
  2. Validate output shape, finite values, and whether NaNs should remain masked

or interpolated.

References

visualization and convolution API signatures.

WCSAxes plotting, RGB, CLI bitmap export, and convolution recipes.

zero-sum kernels, optional Matplotlib/SciPy issues, WCSAxes pitfalls, and

unsafe file overwrites.

Safety and Validation

display/convolution choices, not file semantics.

downstream science.

Native-Backed Validation Ideas

and assert finite output.

smoke.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.