Skip to content
Back to skills

Discrete Transforms

ASecurity

"Routes PyWavelets users through DWT, IDWT, multilevel transforms,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
ai-agentsgonodeapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill discrete-transforms --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Discrete Transforms?

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

Security grade badge for Discrete Transforms
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-discrete-transforms/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-discrete-transforms)

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: discrete-transforms
description: "Routes PyWavelets users through DWT, IDWT, multilevel transforms,
  SWT, MRA, coefficient packing, thresholding, padding, and fully separable
  transforms."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Discrete Transforms

Use this sub-skill for the core `pywt` transform stack: decimated DWT/IDWT, 2D and ND transforms, coefficient packing, stationary wavelets, multiresolution analysis, thresholding, signal-extension modes, padding, and fully separable transforms.

## Route here when the task asks for

- `dwt`, `idwt`, `wavedec`, `waverec`, `dwt2`, `idwt2`, `wavedec2`, `waverec2`
- `dwtn`, `idwtn`, `wavedecn`, `waverecn`
- `swt`, `iswt`, `swt2`, `iswt2`, `swtn`, `iswtn`
- `mra`, `mra2`, `mran`, `imra`, `imra2`, `imran`
- `coeffs_to_array`, `array_to_coeffs`, `ravel_coeffs`, `unravel_coeffs`, `wavedecn_size`, `wavedecn_shapes`
- `threshold`, `threshold_firm`, `pad`, `Modes.modes`, `dwt_coeff_len`, `dwt_max_level`, `dwtn_max_level`
- `fswavedecn`, `fswaverecn`, or `FswavedecnResult`

## Route elsewhere when the task is about

- wavelet catalogs, custom wavelets, `wavefun`, `central_frequency`, `scale2frequency`, or `cwt`: go to `../wavelets-and-cwt/SKILL.md`
- packet trees, node paths, packet reconstruction, or `WaveletPacket*`: go to `../wavelet-packets/SKILL.md`

## Start here

- Read `references/workflows.md` for concrete transform recipes.
- Read `references/api-reference.md` when you need the verified signatures or result-shape rules.
- Read `references/troubleshooting.md` when modes, axes, coefficient shapes, or SWT/MRA constraints fail.
- Run `../../scripts/check_pywavelets_install.py` when you want a quick smoke check that covers the core transform stack.

## Common workflow anchors

- Use `pywt.Modes.modes` to confirm supported extension modes before choosing `mode=`.
- For 1D smoke checks, `db1` and `symmetric` are the safest defaults.
- For SWT and SWT-based MRA, prefer `mode='periodization'` and a signal length that is a multiple of `2**level`.
- For `waverec` and `waverecn`, zero arrays are the safe way to omit coefficients; `None` is not the general replacement mechanism.
- For coefficient packing, prefer `coeffs_to_array` / `array_to_coeffs` when you need a shaped array and `ravel_coeffs` / `unravel_coeffs` when you need a flat vector.
- For fully separable transforms, inspect the returned `FswavedecnResult` object instead of treating it as a raw coefficient list.

## Useful bundled data

- `pywt.data.ecg()` is a compact 1D signal for DWT, SWT, and thresholding examples.
- `pywt.data.camera()` is a compact 2D image for `dwt2`, `wavedec2`, `dwtn`, `wavedecn`, `swt2`, and packet-adjacent smoke checks.
- `pywt.data.nino()` is useful when a transform recipe needs a small real-valued signal with a time axis.

## What to expect from the references

- `references/workflows.md` gives copyable recipes for 1D, 2D, ND, SWT, MRA, coefficient packing, thresholding, padding, and fully separable transforms.
- `references/api-reference.md` lists the verified function signatures and the major return-shape conventions.
- `references/troubleshooting.md` explains the common error fragments and recovery steps for transform and coefficient workflows.

Files in this skill

  • SKILL.md3.2 KB
  • references/api-reference.md3.5 KB
  • references/troubleshooting.md3.7 KB
  • references/workflows.md3.1 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.