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 pip 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.5.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

powerbox-0.5.5-py2-none-any.whl (15.2 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for powerbox-0.5.5.tar.gz
Algorithm Hash digest
SHA256 5d699bd16ed83dd69c845bede1523a5e00522e829ce041ca323ddc2c2efd0bd8
MD5 044a2e4052a97c7844666266d86656f3
BLAKE2b-256 91fb0286184aa4f4fb0f63947aa914028f1c8af01e78bbf35a20015f3f9124ed

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for powerbox-0.5.5-py2-none-any.whl
Algorithm Hash digest
SHA256 bf7a5a8c6fd4b5ea2d49c703013442124b9bad61de354e27177d2d1fe1e5aa24
MD5 1b99f1c44e7521e067f58aba2122918e
BLAKE2b-256 be40cffded1110569031340a7b07a06c40ca4217405b36784075b7474ec89d5e

See more details on using hashes here.

Provenance

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