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.0.tar.gz
.
File metadata
- Download URL: powerbox-0.4.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78a723fcdaee4c90b7cf38b72458d9038798673a943b95cd677ba3d69af9ee5f |
|
MD5 | 21e6b8a1260a600f686871add73f6979 |
|
BLAKE2b-256 | e758c92358add5724b18680a816d10e72149c4fc20105c7d58685c00dbc59718 |
File details
Details for the file powerbox-0.4.0-py2-none-any.whl
.
File metadata
- Download URL: powerbox-0.4.0-py2-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 740eda1597cd5f10ece4c7dce1ed47c1f63824f74eff79e66643ce16fd56b522 |
|
MD5 | 7ee106f6573204a406866cf6fe6ae398 |
|
BLAKE2b-256 | b94a5c046a1ee0507ed3dcec825007be10b60dbddb8cc7a3d40f5c9ba55e9c64 |