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

Uploaded Source

Built Distribution

powerbox-0.4.3-py2-none-any.whl (15.9 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for powerbox-0.4.3.tar.gz
Algorithm Hash digest
SHA256 28924088207c1d15aba03af2b9027b8f33682d0804cf1fa9bcc44351bdccc7e5
MD5 d9f7395c39e70b5433b2f5552fe40a94
BLAKE2b-256 f8c9624916cd1a4a584bb76f9ed6e8de77456bb9c227efaa6bd74b9b2fd262de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for powerbox-0.4.3-py2-none-any.whl
Algorithm Hash digest
SHA256 42576de9a6891cb70b8703afee1dd8db25a1f01dfd066a663675857906537c7d
MD5 8c701e40ff38d2793f24e53555ff0a78
BLAKE2b-256 b8df49e109b8cf74ec89c73acb74b93d44e4e71f5f9a8760a207082625169409

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