Xnecview is a program for visualizing the input and output files of the NEC antenna simulation software. It runs on Linux/Unix systems with the X window system.
It take as input the input files for nec and the output files generated by nec. Xnecview will visualize in color the structure of the antenna, the radiation diagram of the antenna, Of course, the picture can also be rotated and zoomed. Furthermore, slices through the XY, XZ and YZ planes can be shown, and four different gain scales are available: linear in power, linear in voltage, ARRL-style, and logarithmic with -40 dB at the center.
If the NEC output file contains output data for several frequencies, an additional window is opened showing selected data as a function of frequency.
For the nec software: http://bugs.gentoo.org/show_bug.cgi?id=135550
xnecview don't use nec at all, only nec's input and output files, so I don't have it as dependency.
Created attachment 89152 [details]
ebuild for xnecview
Created attachment 89155 [details, diff]
patch for setlocale() bug
Thanks for your bug report.
At first I almost concluded that this was an "impossible" problem, but
then figured out what may be happening: it turns out that the present
version of xnecview (unintentionally) respects the "locale" setting of
your system when reading files. I see you are in Switzerland, and I think
in Switzerland (like many non-English countries) the standard decimal
separator is a comma rather than a point: so probably your xnecview
expects decimal commas instead of points in the numbers in the NEC
Of course, this is silly, since the NEC input files should be the same
everywhere in the world.
Actually, the situation is a bit weirder. Normally, when one wants a C
program to respect the locale settings, one has to explicitly call the
setlocale() function in order to do that. Of course, I don't do that in
xnecview, since its files should be international. However, it turns
out that the gtk library which xnecview uses, calls this setlocale()
There are two ways to avoid this problem.
One is to change your locale setting to something that makes the separator
a point instead of a comma.
The other is to modify xnecview slightly, such that the decimal
separator setting is set correctly again. This is quite easy: open the
file 'xnecview.c'; then somewhere near the #include's, add the line:
Furthermore, around line 375, just below the line calling initX(), add
From the author of the program, Pieter-Tjerk de Boer.
It just work.
Similar comments here:
patch should be in src_unpack - oh, this is a proper situation to use patch this time :).
make -> emake?
what's left of src_compile should be removed?
Created attachment 90774 [details]
ebuild ofr xnecview-1.35
Modified as suggested by George.
Added manpage instalation.
No new releases since 2006
Created attachment 336778 [details]
I fixed the depends and made repoman happy.
Some sed fixes for the Makefile too (CFLAGS, tc_getCC).
Created attachment 336780 [details, diff]
fixes xnecview with libpng-1.5
The setlocale() patch is not needed anymore
(In reply to comment #7)
> Created attachment 336780 [details, diff] [details, diff]
> fixes xnecview with libpng-1.5
> The setlocale() patch is not needed anymore
Do you like to add this to the sci overlay? fork the overlay on github and send a pull-request.