Documentation
¶
Overview ¶
Command gen writes one SOFA file per supported DataType (FIR, TF, TF-E, SOS) with sofa.Save, filled with known values, plus an expected.json sidecar describing what a reference reader must see. It exists only to drive the interoperability check in scripts/interop_check.py (h5py and netCDF4); it is internal and not a supported tool.
It also re-saves every file in testdata/sofar/ (written by sofar through netCDF-C) into <outdir>/resaved/, so that the check can compare go-sofa's output with the original writer's. Run it from the repository root.
Usage: go run ./internal/interop/gen <outdir>
Click to show internal directories.
Click to hide internal directories.