- Go 100%
|
|
||
|---|---|---|
| .woodpecker | ||
| cmd/vnacg | ||
| docs | ||
| internal | ||
| testdata/synthetic | ||
| .gitignore | ||
| .goreleaser.yml | ||
| AGENTS.md | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| README.md | ||
| THIRD_PARTY_NOTICES.md | ||
vnacg 
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:
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.
