xgcm / xrft

Fourier transforms on xarray data structures
https://xrft.readthedocs.io/en/latest/
MIT License
154 stars 45 forks source link

Isotropize missing 2pi factor #187

Closed roxyboy closed 7 months ago

roxyboy commented 2 years ago

I may be wrong but I think we're missing a 2pi factor in the process of isotropizing the spectra. When isotropy is assumed, the azimuthal mean is indeed the isotropic spectra in terms of spectral slope but in order to satisfy Parseval's equality, I think the integration over the azimuthal direction should be taken and as such, I think iso_ps and iso_cs should be multiplied by 2pi.

roxyboy commented 7 months ago

PR #197 addressed this.