halo-analysis


Namehalo-analysis JSON
Version 1.0.2 PyPI version JSON
download
home_pageNone
Summaryread and analyze halo/galaxy catalogs
upload_time2024-07-12 17:31:05
maintainerNone
docs_urlNone
authorShea Garrison-Kimmel, Zach Hafen, Nico Garavito-Camargo, Kyle Oman
requires_python>=3.9
licenseCopyright 2014-2024 by the authors. If you use this package, please cite it, along the lines of: 'This work used HaloAnalysis (http://ascl.net/2002.014), which first was used in Wetzel et al 2016 (https://ui.adsabs.harvard.edu/abs/2016ApJ...827L..23W).' You are free to use, edit, share, and do whatever you want. But please cite it and report bugs. Less succinctly, this software is governed by the MIT License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE aAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords gizmo astronomy astrophysics cosmology galaxies stars dark matter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Description

Python package to read and analyze halo/galaxy catalogs (generated from Rockstar or AHF) and merger trees (generated from ConsistentTrees).


---
# Requirements

python 3, numpy, scipy, h5py, matplotlib

This package also requires the [utilities/](https://bitbucket.org/awetzel/utilities) Python package for various utility functions.


---
# Contents

## halo_analysis

### halo_io.py
* read halo files, convert from text to hdf5 format, assign particle species to dark-matter halos

### halo_plot.py
* analyze and plot halos/galaxies

### halo_select.py
* select halos from large simulations for generating initial conditions for zoom-in

## tutorials

### halo_tutorial.ipynb
* Jupyter notebook tutorial for using this package

## data

### snapshot_times.txt
* example file for storing information about snapshots: scale-factors, redshifts, times, etc


---
# Units

Unless otherwise noted, this package stores all quantities in (combinations of) these base units
* mass [M_sun]
* position [kpc comoving]
* distance, radius [kpc physical]
* time [Gyr]
* temperature [K]
* magnetic field [Gauss]
* elemental abundance [linear mass fraction]

These are the common exceptions to those standards
* velocity [km/s]
* acceleration [km/s / Gyr]
* gravitational potential [km^2 / s^2]
* rates (star formation, cooling, accretion) [M_sun / yr]
* metallicity (if converted from stored massfraction) [log10(mass_fraction / mass_fraction_solar)], using Asplund et al 2009 for Solar


---
# Installing

The easiest way to install this packages and all of its dependencies is by using `pip`:

```
python -m pip install halo_analysis

```

Alternately, to install the latest stable version from source, clone from `bitbucket`:

```
git clone git://bitbucket.org/awetzel/halo_analysis.git
``` 

then either point your PYTHONPATH to this repository (along with our utilities repository that it depends on), or build and install this project via pip by going inside the top-level `halo_analysis` directory and:

```
python -m pip install .
```


---
# Using

Once installed, you can use individual modules like this:

```
import halo_analysis as halo
halo.io
```


---
# Citing

If you use this package, please cite it, along the lines of: 'This work used HaloAnalysis (http://ascl.net/2002.014), which first was used in Wetzel et al 2016 (https://ui.adsabs.harvard.edu/abs/2016ApJ...827L..23W).'

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "halo-analysis",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "Andrew Wetzel <arwetzel@gmail.com>",
    "keywords": "gizmo, astronomy, astrophysics, cosmology, galaxies, stars, dark matter",
    "author": "Shea Garrison-Kimmel, Zach Hafen, Nico Garavito-Camargo, Kyle Oman",
    "author_email": "Andrew Wetzel <arwezel@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/46/53/bf597a0c87674ebea70380a590eb6ae36c30dc0b6dc1e7ee942a438db88d/halo_analysis-1.0.2.tar.gz",
    "platform": null,
    "description": "# Description\n\nPython package to read and analyze halo/galaxy catalogs (generated from Rockstar or AHF) and merger trees (generated from ConsistentTrees).\n\n\n---\n# Requirements\n\npython 3, numpy, scipy, h5py, matplotlib\n\nThis package also requires the [utilities/](https://bitbucket.org/awetzel/utilities) Python package for various utility functions.\n\n\n---\n# Contents\n\n## halo_analysis\n\n### halo_io.py\n* read halo files, convert from text to hdf5 format, assign particle species to dark-matter halos\n\n### halo_plot.py\n* analyze and plot halos/galaxies\n\n### halo_select.py\n* select halos from large simulations for generating initial conditions for zoom-in\n\n## tutorials\n\n### halo_tutorial.ipynb\n* Jupyter notebook tutorial for using this package\n\n## data\n\n### snapshot_times.txt\n* example file for storing information about snapshots: scale-factors, redshifts, times, etc\n\n\n---\n# Units\n\nUnless otherwise noted, this package stores all quantities in (combinations of) these base units\n* mass [M_sun]\n* position [kpc comoving]\n* distance, radius [kpc physical]\n* time [Gyr]\n* temperature [K]\n* magnetic field [Gauss]\n* elemental abundance [linear mass fraction]\n\nThese are the common exceptions to those standards\n* velocity [km/s]\n* acceleration [km/s / Gyr]\n* gravitational potential [km^2 / s^2]\n* rates (star formation, cooling, accretion) [M_sun / yr]\n* metallicity (if converted from stored massfraction) [log10(mass_fraction / mass_fraction_solar)], using Asplund et al 2009 for Solar\n\n\n---\n# Installing\n\nThe easiest way to install this packages and all of its dependencies is by using `pip`:\n\n```\npython -m pip install halo_analysis\n\n```\n\nAlternately, to install the latest stable version from source, clone from `bitbucket`:\n\n```\ngit clone git://bitbucket.org/awetzel/halo_analysis.git\n``` \n\nthen either point your PYTHONPATH to this repository (along with our utilities repository that it depends on), or build and install this project via pip by going inside the top-level `halo_analysis` directory and:\n\n```\npython -m pip install .\n```\n\n\n---\n# Using\n\nOnce installed, you can use individual modules like this:\n\n```\nimport halo_analysis as halo\nhalo.io\n```\n\n\n---\n# Citing\n\nIf you use this package, please cite it, along the lines of: 'This work used HaloAnalysis (http://ascl.net/2002.014), which first was used in Wetzel et al 2016 (https://ui.adsabs.harvard.edu/abs/2016ApJ...827L..23W).'\n",
    "bugtrack_url": null,
    "license": "Copyright 2014-2024 by the authors.  If you use this package, please cite it, along the lines of: 'This work used HaloAnalysis (http://ascl.net/2002.014), which first was used in Wetzel et al 2016 (https://ui.adsabs.harvard.edu/abs/2016ApJ...827L..23W).'  You are free to use, edit, share, and do whatever you want. But please cite it and report bugs.  Less succinctly, this software is governed by the MIT License:  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE aAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "read and analyze halo/galaxy catalogs",
    "version": "1.0.2",
    "project_urls": {
        "Issues": "https://bitbucket.org/awetzel/halo_analysis/issues?status=new&status=open&status=submitted",
        "Repository": "https://bitbucket.org/awetzel/halo_analysis/src/master/"
    },
    "split_keywords": [
        "gizmo",
        " astronomy",
        " astrophysics",
        " cosmology",
        " galaxies",
        " stars",
        " dark matter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "19f86f3935bf158b50f9983c9f48a9c280baf16dcc0fe51aa1ccbe83fa076956",
                "md5": "a327619102abaf277f1286a466218d33",
                "sha256": "7aa6f22c0491268ca7fa7492dcf2eef089389260269134e4359d42532a7f038a"
            },
            "downloads": -1,
            "filename": "halo_analysis-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a327619102abaf277f1286a466218d33",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 73003,
            "upload_time": "2024-07-12T17:31:04",
            "upload_time_iso_8601": "2024-07-12T17:31:04.063819Z",
            "url": "https://files.pythonhosted.org/packages/19/f8/6f3935bf158b50f9983c9f48a9c280baf16dcc0fe51aa1ccbe83fa076956/halo_analysis-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4653bf597a0c87674ebea70380a590eb6ae36c30dc0b6dc1e7ee942a438db88d",
                "md5": "27b9d06ff96acc8784ddad305f240c03",
                "sha256": "bf827452f59b3750b50154f9ffc9f6b09c490fd5d1c932a640568728be2d908c"
            },
            "downloads": -1,
            "filename": "halo_analysis-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "27b9d06ff96acc8784ddad305f240c03",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 71780,
            "upload_time": "2024-07-12T17:31:05",
            "upload_time_iso_8601": "2024-07-12T17:31:05.634798Z",
            "url": "https://files.pythonhosted.org/packages/46/53/bf597a0c87674ebea70380a590eb6ae36c30dc0b6dc1e7ee942a438db88d/halo_analysis-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-12 17:31:05",
    "github": false,
    "gitlab": false,
    "bitbucket": true,
    "codeberg": false,
    "bitbucket_user": "awetzel",
    "bitbucket_project": "halo_analysis",
    "lcname": "halo-analysis"
}
        
Elapsed time: 0.41097s