powerbox.tools¶
A set of tools for dealing with structured boxes, such as those output by powerbox
. Tools include those
for averaging a field isotropically, and generating the isotropic power spectrum.
Functions
angular_average (field, coords, bins[, …]) |
Perform a radial histogram – averaging within radial bins – of a field. |
angular_average_nd (field, coords, bins[, n, …]) |
Take an ND box, and perform a radial average over the first n dimensions. |
get_power (deltax, boxlength[, deltax2, N, …]) |
Calculate the isotropic power spectrum of a given field. |