📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

ahfhalotools

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ahfhalotools

A Python 3 library for the analysis of data produced by AMIGA's Halo Finder (AHF).

1.1.1
Maintainers
1

AHFHaloTools

AHFHaloTools is a Python 3 library for the analysis of data produced by AMIGA's Halo Finder (AHF).

Features

  • File parsing for .AHF_halos, .AHF_profiles, .AHF_mtree(_idx)
  • File truncation
  • Analysis of radial profile data
  • Analysis of integral properties (halo data)
  • Proper tracking of halos through time
  • Merger detection
  • Analysis of enclosed halos as indicator of host halo kinematics

Dependencies

Installation

pip install ahfhalotools

Documentation

View HTML documentation here

Documentation is also available in docstrings within the code, which can be viewed using the built-in help function:

    >>> from ahfhalotools.objects import Cluster
    >>> help(Cluster)
    Help on class Cluster in module ahfhalotools.objects: ...

The majority of analysis is enabled by the ahfhalotools.objects.Cluster object.

Examples

Example scripts are available in /examples. These scripts are provided without data, as the data files are large and can't go on GitHub. To run them on a local machine, data must be downloaded and truncated, and the paths to the data in the scripts should be updated to reflect the location of the files. Alternatively the scripts could be deployed to popia/castor and run there, after updating the directory paths in the code. Data should still be truncated before running, otherwise the scripts will execute very slowly.

AHF documentation

For information on AMIGA's Halo Finder, including documentation and output file formats, you can visit their website here.

Velocity Distribution of Enclosed Halo as a Function of Redshift Velocity Distribution of Enclosed Halo as a Function of Redshift with Skew Plots Local Density times Radius Squared as a function of z and r Local Density times Radius Squared as a function of z and r for select redshifts Local Gas Density as a function of Radius, with quartiles of dynamical state highlighted

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts