Plotting Press-Schechter using Python

  • Context: Python 
  • Thread starter Thread starter mahya
  • Start date Start date
  • Tags Tags
    Plotting Python
Click For Summary
SUMMARY

The discussion focuses on plotting the Press-Schechter function using Python for redshifts 0, 0.5, and 1. Participants recommend using the CosmoloPy package and the HaloMassFcn.py script from the yt library as potential solutions. Both resources can be adapted to generate the required plots. This task is part of a course project, emphasizing the need for specific plotting capabilities in Python.

PREREQUISITES
  • Familiarity with Python programming
  • Understanding of the Press-Schechter formalism
  • Knowledge of redshift concepts in cosmology
  • Experience with data visualization libraries in Python
NEXT STEPS
  • Explore the CosmoloPy documentation for plotting capabilities
  • Investigate the yt library, specifically the HaloMassFcn.py script
  • Learn about matplotlib for advanced plotting techniques in Python
  • Research the Press-Schechter function and its applications in cosmology
USEFUL FOR

Astronomers, astrophysicists, and students involved in cosmology projects who need to visualize the Press-Schechter function using Python.

mahya
Messages
7
Reaction score
0
How can I plot "Press-Schechter" function using Python for redshift 0, 0.5 and 1?
 
Technology news on Phys.org
What are you looking for?

1) a plotting package for python or
2) a program that does a Press-Schechter simulation and plots it

Is this a homework assignment or project for a course?

There are Python programs available that you can find via Google but you'd probably need to plot the results yourself.
 
I'm looking for a program that plots the Press-Schechter function for these 3 redshifts. It's actually part of a project for a course.
 
There are some python packages that support it:

http://roban.github.io/CosmoloPy/

and

http://www.nullege.com/codes/show/src@yt-1.6.1@yt@extensions@HaloMassFcn.py

You might be able to adapt them to do plots
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 11 ·
Replies
11
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K