Loads and processes far-field data exported from CST Studio Suite.
This function parses a CST far-field text file and reconstructs the complex Etheta and Ephi components from magnitude and phase columns. It reshapes the data into 2D grids if the angular sampling is uniform, and computes the total normalized electric field magnitude in dB.
- Parameters
-
filename | Path to the far-field export file |
- Return values
-
EdB | Normalized total electric field magnitude in dB |
Etheta | Complex theta-polarized field component |
Ephi | Complex phi-polarized field component |
THETA | Elevation angle grid [rad] or vector if not structured |
PHI | Azimuth angle grid [rad] or vector if not structured |