Create arbitrary boxes with isotropic power spectra
Project description
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.
QuickLinks
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34c2528fb4a3392cbccaedd50d3148f8a3e2723b1994a4a27ce3d01b536244a0 |
|
MD5 | 9e0ad88c5d262a05ae207fd18997bf55 |
|
BLAKE2b-256 | 94356f35b343f09616576b5c3c6762920d361d14e03b0e14cb2cc2f0adf4dee2 |
File details
Details for the file powerbox-0.4.1-py2-none-any.whl
.
File metadata
- Download URL: powerbox-0.4.1-py2-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5efe77f0bf611969efe80daa65fda1e395d0e281afca63ed6908767819cfd728 |
|
MD5 | 2482fe6d991035ddc88892ddedc95016 |
|
BLAKE2b-256 | 18c2da608a7a90d7bd2a8e50839786135314ab7b0627463737a32f60f1d467e0 |