Comment 4 for bug 1083301

Revision history for this message
Bohumir Jelinek (bohumir) wrote :

To clarify why the fix is needed, I suggest this temporary code
change:

In the "WriteCardFile" function, "pccard.c" file line 321, replace
this line:

     increment, increment, step_size, step_size);

by this line:

     3, 10, 5, 5);

That will calculate and plot antenna gain for only 3 theta angles and
10 phi angles, starting from theta=0 (z axis), increment of 5 degrees.

Axis and angles in NEC2 are oriented according to this Figure:

  http://nec2.org/part_3/gifs/fig18.gif

  (In antennavis, +x points to the right, and phi angle grows in the
   direction backward from the screen. Note that the "azimuth"
   argument to the PlotPoint is theta (contrary to what one could
   expect: azimuth=phi).)

The above temporary change is only for you to verify that my bug-fix
will fix the result - it is not to be kept in the code permanently.

Best,
-Bohumir