Giter Site home page Giter Site logo

afcarl / cluster-lensing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jesford/cluster-lensing

0.0 0.0 0.0 1.99 MB

Galaxy Cluster and Weak Lensing Tools

Home Page: http://jesford.github.io/cluster-lensing

License: MIT License

Python 18.38% Jupyter Notebook 81.62%

cluster-lensing's Introduction

Galaxy Cluster and Weak Lensing Tools

Build Status GitHub license astropy DOI

Documentation

The full cluster-lensing documentation is online here.

I am starting to put together a brief software paper describing this package, which I plan to submit to a journal. You can see this paper in the making, and send me feedback if you like, by going here.

Try out the cluster-lensing package, no commitment (no downloads) necessary. You can play with the demo notebook online from here: Binder

Installation

cluster-lensing is a pure Python package that can be installed by running:

$ pip install cluster-lensing

To upgrade to the newest version do:

$ pip install cluster-lensing --upgrade

This package runs on Python 2.7, 3.4, and 3.5, and its dependencies include numpy, scipy, astropy, and pandas.

Description

cluster-lensing is a Python project for calculating a variety of galaxy cluster properties, as well as mass-richness and mass-concentration scaling relations, and weak lensing profiles. These include surface mass density (Sigma) and differential surface mass density (DeltaSigma) for NFW halos, both with and without the effects of cluster miscentering.

The focus of this project is the ClusterEnsemble() class in clusters.py. See a demo of what it can do in the provided notebook: demo.ipynb.

ClusterEnsemble() allows you to easily build up a nicely formatted table (a pandas dataframe) of cluster attributes, and automatically generates parameters that depend on each other. It uses a customizable powerlaw mass-richness scaling relation to convert between richness N200 and mass M200, and to generate other parameters. Other customizeable options include specifications of the cosmology and a choice of several concentration-mass relationships from the literature.

The ClusterEnsemble.calc_nfw() method provides simplified access to the SurfaceMassDensity() class in nfw.py. The latter calculates the NFW halo profiles for Sigma(r) and DeltaSigma(r), which are useful for fitting weak lensing shear or magnification profiles. Optionally, it will calculate the miscentered profiles, given an offset parameter describing the width of the 2D Gaussian miscentering offset distribution. See, for example, Ford et al. 2015, for the miscentering formalism, and an example use case. All of the code you see in this repository (as well as the repositories linked below) is a cleaned up version of the same code used for that CFHTLenS cluster shear paper, as well as for our previous cluster magnification paper.

This project has inherited code from the cofm repository for concentration-mass relationships and the smd-nfw repository for calculating NFW halo profiles.

If you use cluster-lensing in your research, please consider citing it. You can use the following bibtex:

@misc{clusterlensing,
  author       = {Jes Ford},
  title        = {cluster-lensing: v0.1.2},
  month        = may,
  year         = 2016,
  doi          = {10.5281/zenodo.51370},
  url          = {http://dx.doi.org/10.5281/zenodo.51370},
  publisher    = {Zenodo}
}

cluster-lensing's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.