pymf.power_spec¶
-
pymf.power_spec(image, pixel_size_arcmin, return_k=False)¶ Computes the azimuthally-averaged power spectrum of a given map.
Parameters: - image: 2D float array
Input image
- pixel_size_arcmin: float
Pixel size in arcmin.
- return_k: bool, optional
If set to True, the provided image is assumed to be a power spectrum and the x-coordinate of the returned data is converted to the two-dimensional spatial frequency k. Default: None
Returns: - k: float array
x-coordinate of the radial profile. Either the radial separation from the image center or spatial frequency k, depending on the value of the variable return_k.
- Pk: float or complex array
azimuthally-averaged power spectrum