healpix_analyse.powerspectra_lonlat =================================== .. py:module:: healpix_analyse.powerspectra_lonlat Attributes ---------- .. autoapisummary:: healpix_analyse.powerspectra_lonlat.ArrayLike Functions --------- .. autoapisummary:: healpix_analyse.powerspectra_lonlat.powerspectra_lonlat Module Contents --------------- .. py:data:: ArrayLike .. py:function:: powerspectra_lonlat(lon: ArrayLike, lat: ArrayLike, data: ArrayLike, dx: float = 1.0, cross: Optional[ArrayLike] = None, ellipsoid: str = 'sphere', plot_2D_fft=False, weights: numpy.ndarray = None) Compute the isotropic 1D power spectrum of a field sampled on an iso-latitude lon/lat grid (e.g. GRIB-like grid), without using any HEALPix-specific concepts. :Parameters: * **lon** (:py:class:`array-like`, :py:class:`shape [N]`) -- Longitudes of the samples. * **lat** (:py:class:`array-like`, :py:class:`shape [N]`) -- Latitudes of the samples. The sampling is assumed to form iso-latitude rings. * **data** (:py:class:`array-like`, :py:class:`shape [N]`) -- Field values at (lon, lat). * **dx** (:py:class:`float`, *default* ``1.0``) -- Effective sampling step used to label Fourier frequencies. Keep the same convention as in your current `powerspectra`. * **cross** (:py:class:`array-like`, *optional*) -- Second field for cross-spectrum. * **ellipsoid** (``{"sphere", "WGS84"}``, *default* ``"sphere"``) -- Kept for compatibility with AlmTransform. :returns: * **f_centers** (:py:class:`ndarray`) -- Radial spatial frequencies. * **Pk** (:py:class:`ndarray`) -- Azimuthally averaged 1D power spectrum.