gen_pkfield¶
- powspec.gen_pkfield(npix=32, alpha=-3.6666666666666665, fknee=1, res=1)[source]¶
Generate a gaussian field with (k/k_0)^alpha law.
- Parameters:
- npixint, optional
number of pixels for the map, by default 32
- alpha[float], optional
the power law index, by default -11.0/3
- fkneefloat or ~astropy.units.Quantity, optional
the knee frequency in 1/res unit, where P(k) = 1, by default 1
- resfloat or ~astropy.units.Quantity, optional
size of a pixel, by default 1
- Returns:
- datandarray, shape(n_pix, n_pix)
the requested gaussian field