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.

Acknowledgment

If you find powerbox useful in your research, please cite http://ascl.net/1805.001

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.5.1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

powerbox-0.5.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for powerbox-0.5.1.tar.gz
Algorithm Hash digest
SHA256 0ad6b5c6d375422de13519f8b90a094cc32c4a3bffb67b27252a21711c7cc411
MD5 cdf7aa228d65dc5c5e0611d5c4965d9e
BLAKE2b-256 123c8de4e5f0ba0b7a43c1b6e27dc9cfca1f3987626080971cc524c48b19aa39

See more details on using hashes here.

File details

Details for the file powerbox-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for powerbox-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63aa8d6b7821f6145e4d9aafa4ffe61229d5104a98042e9c0cb04725b89e26eb
MD5 2ca755fb3352050da4054cc54b15953a
BLAKE2b-256 b1fdccf1ae8a12999cec8a03b682bc1565e27c1165a3e5e79cafeff4916bf2e1

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