Skip to content
Back to skills

Visualization Convolution

ASecurity

"Use Astropy visualization and convolution for image normalization,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
dataapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill visualization-convolution --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Visualization Convolution?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Visualization Convolution
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-visualization-convolution/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-visualization-convolution)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: visualization-convolution
description: "Use Astropy visualization and convolution for image normalization,
  stretches, WCSAxes, RGB rendering, FITS bitmap export, kernels, direct
  convolution, and FFT convolution."
metadata:
  disco-role: operating
disable-model-invocation: true
license: BSD 3-Clause
---

# 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

- The user needs image scaling, `ImageNormalize`, intervals, stretches,
  `ZScaleInterval`, `PercentileInterval`, `AsinhStretch`, `LogStretch`, or
  Matplotlib normalization.
- The task mentions WCSAxes plotting, world-coordinate axes, overplotting
  coordinates, or publication-style FITS image display.
- The task needs RGB composites, `make_lupton_rgb`, or `fits2bitmap`.
- The task uses convolution kernels, `Gaussian2DKernel`, `convolve`,
  `convolve_fft`, NaN interpolation, boundary modes, or kernel normalization.

## Route Away When

- Constructing or validating the WCS object is the main challenge; use
  `../wcs-nddata/SKILL.md`.
- FITS/table reading and writing is the main task; use `../tables-io/SKILL.md`.
- Statistical clipping or model fitting is central; use
  `../modeling-stats-timeseries/SKILL.md`.
- Optional dependency installation or CLI availability is the main issue; use
  `../cli-config-data/SKILL.md`.

## First Actions

1. Identify the input: NumPy array, FITS image, WCS object, RGB channels,
   masked/NaN data, or kernel.
2. For display, separate data extraction, normalization, plotting, and file
   output.
3. Choose interval and stretch based on data distribution; avoid hard-coded
   min/max until inspecting the image.
4. For WCS plotting, create/validate WCS first, then pass it as Matplotlib
   projection.
5. For convolution, choose direct `convolve` for small kernels or
   `convolve_fft` for larger FFT-friendly kernels.
6. Decide boundary, fill value, NaN treatment, and kernel normalization.
7. Validate output shape, finite values, and whether NaNs should remain masked
   or interpolated.

## References

- [references/api-reference.md](references/api-reference.md) lists verified
  visualization and convolution API signatures.
- [references/workflows.md](references/workflows.md) covers normalization,
  WCSAxes plotting, RGB, CLI bitmap export, and convolution recipes.
- [references/troubleshooting.md](references/troubleshooting.md) covers NaNs,
  zero-sum kernels, optional Matplotlib/SciPy issues, WCSAxes pitfalls, and
  unsafe file overwrites.

## Safety and Validation

- Use temporary output paths for generated PNG/JPEG/FITS experiments.
- Do not overwrite user image outputs without explicit permission.
- Preserve units and WCS decisions from sibling routes; this sub-skill owns
  display/convolution choices, not file semantics.
- For convolution, assert shape and inspect edge behavior before using output in
  downstream science.

## Native-Backed Validation Ideas

- Normalize a small image with `ImageNormalize(..., interval=ZScaleInterval())`
  and assert finite output.
- Convolve a tiny array with `Gaussian2DKernel` and assert output shape.
- Run `fits2bitmap --help` or use a temporary FITS fixture for a bounded CLI
  smoke.

Files in this skill

  • SKILL.md3.2 KB
  • references/api-reference.md1.9 KB
  • references/troubleshooting.md1.5 KB
  • references/workflows.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.