Giter Club home page Giter Club logo

pysz's Introduction

pysz

This is the python code for the calculation of:

  • the thermal SZ anguler power spectrum (used in Makiya et al. 2018 and Makiya et al. 2020)
  • Compton-Y weighted halo bias b_y (used in Chiang et al. 2020)
  • redshift dervative of the Compton-Y, dy/dz (used in Chiang et al. 2020)

The tSZ power spectrum calculation is based on the fortran code szfast devoloped by Eiichiro Komatsu, but there are several important updates e.g., treatment of neutrino mass in the calculation of mass function, mass-concentration relation, etc. Please see Makiya et al. 2018 and Makiya et al. 2020 for the details of the updates.

Please cite Komatsu and Seljak 2002 and Makiya et al. 2018 if you use the code in your paper.

Another tSZ power spectrum code, class_sz, is also based on the szfast. I have confirmed that the outputs of pysz and class_sz within the numerical uncertainties.

Any questions and requests are welcome.

Notes

  • You can use this script to reproduce the plot of redshift vs Compton-Y weighted halo bias b_y (Figure 10 of Chiang et al. 2020)

INSTALL

  1. The code requires the python modules of numpy and classy. You should manually install classy.

  2. Move to source directory

cd pysz/pysz/source
  1. Compile fortran codes Please specify the fortran compilar you use in the Makefile. Then,
make clean && make

All required fortran modules are at the same directory.

  1. then go back to top directory of pysz and install python modules
cd PYSZDIRECTORY
python setup.py install
  1. Check the instlattion Run the python interpreter and type
from pysz import pysz

if it doesn't show any errors, installtion is succesfully completed.

Usage

See pysz_usage.ipynb for the usage of the code.

pysz's People

Contributors

ryumakiya avatar

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.