Contents
- 1. Overview: where §7.1 plugs into the chain
- 2. Why two coordinate systems
- Patterns inherently belong to the LCS
- How the axes are placed
- 3. Spherical convention and unit vectors (Eq. 7.1-6, 7.1-13/14)
- 4. The core: three intrinsic rotations R = Rz(α)·Ry(β)·Rx(γ) (Eq. 7.1-2/4/5)
- Naming and order (correcting a widespread misprint)
- The composite matrix (Eq. 7.1-2 / 7.1-4)
- Trap #1: the TR prose contradicts its own equations
- 5. Angle mapping: GCS (θ, φ) → LCS (θ′, φ′) (Eq. 7.1-7/8)
- Derivation
- Sionna implements the matrix route, not the closed form
- 6. The polarization-basis angle ψ (Eq. 7.1-9 ~ 7.1-15)
- Why the angle mapping alone is not enough
- Basis transform (Eq. 7.1-9/10) and field transform (Eq. 7.1-11)
- Closed form (Eq. 7.1-15) vs _compute_psi, line by line
- 7. Special cases: downtilt only (α = γ = 0) and the horizontal cut
- 8. Trap #2: mechanical slant γ ≠ polarization slant ζ
- 9. The Sionna call chain: three building blocks → pattern matrix
- Default orientations and unit conversion
- 10. Runnable numerical verification
- 11. Equation ↔ Sionna master table
- 12. Summary
38.901 §7.1 Coordinate System Explained: Three Intrinsic Rotations, the Polarization-Basis Angle ψ, and Sionna Source Mapping
This post works through 3GPP TR 38.901 g10 draft, Clause 7.1 “Coordinate system” and answers three questions:
- Why two coordinate systems exist — why radiation patterns and angle parameters must be defined in the antenna’s own local coordinate system (LCS);
- How the three rotations (bearing α → downtilt β → slant γ) are built — where Eq. 7.1-2/4/5 come from and why this specific order;
- What the polarization-basis rotation ψ physically means — the problem Eq. 7.1-9~15 solve, and why the field-component transform is the transpose of the basis transform.
All equations keep the g10 numbering (7.1-1 ~ 7.1-26) and are mapped
line-by-line to Sionna 1.x
channel_coefficients.py
and
antenna.py.
A runnable verification script at the end proves that the TR closed forms and
the Sionna matrix implementation agree to floating-point noise.
Before reading: the companion posts 《38.901 §7.5 Twelve-Step Channel Generation》 (system-level) and 《38.901 §7.7 Link-Level Channel Models (CDL/TDL)》 (link-level) both sit on the geometric foundation described here — the pattern matrix of Step 11 and the CDL spatial filter are pure §7.1 machinery.
1. Overview: where §7.1 plugs into the chain
Channel tables (§7.5/§7.7) §7.1 coordinate system Antenna model (§7.3)
┌──────────────────┐ ┌──────────────────────────┐ ┌──────────────────┐
│ zod/aod/zoa/aoa │ │ GCS ←──R(α,β,γ)──→ LCS │ │ F'(θ',φ') │
│ (ray angles in │──►│ Eq 7.1-2/4/5 rotations │──►│ pattern in LCS │
│ global view) │ │ Eq 7.1-7/8 angle mapping │ │ basis (θ̂',φ̂') │
└──────────────────┘ │ Eq 7.1-11/15 field + ψ │ │ elements in y'-z'│
└──────────────────────────┘ └──────────────────┘
Sionna: _gcs_to_lcs / _compute_psi / _l2g_response
→ assembled by _step_11_field_matrix
In one sentence: §7.1 translates a ray direction (θ, φ) seen globally into (θ′, φ′) in the antenna’s own frame, then rotates the antenna’s polarization response back into the global basis (θ̂, φ̂). The first step is done by the rotation matrix R, the second by the angle ψ.
2. Why two coordinate systems
Patterns inherently belong to the LCS
Radiation patterns are measured in an anechoic chamber: the antenna rotates on a turntable while the probe stays put. The result is naturally a function of the ray direction relative to the antenna — i.e. in the Local Coordinate System (LCS). Channel models (§7.4~§7.7), however, specify departure/arrival angles (zod/aod/zoa/aoa) in the Global Coordinate System (GCS).
So Eq. 7.1-1 states a physical fact, not a definition:
The same ray has angular coordinates in the GCS and in the LCS; the field’s shape does not depend on who is watching — only the angle labels change. Everything in §7.1 exists to compute that relabeling and the transform of the polarization basis vectors.
How the axes are placed
Per §7.1.1/§7.1.2:
| Frame | Origin | Axes |
|---|---|---|
| GCS | scene reference point | up, horizontal |
| LCS | panel phase center | along the boresight; elements lie in the plane |
Two conventions that people get wrong constantly:
- Boresight in LCS spherical coordinates is , i.e. the direction — not . The §7.3 pattern formulas (vertical cut at , horizontal cut maximum at ) assume exactly this.
- Vertical polarization V is along , horizontal H along ; the panel normal is .
Sionna matches: AntennaPanel
places elements on the plane (rows along , columns along , in
wavelength units):
ant_pos[i + j * num_rows] = [0,
j * horizontal_spacing,
-i * vertical_spacing]
L233-237 re-centers the panel at the origin; for dual polarization L240-241 duplicates the grid for the second polarization.
3. Spherical convention and unit vectors (Eq. 7.1-6, 7.1-13/14)
The ray unit vector in the GCS (Eq. 7.1-6):
with the zenith angle (from ) and the azimuth (from ). The tangential basis (Eq. 7.1-13/14):
Original TR figure (Figure 7.1.1) — spherical angles and spherical unit vectors in a Cartesian coordinate system: is the given direction, and the spherical basis vectors:

is a right-handed orthonormal triad; points toward increasing (“downward”), toward increasing (counter-clockwise around ).
Sionna mapping:
_unit_sphere_vector(L333-340) is Eq. 7.1-6 verbatim. It is reused in three places: ① Doppler phase_step_11_dopplerL652 (); ② element phase_step_11_array_offsetsL688-689 (); ③ as the first step of every angle mapping below. Sionna never builds explicitly — the ψ angle compresses the whole basis change into a 2×2 rotation (see below).
4. The core: three intrinsic rotations R = Rz(α)·Ry(β)·Rx(γ) (Eq. 7.1-2/4/5)
Naming and order (correcting a widespread misprint)
g10 §7.1.3 defines panel orientation with three Euler angles. Per the TR’s own Greek-letter naming:
| Angle | TR name | Rotates about | Meaning |
|---|---|---|---|
| bearing | GCS axis | horizontal pointing: swing the boresight to the target azimuth | |
| downtilt | intermediate axis | tilt the boresight below the horizon | |
| slant | final axis (= boresight) | roll the whole panel about the line of sight |
The rotations are intrinsic: — each step rotates about
the already-rotated axis. (Many online notes swap α and β relative to the TR
text; this post follows the g10 document itself. Sionna’s
orientations[..., 0/1/2] order agrees with the TR, see the line mapping below.)
Original TR figure (Figure 7.1.3-1) — orienting the LCS (blue) with respect to the GCS (gray) by a sequence of 3 rotations:

Why this exact order? Think in reverse:
- bearing first picks the vertical plane the boresight will live in;
- downtilt second rotates within that plane — about a axis that is always horizontal and perpendicular to the boresight, so “tilt down” keeps its physical meaning at any azimuth;
- slant last rolls about the boresight itself, moving only the polarization axes, never the pointing direction.
If downtilt came first, it would be “tilt about the fixed global ”, and the tilt direction would be wrong for every azimuth but one. That is precisely what intrinsic ordering fixes.
The composite matrix (Eq. 7.1-2 / 7.1-4)
Elementary right-handed rotations:
Eq. 7.1-2 composes them:
and multiplying out gives Eq. 7.1-4:
The inverse is the transpose (rotation matrices are orthogonal, Eq. 7.1-5):
Sionna mapping:
_forward_rotation_matrixhard-codes Eq. 7.1-4 element by element. L351,a, b, c = orientations[..., 0], orientations[..., 1], orientations[..., 2], means (bearing), (downtilt), (slant) — identical to the TR naming. Row by row: row_1 (L353-360) = first row of 7.1-4; row_2 (L362-369) = second; row_3 (L371-378)[-sin b, cos b·sin c, cos b·cos c]= third. The inverse_reverse_rotation_matrixis one line:rot_mat.mT(L407) = Eq. 7.1-5.
Trap #1: the TR prose contradicts its own equations
The §7.1.3 narrative (g10 paragraphs 511 and 528) disagrees with itself:
- ¶511 says the forward matrix maps points from the GCS into the LCS;
- ¶528 says forward maps LCS unit vectors into the GCS.
The equations settle it: Eq. 7.1-7/8 (GCS→LCS angle mapping) actually apply (Eq. 7.1-5), while Eq. 7.1-9 rotates LCS basis vectors back into the GCS with . The math is consistent; the prose is not.
Sionna follows the math, not the prose:
_rot_pos(L394-395, ): rotates LCS points into the GCS (used for element positions);_gcs_to_lcs(L428-429, ): GCS→LCS uses the transpose.
Mnemonic: forward R = “LCS → GCS”. Auto-correct the prose while reading.
5. Angle mapping: GCS (θ, φ) → LCS (θ′, φ′) (Eq. 7.1-7/8)
Original TR figure (Figure 7.1.3-2) — the same ray is in the GCS (gray) and in the LCS (blue); dashed yellow lines are projection guides:

Derivation
Rotate from Eq. 7.1-6 by to get in the LCS, then invert the spherical definition:
Dotting the columns of with and using yields the TR closed forms. Eq. 7.1-7 (zenith):
Eq. 7.1-8 (azimuth):
(The original divides by inside , which does not change the angle and is omitted here.)
Sionna implements the matrix route, not the closed form
_gcs_to_lcs
never expands the trigonometry; it multiplies matrices and extracts components:
rho_hat = self._unit_sphere_vector(theta, phi) # L427: Eq. 7.1-6
rot_inv = self._reverse_rotation_matrix(orientations) # L428: Eq. 7.1-5
rot_rho = torch.matmul(rot_inv, rho_hat) # L429: ρ̂' = Rᵀρ̂
z = torch.matmul(v1, rot_rho) # L435: z' component (v1=[0,0,1])
theta_prime = torch.acos(z) # L437: θ'=arccos(z')
phi_prime = torch.angle(torch.matmul(v2, rot_rho)) # L438: φ'=arg(x'+j·y')
The two pre-allocated constants (L198-200, L206-208) are component-extraction
tricks: _v1_const = [0, 0, 1] dots out ; _v2_const = [1, j, 0] produces
for torch.angle. (They are registered as buffers for CUDA
graph compatibility.)
Numerically, closed form vs Sionna matrix route differ by ~ (floating-point noise) — see case2 of the verification script below.
6. The polarization-basis angle ψ (Eq. 7.1-9 ~ 7.1-15)
Why the angle mapping alone is not enough
only fixes the scalar magnitude. The field is a transverse vector:
The pair — the LCS spherical basis rotated back into the GCS — spans the same plane perpendicular to the ray as , but is rotated within that plane by an angle ψ.
Original TR figure (Figure 7.1.3-3) — rotation of the spherical basis vectors by an angle due to the orientation of the LCS with respect to the GCS:

Skip ψ and you get polarization mismatch: with a 10° downtilt the two bases happen to align on boresight (ψ=0), but off-boresight rays see a nonzero ψ that leaks energy between the horizontal and vertical polarization responses.
Basis transform (Eq. 7.1-9/10) and field transform (Eq. 7.1-11)
Two orthonormal bases in one plane are related by a single rotation ψ:
orientation-preserving ⇒ all four dots come from one angle (Eq. 7.1-10):
Field components are coordinates of the same vector in different bases, so their transform is the transpose (Eq. 7.1-11):
One line of algebra shows where the transpose comes from: .
Definition of ψ (Eq. 7.1-12):
i.e. and (the dot-product expansions of Eq. 7.1-16/17).
Closed form (Eq. 7.1-15) vs _compute_psi, line by line
Substituting (LCS basis evaluated at primed angles via 7.1-13/14) and simplifying gives Eq. 7.1-15:
Sionna mapping:
_compute_psimatches Eq. 7.1-15 character for character: L458-460a, b, c = orientations[..., 0/1/2](α/β/γ); L461-464real = sin(c)·cosθ·sin(φ−a) + cos(c)·(cos(b)·sinθ − sin(b)·cosθ·cos(φ−a)); L465imag = sin(c)·cos(φ−a) + sin(b)·cos(c)·sin(φ−a); L466psi = torch.angle(torch.complex(real, imag)).
_l2g_responseimplements Eq. 7.1-11: L487-488 build[[cosψ, −sinψ], [sinψ, cosψ]], L490 multiplies the vector . “l2g” = local-to-global.
7. Special cases: downtilt only (α = γ = 0) and the horizontal cut
Original TR figure (Figure 7.1.4) — angles and unit vectors when the LCS has been rotated an angle around the -axis of the GCS (left), and the resulting basis rotation in the plane perpendicular to the ray (right):

The most common engineering case is a BS with downtilt only. Eq. 7.1-7/8/15 degrade to the TR’s:
Boresight sanity check: after tilting down by β the main lobe sits at in the GCS. Eq. 7.1-18 gives ✓; 7.1-19 gives ✓; 7.1-23 gives ✓ — no basis rotation on boresight, as intuition demands.
On the horizontal cut (Eq. 7.1-24/25/26):
Numerical values for (identical to Sionna, see case5 below):
The last row is instructive: looking along (perpendicular to the tilt plane), the downtilt appears as a pure roll of the polarization basis by exactly β.
8. Trap #2: mechanical slant γ ≠ polarization slant ζ
The TR uses “slant” for two unrelated things, and Sionna keeps them in different files:
| Mechanical slant (§7.1.3) | Polarization slant (§7.3) | |
|---|---|---|
| Acts on | the whole panel, rolled about its boresight | decomposition of one element’s E-field on the basis |
| Appears in | Eq. 7.1-4/7/8/15 | Eq. 7.3-4/5: |
| Sionna | orientations[..., 2] (L351) | AntennaElement.field L84-85 |
±45° cross-polarization (the Massive-MIMO default) uses the polarization
slant ζ, not γ: PanelArray
L428-435 sets the two polarizations’ slants to and for
polarization_type="cross", to and for "VH", and L421-427 covers
single "V"/"H". BS panels normally keep mechanical .
9. The Sionna call chain: three building blocks → pattern matrix
_step_11_field_matrix
is the Step-11 pattern-matrix entry point; it wires every formula in this post
into one pipeline:
zod, aod (GCS, from the ray tables)
│ L766: _gcs_to_lcs(tx_orientations, zod, aod) ← Eq. 7.1-7/8
▼
zod′, aod′ (LCS)
│ L781-786: tx_array.ant_pol1.field(zod′, aod′) ← §7.3 pattern + pol. slant
▼
(E′θ, E′φ) (LCS basis)
│ L788-789: _l2g_response(f′, tx_orientations, zod, aod) ← Eq. 7.1-11/15
▼
(Eθ, Eφ) (GCS basis) ── L803-835 × random phases/XPR (h_phase), per-pol assembly ──► h_field
The RX side is symmetric: L777 _gcs_to_lcs, L784-785 field, L789/L801
_l2g_response; dual-polarization branches at L791-801.
Element positions (the other use of Eq. 7.1-4):
_step_11_get_tx_antenna_positions
L511 / _step_11_get_rx_antenna_positions
L536 call _rot_pos () to bring LCS element
coordinates into the GCS for the array phase in Eq. 7.5-22.
Default orientations and unit conversion
cdl.pyL234-235/L240-241: BS defaultbs_orientation=[0,0,0](boresight along GCS ); UT defaultut_orientation=[π,0,0]— bearing α=180°, i.e. the UT boresight faces , opposite the BS. L644-659 assign bs/ut intotx/rx_orientationsper link direction.utils.py:deg_2_rad(L509),rad_2_deg(L533),wrap_angle_0_360(L557). TR tables are in degrees, Sionna APIs in radians — convert first when cross-checking documents.
10. Runnable numerical verification
The script below implements Eq. 7.1-4/7/8/15 in plain numpy and cross-checks Sionna’s private methods (verification only — don’t depend on private APIs in production). Runs in any environment with Sionna 1.x:
import numpy as np
import torch
from sionna.phy.channel.tr38901.channel_coefficients import ChannelCoefficientsGenerator
from sionna.phy.channel.tr38901 import PanelArray
d2r = np.pi / 180
def R_forward(alpha, beta, gamma):
"""Eq. 7.1-4"""
ca, cb, cg = np.cos(alpha), np.cos(beta), np.cos(gamma)
sa, sb, sg = np.sin(alpha), np.sin(beta), np.sin(gamma)
return np.array([
[ca*cb, ca*sb*sg - sa*cg, ca*sb*cg + sa*sg],
[sa*cb, sa*sb*sg + ca*cg, sa*sb*cg - ca*sg],
[-sb, cb*sg, cb*cg]])
def gcs_to_lcs(theta, phi, alpha, beta, gamma):
"""Eq. 7.1-7/8 closed form"""
z = (np.cos(beta)*np.cos(gamma)*np.cos(theta)
+ np.sin(theta)*(np.sin(beta)*np.cos(gamma)*np.cos(phi-alpha)
- np.sin(gamma)*np.sin(phi-alpha)))
tp = np.arccos(np.clip(z, -1, 1))
re = np.cos(beta)*np.sin(theta)*np.cos(phi-alpha) - np.sin(beta)*np.cos(theta)
im = (np.cos(beta)*np.sin(gamma)*np.cos(theta)
+ np.sin(theta)*np.sin(beta)*np.sin(gamma)*np.cos(phi-alpha)
+ np.sin(theta)*np.cos(gamma)*np.sin(phi-alpha))
return tp, np.angle(re + 1j*im)
def psi(theta, phi, alpha, beta, gamma):
"""Eq. 7.1-15"""
re = (np.sin(gamma)*np.cos(theta)*np.sin(phi-alpha)
+ np.cos(gamma)*(np.cos(beta)*np.sin(theta)
- np.sin(beta)*np.cos(theta)*np.cos(phi-alpha)))
im = np.sin(gamma)*np.cos(phi-alpha) + np.sin(beta)*np.cos(gamma)*np.sin(phi-alpha)
return np.angle(re + 1j*im)
# generator in double precision so we can compare down to 1e-14
arr = PanelArray(num_rows_per_panel=1, num_cols_per_panel=1,
polarization="dual", polarization_type="cross",
antenna_pattern="38.901", carrier_frequency=3.5e9)
gen = ChannelCoefficientsGenerator(carrier_frequency=3.5e9, tx_array=arr,
rx_array=arr, subclustering=False,
precision="double")
T = lambda x: torch.tensor(x, dtype=torch.double)
# case1: BS downtilt 10° — boresight sanity check
alpha, beta, gamma = 0.0, 10*d2r, 0.0
b = R_forward(alpha, beta, gamma) @ np.array([1.0, 0.0, 0.0]) # LCS +x' into GCS
th_b, ph_b = np.arccos(b[2]), np.angle(b[0] + 1j*b[1]) # → (100°, 0°)
tp, pp = gcs_to_lcs(th_b, ph_b, alpha, beta, gamma) # → (90°, 0°) ✓
print(f"boresight GCS=({th_b/d2r:.1f},{ph_b/d2r:.1f}) -> LCS=({tp/d2r:.1f},{pp/d2r:.1f})")
print(f"psi(boresight) = {psi(th_b, ph_b, alpha, beta, gamma)/d2r:.4f}°") # 0
# case2: all three angles nonzero — closed form vs Sionna matrix route
alpha, beta, gamma = 30*d2r, -15*d2r, 45*d2r
orient = T([[alpha, beta, gamma]])
th, ph = T([[60*d2r]]), T([[20*d2r]])
tp, pp = gcs_to_lcs(60*d2r, 20*d2r, alpha, beta, gamma)
t_s, p_s = gen._gcs_to_lcs(orient, th, ph)
psi_c, psi_s = psi(60*d2r, 20*d2r, alpha, beta, gamma), gen._compute_psi(orient, th, ph).item()
print(f"dTheta'={abs(tp-t_s.item()):.1e} dPhi'={abs(pp-p_s.item()):.1e} dPsi={abs(psi_c-psi_s):.1e}")
# → all ~1e-14 (FP noise); psi = 49.576°, (cosψ, sinψ) = (0.6484, 0.7613)
# case3: Eq. 7.1-11 — f'=(1,0) must map to (cosψ, sinψ)
f_s = gen._l2g_response(T([[[1.0, 0.0]]]), orient, th, ph).numpy().reshape(2)
print(f"l2g: {f_s} vs closed-form: [{np.cos(psi_c):.6f}, {np.sin(psi_c):.6f}]")
Typical output:
boresight GCS=(100.0,0.0) -> LCS=(90.0,0.0)
psi(boresight) = 0.0000°
dTheta'=0.0e+00 dPhi'=1.6e-15 dPsi=0.0e+00
l2g: [0.64844085 0.76126504] vs closed-form: [0.648441, 0.761265]
11. Equation ↔ Sionna master table
| TR equation | Content | Sionna implementation | Location |
|---|---|---|---|
| 7.1-1 | _step_11_field_matrix pipeline | L726-840 | |
| 7.1-2/4 | + expansion | _forward_rotation_matrix | L343-381 |
| 7.1-5 | _reverse_rotation_matrix | L397-408 | |
| 7.1-6 | spherical unit vector | _unit_sphere_vector | L322-341 |
| 7.1-7/8 | GCS→LCS angle mapping | _gcs_to_lcs (equivalent matrix route) | L410-442 |
| 7.1-9/10 | polarization basis transform | implicit in _l2g_response transpose | L469-491 |
| 7.1-11 | field components LCS→GCS | _l2g_response | L469-491 |
| 7.1-12~15 | ψ definition and closed form | _compute_psi | L444-467 |
| 7.1-16~23 | downtilt-only special case | general code (α=γ=0) | same as above |
| 7.1-24~26 | horizontal cut special case | general code (θ=90°) | same as above |
| §7.1.2 | element positions LCS→GCS | _rot_pos + _step_11_get_tx/rx_antenna_positions | L383-395 / L493-541 |
| §7.3-4/5 | polarization slant decomposition | AntennaElement.field | antenna.py L75-86 |
| §7.1.2 | panel geometry in y′–z′ | AntennaPanel.__init__ | antenna.py L225-243 |
| ±45° | cross-pol slants | PanelArray.__init__ | antenna.py L421-435 |
12. Summary
- §7.1’s entire mission: the pattern belongs to the LCS, ray angles come from the GCS, and R(α,β,γ) is the bridge — scalar amplitudes re-label angles via Eq. 7.1-7/8, vector polarizations re-base via Eq. 7.1-11/15.
- The three rotations are intrinsic : bearing picks the
plane, downtilt lowers within it, slant rolls the polarization; TR naming is
α=bearing, β=downtilt, γ=slant, and Sionna’s
orientationsfollows the same order. - Two traps: ① the TR prose contradicts itself on the direction of forward R — trust the equations and Sionna (forward R = LCS→GCS); ② ±45° refers to the §7.3 polarization slant, not the §7.1.3 mechanical slant γ.
- Sionna realizes 7.1-7/8 via matrix multiply + component extraction and
7.1-11 via a 2×2 rotation, agreeing with the TR closed forms to ~1e-14 —
all of it inside 220 lines (
channel_coefficients.pyL322-541).
References
- 3GPP TR 38.901 V17.g10 (draft), Clause 7.1 “Coordinate system”
- Sionna 1.x source:
sionna/phy/channel/tr38901/channel_coefficients.py,antenna.py,cdl.py - Companion posts: 《38.901 §7.5 Twelve-Step Channel Generation》, 《38.901 §7.7 Link-Level Channel Models (CDL/TDL)》
Comments
Loading comments…
Want to leave a note? Sign in first — comments are open to every signed-in reader.