Skip to main content

Create arbitrary boxes with isotropic power spectra

Project description

https://img.shields.io/pypi/v/powerbox.svg https://travis-ci.org/steven-murray/powerbox.svg?branch=master https://coveralls.io/repos/github/steven-murray/powerbox/badge.svg?branch=master https://api.codacy.com/project/badge/Grade/5853411c78444a5a9c6ec4058c6dbda9

Make arbitrarily structured, arbitrary-dimension boxes and log-normal mocks.

powerbox is a pure-python code for creating density grids (or boxes) that have an arbitrary two-point distribution (i.e. power spectrum). Primary motivations for creating the code were the simple creation of log-normal mock galaxy distributions, but the methodology can be used for other applications.

Features

  • Works in any number of dimensions.

  • Really simple.

  • Arbitrary isotropic power-spectra.

  • Create Gaussian or Log-Normal fields

  • Create discrete samples following the field, assuming it describes an over-density.

  • Measure power spectra of output fields to ensure consistency.

  • Seamlessly uses pyFFTW if available for ~double the speed.

Installation

Clone/Download then python setup.py install. Or just pip install powerbox.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

powerbox-0.4.2.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

powerbox-0.4.2-py2-none-any.whl (15.8 kB view details)

Uploaded Python 2

File details

Details for the file powerbox-0.4.2.tar.gz.

File metadata

  • Download URL: powerbox-0.4.2.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for powerbox-0.4.2.tar.gz
Algorithm Hash digest
SHA256 c758f48f29e1983ecf3bea8ea339d2f29acb045a2ac67d7c34afa5a897f0f79b
MD5 a3fb2c1fa3584e2b8aa15458eddf501f
BLAKE2b-256 f6d38997a7f3d1d8e4d93ef7c7e022c6164defa2545a04681b7c1c8636699fa3

See more details on using hashes here.

File details

Details for the file powerbox-0.4.2-py2-none-any.whl.

File metadata

File hashes

Hashes for powerbox-0.4.2-py2-none-any.whl
Algorithm Hash digest
SHA256 83a2dc560e565f5bea2c90db39fcb08e85dccf52ab2df05b5517682a864bdb2f
MD5 91a78fd01a7e01e5df5d39fa69515f2b
BLAKE2b-256 2ee962c9aee6424e1c94203a03c8ae8c429c506cc5d3b6a8bb3915c7151804f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page