powerbox.tools Module¶
A set of tools for dealing with structured boxes, such as those output by powerbox
. Tools include those
for averaging a field angularly, and generating the isotropic power spectrum.
Functions¶
angular_average (field, coords, bins[, …]) |
Average a given field within radial bins. |
angular_average_nd (field, coords, bins[, n, …]) |
Average the first n dimensions of a given field within radial bins. |
get_power (deltax, boxlength[, deltax2, N, …]) |
Calculate the isotropic power spectrum of a given field, or cross-power of two similar fields. |