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

Uploaded Source

Built Distribution

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

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for powerbox-0.4.1.tar.gz
Algorithm Hash digest
SHA256 34c2528fb4a3392cbccaedd50d3148f8a3e2723b1994a4a27ce3d01b536244a0
MD5 9e0ad88c5d262a05ae207fd18997bf55
BLAKE2b-256 94356f35b343f09616576b5c3c6762920d361d14e03b0e14cb2cc2f0adf4dee2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for powerbox-0.4.1-py2-none-any.whl
Algorithm Hash digest
SHA256 5efe77f0bf611969efe80daa65fda1e395d0e281afca63ed6908767819cfd728
MD5 2482fe6d991035ddc88892ddedc95016
BLAKE2b-256 18c2da608a7a90d7bd2a8e50839786135314ab7b0627463737a32f60f1d467e0

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