Skip to content

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

License

Notifications You must be signed in to change notification settings

BenDavisonPetch/ahfhalotools

Repository files navigation

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.

Gallery

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages