Antenna Pattern File Format

The file format for each user-defined antenna file consists of two parts: a parameter description section and a data section. For configurations containing multiple antennas, each antenna’s pattern must be saved in a separate ascii text file.

Parameter Description Section

Data Section

Sample Antenna File in Real-imaginary Format

Parameter Description Section

The parameter description section defines the parameters and ranges for the data section entries.

All the phi-theta angles defined in the parameter section below follow the spherical coordinate system shown in the graphic. The slice of theta = 90 and phi from [-180 180] represents the horizontal slice passing through the center of the sphere.

 

begin_<parameters>

format free // can be others in the future for extension

phi_min 0 // the minimum phi angle to save in the file

phi_max 360 // the maximum phi angle to save in the file

phi_inc 5 // the increasing step for phi, the phi sampling points should be equal separation

theta_min 0 // the minimum theta angle to save in the file

theta_max 180 // the maximum theta angle to save in the file

Note: Although the file format is designed for a 3D pattern, it also supports a 2D pattern. For a 2D pattern, theta_min and theta_max should have the same value.

theta_inc 5 // the increment size for phi; the theta sampling points should have equal separation

complex // antenna gain must always be complex when used with the PXB, expressed either in magnitiude, phase format or real, imaginary format

mag_phase // the data file is given in magnitude - phase format

pattern gain // pattern must always be expressed in units of gain when used with the PXB

magnitude dB // magnitude is given in linear or in dB

direction degrees //phi and theta are given in degrees or radians

phase degrees // phase is given in degrees or in radians

polarization theta_phi // polarization type, theta_phi means vertical and horizontal polarization. It is the only polarization type currently supported with the PXB.

NetInputPower 0.002482195 // this parameter is not used in the current code

end_<parameters>

 

Data Section

The data section follows the parameter section.

If the complex data is given as “mag_phase” type, the data should be in the following order:

Theta-angle // degrees or radians, determined by parameter “direction”

Phi-angle // degrees or radians, determined by parameter “direction”

Theta-gain // dB or linear, determined by parameter “magnitude”

Phi-gain // dB or linear, determined by parameter “magnitude”

Theta-Phase // degrees or radians, determined by parameter “phase”

Phi-Phase //degrees or radians, determined by parameter “phase”

If the complex data is given as real_imag type, the data should be in the following order:

Theta-angle //degrees or radians, determined by parameter “direction”

Phi-angle //degrees or radians, determined by parameter “direction”

Real part of Theta-gain

Imaginary part of Theta-gain

Real part of Phi-gain

Imaginary part of Phi-gain

Sample Antenna File in Real-Imaginary Format

The following sample file is in real-imaginary format.

begin_<parameters>

format free

phi_min 0

phi_max 350

phi_inc 10

theta_min 0

theta_max 0

theta_inc 5

complex

real_imag

pattern gain

magnitude dB

maximum_gain 0

phase degrees

direction degrees

polarization theta_phi

end_<parameters>

 

Note: The column headings below are shown for illustration purpose only. Do not include the headings in the actual antenna pattern file.

Theta Angle

Phi Angle

Theta Gain (real)

Theta Gain (imag)

Phi Gain (real)

Phi Gain (imag)

90.00000000

0.00000000

-0.43842839

-0.15259129

0.00000000

0.00000000

90.00000000

10.00000000

-0.42572635

0.01026539

0.00000000

0.00000000

90.00000000

20.00000000

-0.32281088

0.11955827

0.00000000

0.00000000

90.00000000

30.00000000

-0.20777300

0.29970148

0.00000000

0.00000000

90.00000000

40.00000000

-0.04687369

0.34673489

0.00000000

0.00000000

90.00000000

50.00000000

0.10793167

0.33498567

0.00000000

0.00000000

90.00000000

60.00000000

0.20787062

0.28438604

0.00000000

0.00000000

90.00000000

70.00000000

0.29245327

0.18851474

0.00000000

0.00000000

90.00000000

80.00000000

0.33242605

0.11528605

0.00000000

0.00000000

90.00000000

90.0000000

0 0.31069331

0.00483315

0.00000000

0.00000000

90.00000000

100.00000000

0.31012726 -

0.10480700

0.00000000

0.00000000

90.00000000

110.00000000

0.30912890

-0.13342457

0.00000000

0.00000000

90.00000000

120.00000000

0.28879046 -

0.14533395

0.00000000

0.00000000

90.00000000

130.00000000

0.30746698 -

0.12487962

0.00000000

0.00000000

90.00000000

140.00000000

0.32104099

-0.07518822

0.00000000

0.00000000

90.00000000

150.00000000

0.36193118 -

0.00451717

0.00000000

0.00000000

90.00000000

160.00000000

0.34073040

0.12281265

0.00000000

0.00000000

90.00000000

170.00000000

0.29552690

0.2081678

0.00000000

0.00000000

90.00000000

180.00000000

0.17650749

0.26925028

0.00000000

0.00000000

90.00000000

190.00000000

-0.01919988

0.26765785

0.00000000

0.00000000

90.00000000

200.00000000

-0.17468492

0.25349524

0.00000000

0.00000000

90.00000000

210.00000000

-0.25899719

0.17498510

0.00000000

0.00000000

90.00000000

220.00000000

-0.28185054

0.02505896

0.00000000

0.00000000

90.00000000

230.00000000

-0.26443563

-0.11240494

0.00000000

0.00000000

90.00000000

240.00000000

-0.20053945

-0.24269219

0.00000000

0.00000000

90.00000000

250.00000000

-0.16019569

-0.34511054

0.00000000

0.00000000

90.00000000

260.00000000

-0.10266138

-0.37629325

0.00000000

0.00000000

90.00000000

270.00000000

-0.01982612

-0.39305047

0.00000000

0.00000000

90.00000000

280.00000000

0.05068323

-0.43427250

0.00000000

0.00000000

90.00000000

290.00000000

0.07466213

-0.48400809

0.00000000

0.00000000

90.00000000

300.00000000

0.05858757

-0.52089012

0.00000000

0.00000000

90.00000000

310.00000000

0.00684469

-0.55631056

0.00000000

0.00000000

90.00000000

320.00000000

-0.05999220

-0.50553610

0.00000000

0.00000000

90.00000000

330.00000000

-0.12638610

-0.47581672 0.

0.00000000

0.00000000

90.00000000

340.00000000

0.28591476

-0.40821738

0.00000000

0.00000000

90.00000000

350.00000000

-0.29630187

-0.39917608

0.00000000

0.00000000