spherical.recursions
rotate
rotate(modes, R)
Source: spherical/recursions/__init__.py
Rotate Modes object by rotor(s) Compute fโโ = ฮฃโ fโโ ๐หกโโ(R), where f is a (possibly spin-weighted) function, fโโ are its mode weights in the current frame, and fโโ are its mode weights in the rotated frame. fโโ = ฮฃโ fโโ ๐หกโโ(R) = ฮฃโ fโโ dหกโโ(R) exp[iฯโ(m-n)+iฯโ(m+n)] = ฮฃโ fโโ dหกโโ(R) exp[i(ฯโ+ฯโ)m+i(ฯโ-ฯโ)n] = exp[i(ฯโ+ฯโ)m] ฮฃโ fโโ dหกโโ(R) exp[i(ฯโ-ฯโ)n] = zโแต ฮฃโ fโโ dหกโโ(R) zโโฟ = zโแต {fโโ dหกโโ(R) + ฮฃโโ [fโโ dหกโโ(R) zโโฟ + fโโโ dหกโโโ(R) / zโโฟ]} = zโแต {fโโ ฯตโโ Hหกโโ(R) + ฮฃโโ [fโโ ฯตโ ฯตโโ Hหกโโ(R) zโโฟ + fโโโ ฯตโโ ฯตโโ Hหกโโโ(R) / zโโฟ]} = ฯตโโ zโแต {fโโ Hหกโโ(R) + ฮฃโโ [fโโ (-1)โฟ Hหกโโ(R) zโโฟ + fโโโ Hหกโโโ(R) / zโโฟ]} Here, n ranges over [-l, l] and pn ranges over [1, l].
Parameters
-
modes
:Modes
SWSH modes to rotate
-
R
:quaternionic.array
Its shape must satifsy R.shape[:-1] == modes.shape[:-1]