Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmcclintock/fastmiscentering
This is a fast implementation of the miscentering integrals needed to calculate the miscentered cluster column density.
https://github.com/tmcclintock/fastmiscentering
Last synced: 26 days ago
JSON representation
This is a fast implementation of the miscentering integrals needed to calculate the miscentered cluster column density.
- Host: GitHub
- URL: https://github.com/tmcclintock/fastmiscentering
- Owner: tmcclintock
- License: gpl-3.0
- Created: 2016-10-15T06:59:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-14T17:34:45.000Z (about 8 years ago)
- Last Synced: 2024-10-27T11:08:42.262Z (2 months ago)
- Language: C
- Size: 72.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
FastMiscentering
================
This is a fast implementation of the miscentering
integrals needed to calculate the miscentered cluster column density.Currently this contains a calculation of the angular integral
for Sigma(R) miscentered, which requires two integrals overall.
The angular integral can be done using Chebyshev-Gauss quadrature
and so can be done very quickly.Dependencies
------------
* numpy
* GSLYou must have a path setup to gsl/include called GSLI
and a path to gsl/lib called GSLL.Installation
------------
From the FastMiscentering directory, run
```
python setup.py install
```And if you care about keeping the root directory clean
```
python setup.py clean
```Usage
-------
Please look at examples/example.py for an example of how to run.In order to calculate, \Sigma_{miscentered} the
call signature is simply
```python
Sigma_mis = fast_miscentering.calc_Sigma_miscentered(Rmis,R,Sigma)
```
where Rmis is the miscentering length, R is an array of radial positions,
and Sigma is the centered Sigma(R).Running the examples/example.py code produces the following:
![alt text](https://github.com/tmcclintock/FastMiscentering/blob/master/figures/fm_example.png)