No description
Find a file
Alexey Skobkin dc0c9b52f0
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
docs: refine AGENTS.md guidance
2026-08-03 01:37:04 +03:00
.woodpecker build: add Woodpecker cross-platform releases 2026-08-02 00:05:00 +03:00
cmd/vnacg build: add Woodpecker cross-platform releases 2026-08-02 00:05:00 +03:00
docs docs: add CLI reference and link from README 2026-08-03 01:33:08 +03:00
internal feat: align marker table columns 2026-08-02 22:00:30 +03:00
testdata/synthetic test: harden MVP behavior 2026-08-01 22:33:33 +03:00
.gitignore chore: ignore local IDE and agent directories 2026-08-03 01:33:05 +03:00
.goreleaser.yml build: add Woodpecker cross-platform releases 2026-08-02 00:05:00 +03:00
AGENTS.md docs: refine AGENTS.md guidance 2026-08-03 01:37:04 +03:00
go.mod feat: write PNG and WebP outputs 2026-08-01 22:33:33 +03:00
go.sum feat: write PNG and WebP outputs 2026-08-01 22:33:33 +03:00
LICENSE chore: initialize Go project 2026-08-01 22:33:33 +03:00
README.md docs: add CLI reference and link from README 2026-08-03 01:33:08 +03:00
THIRD_PARTY_NOTICES.md test: harden MVP behavior 2026-08-01 22:33:33 +03:00

vnacg ci

vnacg repository banner

vnacg is a deterministic VNA-like chart generator for Touchstone .s1p and .s2p files. It targets NanoVNA-F V3 exports while keeping the parser useful for conforming Touchstone 1.x RI files from other producers.

The product contract and MVP acceptance criteria are documented in docs/PRD_vnacg_en.md.

Build

CGO_ENABLED=0 go build ./cmd/vnacg

Tagged releases are built by Woodpecker CI for Linux, Windows, and macOS on amd64 and arm64. Windows executables include the repository icon while remaining console applications; resource regeneration is documented in docs/windows.md.

Usage

vnacg -m 868M,name=Uplink -c s11_swr -o result.webp measurement.s2p

Run vnacg --help for an in-terminal summary, or see docs/cli.md for the complete flag and chart reference.

With no chart options, S1P files render S11 SWR and S2P files render an S11 SWR/S21 LogMag overlay. Output defaults to a lossless 800×480 WebP beside the input file. PNG, four direct-rendered resolution profiles, marker snapping, frequency zoom, Smith R+jX, and separate per-chart images are supported.

vnacg \
  -m 868M,n=Uplink -m 1090M,name=ADS-B -M 2 \
  -c s11_swr -c s11_smith_rjx -c s21_logmag \
  --resolution high --scale-ui \
  -o result.webp \
  measurement.s2p

Existing outputs are never replaced unless --force is supplied. On success, the program prints one created path per line. Warnings and diagnostics are sent to stderr.

Marker specifications use <frequency>[,name=<label>]; n is a short alias for name. Names are display labels in the marker table, while marker order, plot glyphs, and --select-marker continue to use 1-based marker numbers.

Examples

Combined S11 SWR, S11 Smith R+jX, and S21 LogMag chart with frequency markers:

Combined S11 SWR, S11 Smith R+jX, and S21 LogMag chart

Tests

go test ./...
go vet ./...

Private NanoVNA fixtures may be placed in docs/fixtures/ for the optional real-measurement integration checks. That directory is intentionally ignored; the committed suite and golden pixel checks are self-contained.