Skip to main content

Python routines for computing Navarro-Frenk-White halo properties

Project description

Build Status Coverage Status DOI

This class implements the NFW (Navarro, Julio F. Frenk, Carlos S. White, Simon D. M., “A Universal Density Profile from Hierarchical Clustering”, The Astrophysical Journal vol. 490, pp. 493-508, 1997) halo profile. It allows easy computation of halo quantities such as mass at and radius of specified overdensities. Overdensities can be specified either with respect to the critical or mean density of the Universe.

Class instances can be created at different overdensities. As such the class allows for easy conversion between masses and concentration parameters between different mass definitions.

Surface mass density and differential surface mass density methods are available for weak lensing applications.

Installation

The easiest way to install the NFW module is to use pip:

$ pip install NFW

Dependencies

This implementation of the NFW halo properties depends on

  • numpy >= 1.9

  • scipy >= 0.16

  • astropy >= 2.0

Older versions may work but are untested. In particular astropy > 1.0 is known to work but the unit tests will fail because astropy-2.0 updated physical constants from CODATA 2010 to CODATA 2014.

Author

Jörg Dietrich astro@joergdietrich.com

Contributing

Development takes place on GitHub. Please report any bugs as an issue in the GitHub issue tracker.

License

NFW is released under an MIT license. See LICENCE.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NFW-0.3.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

NFW-0.3.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file NFW-0.3.1.tar.gz.

File metadata

  • Download URL: NFW-0.3.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for NFW-0.3.1.tar.gz
Algorithm Hash digest
SHA256 3742761fdbb67151856d77cf005d34dce5e7e4520f75470c7fadf07cef0987d2
MD5 a71166ae2537dd053c08ddc08d874a0b
BLAKE2b-256 b2ca7e3eb2eba9e114df2b74e9520c18db75a6cf74bd7222eb628482f1160c06

See more details on using hashes here.

File details

Details for the file NFW-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: NFW-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for NFW-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b58c646b3307927ed4d6ee13f456bc6a5226fff532c54b89a54e3bc056ce52ee
MD5 772cdbd95925316a9d32cd4695c45399
BLAKE2b-256 6cf0c6770d960fb0d5c9de2feff2e975744fe8efbd38bc917e18ac2fceb40f39

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page