Practical Considerations for Computing Dimensional Spectra from Gridded Data

Dale Durran Department of Atmospheric Sciences, University of Washington, Seattle, Washington

Search for other papers by Dale Durran in
Current site
Google Scholar
PubMed
Close
,
Jonathan A. Weyn Department of Atmospheric Sciences, University of Washington, Seattle, Washington

Search for other papers by Jonathan A. Weyn in
Current site
Google Scholar
PubMed
Close
, and
Maximo Q. Menchaca Department of Atmospheric Sciences, University of Washington, Seattle, Washington

Search for other papers by Maximo Q. Menchaca in
Current site
Google Scholar
PubMed
Close
Restricted access

Abstract

Spectra are often computed from gridded data to determine the horizontal-scale dependence of quantities such as kinetic energy, vertical velocity, or perturbation potential temperature. This paper discusses several important considerations for the practical computation of such spectra. To ensure that the sum of the spectral energy densities in wavenumber space matches the sum of the energies in the physical domain (the discrete Parseval relation), the constant coefficient multiplying the spectral energy density must properly account for the way the discrete Fourier transform pair is normalized. The normalization factor appropriate of many older FORTRAN-based fast Fourier transforms (FFTs) differs from that in Matlab and Python’s numpy.fft, and as a consequence, the correct scaling factor for the kinetic energy (KE) spectral density differs between one-dimensional FFTs computed using these two approaches by a factor equal to the square of the number of physical grid points. A common algorithm used to compute two-dimensional spectra as a function of the total-wavenumber magnitude sums the contributions from all pairs of x- and y-component wavenumbers whose vector magnitude lies with a series of bins. This approach introduces systematic short-wavelength noise, which can be largely eliminated though a simple multiplicative correction. One- and two-dimensional spectra will differ by a constant if computed for flows in which the KE spectral density decreases as a function of the wavenumber to some negative power. This constant is evaluated and the extension of theoretical results to numerically computed FFTs is examined.

© 2017 American Meteorological Society. For information regarding reuse of this content and general copyright information, consult the AMS Copyright Policy (www.ametsoc.org/PUBSReuseLicenses).

Corresponding author: Dale Durran, drdee@uw.edu

Abstract

Spectra are often computed from gridded data to determine the horizontal-scale dependence of quantities such as kinetic energy, vertical velocity, or perturbation potential temperature. This paper discusses several important considerations for the practical computation of such spectra. To ensure that the sum of the spectral energy densities in wavenumber space matches the sum of the energies in the physical domain (the discrete Parseval relation), the constant coefficient multiplying the spectral energy density must properly account for the way the discrete Fourier transform pair is normalized. The normalization factor appropriate of many older FORTRAN-based fast Fourier transforms (FFTs) differs from that in Matlab and Python’s numpy.fft, and as a consequence, the correct scaling factor for the kinetic energy (KE) spectral density differs between one-dimensional FFTs computed using these two approaches by a factor equal to the square of the number of physical grid points. A common algorithm used to compute two-dimensional spectra as a function of the total-wavenumber magnitude sums the contributions from all pairs of x- and y-component wavenumbers whose vector magnitude lies with a series of bins. This approach introduces systematic short-wavelength noise, which can be largely eliminated though a simple multiplicative correction. One- and two-dimensional spectra will differ by a constant if computed for flows in which the KE spectral density decreases as a function of the wavenumber to some negative power. This constant is evaluated and the extension of theoretical results to numerically computed FFTs is examined.

© 2017 American Meteorological Society. For information regarding reuse of this content and general copyright information, consult the AMS Copyright Policy (www.ametsoc.org/PUBSReuseLicenses).

Corresponding author: Dale Durran, drdee@uw.edu
Save
  • Bartello, P., 1995: Geostrophic adjustment and inverse cascades in rotating stratified turbulence. J. Atmos. Sci., 52, 44104428, doi:10.1175/1520-0469(1995)052<4410:GAAICI>2.0.CO;2.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Cho, J. Y. N., and Coauthors, 1999: Horizontal wavenumber spectra of winds, temperature, and trace gases during the Pacific Exploratory Missions: 1. Climatology. J. Geophys. Res., 104, 56975716, doi:10.1029/98JD01825.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Cooley, J., P. Lewis, and P. Welch, 1970: The fast Fourier transform algorithm: Programming considerations in the calculation of sine, cosine and Laplace transforms. J. Sound Vibrat., 12, 315337, doi:10.1016/0022-460X(70)90075-1.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Denis, B., J. Coté, and R. Laprise, 2002: Spectral decomposition of two-dimensional atmospheric fields on limited-area domains using the discrete cosine transform (DCT). Mon. Wea. Rev., 130, 18121829, doi:10.1175/1520-0493(2002)130<1812:SDOTDA>2.0.CO;2.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Durran, D. R., 2010: Numerical Methods for Fluid Dynamics: With Applications to Geophysics. 2nd ed. Springer-Verlag, 516 pp.

    • Crossref
    • Export Citation
  • Durran, D. R., and M. Gingrich, 2014: Atmospheric predictability: Why butterflies are not important. J. Atmos. Sci., 71, 24762488, doi:10.1175/JAS-D-14-0007.1.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Durran, D. R., and J. Weyn, 2016: Thunderstorms do not get butterflies. Bull. Amer. Meteor. Soc., 97, 237243, doi:10.1175/BAMS-D-15-00070.1.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Errico, R., 1985: Spectra computed from a limited area grid. Mon. Wea. Rev., 113, 15541562, doi:10.1175/1520-0493(1985)113<1554:SCFALA>2.0.CO;2.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Hamilton, K., Y. O. Takahashi, and W. Ohfuchi, 2008: Mesoscale spectrum of atmospheric motions investigated in a very fine resolution global general circulation model. J. Geophys. Res., 113, D18110, doi:10.1029/2008JD009785.

    • Crossref
    • Export Citation
  • Leith, C., 1971: Atmospheric predictability and two-dimensional turbulence. J. Atmos. Sci., 28, 145161, doi:10.1175/1520-0469(1971)028<0145:APATDT>2.0.CO;2.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Lindborg, E., 1999: Can the atmospheric kinetic energy spectrum be explained by two-dimensional turbulence? J. Fluid Mech., 388, 259288, doi:10.1017/S0022112099004851.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Nastrom, G., and K. Gage, 1985: A climatology of atmospheric wavenumber spectra of wind and temperature observed by commercial aircraft. J. Atmos. Sci., 42, 950960, doi:10.1175/1520-0469(1985)042<0950:ACOAWS>2.0.CO;2.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Salvador, R., J. Calbó, and M. M. Millán, 1999: Horizontal grid size selection and its influence on mesoscale model simulations. J. Appl. Meteor., 38, 13111329, doi:10.1175/1520-0450(1999)038<1311:HGSSAI>2.0.CO;2.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Skamarock, W. C., 2004: Evaluating mesoscale NWP models using kinetic energy spectra. Mon. Wea. Rev., 132, 30193024, doi:10.1175/MWR2830.1.

  • Tanguay, M., P. Bartello, and P. Gauthier, 1995: Four-dimensional data assimilation with a wide range of scales. Tellus, 47A, 974997, doi:10.3402/tellusa.v47i5.11967.

    • Crossref
    • Search Google Scholar
    • Export Citation
  • Tennekes, H., and J. Lumley, 1972: A First Course in Turbulence. MIT Press, 300 pp.

    • Crossref
    • Export Citation
  • Waite, M. L., 2016: Dependence of model energy spectra on vertical resolution. Mon. Wea. Rev., 144, 14071421, doi:10.1175/MWR-D-15-0316.1.

  • Weyn, J. A., and D. R. Durran, 2017: The dependence of the predictability of mesoscale convective systems on the horizontal scale and amplitude of initial errors in idealized simulations. J. Atmos. Sci., 74, 21912210, doi:10.1175/JAS-D-17-0006.1.

    • Crossref
    • Search Google Scholar
    • Export Citation
All Time Past Year Past 30 Days
Abstract Views 0 0 0
Full Text Views 5263 3044 96
PDF Downloads 2643 525 32