Skip to main content

Navarro-Frenk-White (NFW) Halo Class

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

Metadata

Release files for NFW 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NFW 0.3.1
File Size Uploaded Provenance Actions
NFW-0.3.1.tar.gz 8.9 kB Without provenance Details for NFW-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for NFW 0.3.1
File Interpreter ABI Platform Actions
NFW-0.3.1-py3-none-any.whl Python 3 none any Details for NFW-0.3.1-py3-none-any.whl

Total release size: 17.3 kB

Release files / NFW-0.3.1.tar.gz

Download URL NFW-0.3.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3742761fdbb67151856d77cf005d34dce5e7e4520f75470c7fadf07cef0987d2
BLAKE2b-256 checksum
How to use checksums
b2ca7e3eb2eba9e114df2b74e9520c18db75a6cf74bd7222eb628482f1160c06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / NFW-0.3.1-py3-none-any.whl

Download URL NFW-0.3.1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b58c646b3307927ed4d6ee13f456bc6a5226fff532c54b89a54e3bc056ce52ee
BLAKE2b-256 checksum
How to use checksums
6cf0c6770d960fb0d5c9de2feff2e975744fe8efbd38bc917e18ac2fceb40f39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Security for NFW 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page