NEC-4 output file format questions?
4nec2 wrote:
If I remember correctly, position of the X-, Y- and Z-coordinates and
magnitudes/phase for the near-field data in the output file differ one
to three charcter-positions.
Arie.
You're right... just compared NEC4 vs Nec2DXS
Here's NEC2 output (you'll have to unwrap it)
- LOCATION - - EX - -
EY - - EZ -
X Y Z MAGNITUDE PHASE
MAGNITUDE PHASE MAGNITUDE PHASE
METERS METERS METERS VOLTS/M DEGREES
VOLTS/M DEGREES VOLTS/M DEGREES
-10.0000 0.0000 0.0000 0.0000E+00 0.00
0.0000E+00 0.00 1.4577E-01 89.07
12345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567890
-5.0000 0.0000 0.0000 0.0000E+00 0.00
0.0000E+00 0.00 2.2855E-01 156.88
0.0000 0.0000 0.0000 0.0000E+00 0.00
0.0000E+00 0.00 8.7109E+00 180.00
And NEC4
- LOCATION - - EX -
- EY - - EZ -
X Y Z MAGNITUDE PHASE
MAGNITUDE PHASE MAGNITUDE PHASE
METERS METERS METERS VOLTS/M DEGREES
VOLTS/M DEGREES VOLTS/M DEGREES
12345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567890
-10.0000 0.0000 0.0000 0.0000E+00 0.00
0.0000E+00 0.00 1.4577E-01 89.09
-5.0000 0.0000 0.0000 0.0000E+00 0.00
0.0000E+00 0.00 2.2854E-01 156.89
0.0000 0.0000 0.0000 0.0000E+00 0.00
0.0000E+00 0.00 8.7108E+00 180.00
It looks like the coordinates are each 1 character longer
X ends at 14 for N4, vs 13 for N2
Y ends at 26 for N4 vs 24 for N2
Z ends at 38 for N4 vs 35 for N2
The EX,EY,EZ appear to be the same width, so for N4 they start 3
characters farther over...
(Now I understand why my Matlab output file parser screwed up... Thanks,
Arie!)
|