Python and C/C++ code to read halo catalogs and other Abacus N-body data products
Project description
abacusutils
abacusutils is a package for reading and manipulating data products from the Abacus N-body project. In particular, these utilities are intended for use with the AbacusSummit suite of simulations. We provide multiple interfaces: primarily Python 3, but also C/C++ [coming soon!] and language-agnostic interfaces like Unix pipes.
These interfaces are documented here: https://abacusutils.readthedocs.io
Installation
The Python abacusutils package is hosted on PyPI and can be installed by installing "abacusutils" and our fork of the ASDF library with the following command:
pip install git+https://github.com/lgarrison/asdf.git abacusutils
The Unix pipe interface (pipe_asdf
) is also installed as part of the pip install.
The C/C++ code (coming soon!) can be downloaded directly by cloning this repository:
git clone https://github.com/abacusorg/abacusutils.git
or by downloading a zip archive of the repository:
wget https://github.com/abacusorg/abacusutils/archive/master.zip
Python Dependencies
The Python dependencies are numpy, asdf (our fork), blosc, astropy, and numba. The only "unusual" dependency is asdf, because we require our fork of the project to be installed (located at: https://github.com/lgarrison/asdf/). Our fork supports blosc compression.
Usage
abacusutil has multiple interfaces, summarized here and at https://abacusutils.readthedocs.io/en/latest/usage.html.
Specific examples of how to use abacusutils to work with AbacusSummit data will soon be given at the AbacusSummit website: https://abacussummit.readthedocs.io
Python
The abacusutils PyPI package contains a Python package called abacusnbody
.
This is the name to import (not abacusutils
, which is just the name of the PyPI package).
For example, to import the compaso_halo_catalog
module, use
import abacusnbody.data.compaso_halo_catalog
Unix Pipes
The pipe_asdf
Python script reads columns from ASDF files and pipes them to
stdout
. For example:
$ pipe_asdf halo_info_000.asdf -f N -f x_com | ./client
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
Hashes for abacusutils-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b120cec87eb8aa0f4593e75ef3d11237f6ebcdfb1af25e572401995b7c2c511 |
|
MD5 | bc20d82e66c04a9d7deccb2fa330affd |
|
BLAKE2b-256 | 83d5a178409fa1667a84dcfb6aa0070061a34f6e64375b540a995a6643d77dc1 |