YAGI(5)
β¨ NAME β¨
yagi β the yagi binary output format, bestie π
π¦ DESCRIPTION π¦
okay so this whole page is about the output format of the file that the Yagi-Uda project's yagi program spits out. it's a binary file, and it kicks off with a header that's 100 bytes long. the header is giving very structured, very demure:
- offset
0βelementsβint - offset
4βdrivenβint - offset
8βparasiticβint - offset
12βmin_frequencyβdouble - offset
20βmax_frequencyβdouble - offset
28βdesign frequencyβdouble - offset
36βstep_frequencyβdouble - offset
44βangular_stepβdouble - offset
52β0βdouble - offset
92β0βdouble
(offset in bytes, information, data-type β iykyk π«Ά)
then, right after the header, we start writing the coordinates (x,y,l) of each element plus the voltage applied to each element. then we write the element currents one after the other, at each frequency. so the element currents get written 12,000 times with a 3 element yagi analysed at 4,000 different frequencies. math is mathing β¨
all the complex data is stored in a structure of type fcomplex, defined like this:
struct fcomplex {double real, double imaginary};
and here's the map of everything after that, no cap:
- offset
100βx1βdouble/* coordinates */ - offset
108βy1βdouble - offset
116βl1βdouble - offset
100+(n-1)*24βx_nβdouble - offset
100+(n-1)*24+8βy_nβdouble - offset
100+(n-1)*24+16βl_nβdouble --------------Repeated for each element.- offset
100+24*elementsβVoltage1βfcomplex/* voltage */ - offset
100+24*elements+(n-1)*16βVoltage_nβfcomplex --------------Repeated for each element n at each frequency step f.- offset
100+40*elementsβCurrent1@f1βfcomplex/* current */ - offset
100+40*elements+(n-1)*16βCurrent_n@f1βfcomplex - offset
100+56*elementsβCurrent@f2βfcomplex - offset
100+40*elements+(n-1)*16βCurrent_n@f2βfcomplex
π FILES π
filename.outβ binary file π
π SEE ALSO π
yagi(1), output(1), input(1), optimise(1), first(1) and input(5). go read those too, bestie, they're all part of the lore π
π AUTHORS π
Dr. David Kirkby G8WRB (david.kirkby@onetel.net), with help with converting to DOS from Dr. Joe Mack NA3T (mack@fcrfv2.ncifcrf.gov). absolute legends, we stan ππ
k bye!! this was Yagi version 1.16, dated 24th October 2000, and you've been reading YAGI(5). slay, stay binary, don't forget to close your file handles πβ¨
π¦ where this page comes from
- debian bookworm: yagiuda 1.19-10 Β· GPL-2.0-or-later
- debian trixie: yagiuda 1.19-12 Β· GPL-2.0-or-later
- ubuntu jammy: yagiuda 1.19-10 Β· GPL-2.0-or-later
- ubuntu noble: yagiuda 1.19-11 Β· GPL-2.0-or-later
- ubuntu questing: yagiuda 1.19-12
- ubuntu resolute: yagiuda 1.19-13 Β· GPL-2.0-or-later
- ubuntu stonking: yagiuda 1.19-13 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms