I have a time-domain magnetic field, $\mathbf{b}(t)$, with components $b_x(t)$ and $b_y(t)$ where $x$ and $y$ denote orthogonal coordinate directions (i.e north and east, respectively). At each time, I can compute the direction (or bearing) that the magnetic field vector points:
$$\gamma(t) = \textrm{atan2}\left (\frac{b_y(t)}{b_x(t)}\right )$$
If I perform a Fourier transform of the time series, then I get complex-valued Fourier coefficients for each component, $B_x(\omega)$ and $B_y(\omega)$.
Now, I want to compute the direction (or bearing) of the magnetic field vector as a function of frequency. My naïve assumption is that I can compute it similar to the above equation like this:
$$\gamma(\omega) = \textrm{atan2}\left (\frac{|B_y(\omega)|}{|B_x(\omega)|}\right )$$
Would this be correct? It seems that by doing so, I lose some of the phase spectra information. My thinking is that discounting the phase information will lead to an incorrect answer but not sure how to proceed.
Any help is appreciated.