Plotting Press-Schechter using Python

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

Discussion Overview

The discussion revolves around how to plot the Press-Schechter function using Python for specific redshifts (0, 0.5, and 1). The scope includes practical programming solutions and potential resources for a course project.

Discussion Character

  • Exploratory, Technical explanation, Homework-related

Main Points Raised

  • One participant inquires about the specific needs for plotting, asking if a plotting package or a complete program for simulation is required.
  • Another participant clarifies that they are looking for a program that can plot the Press-Schechter function as part of a course project.
  • Several Python packages are suggested as potential resources for plotting, including links to CosmoloPy and a specific HaloMassFcn script.
  • There is an implication that existing programs may require adaptation for the specific plotting needs.

Areas of Agreement / Disagreement

Participants generally agree on the need for a program that can plot the Press-Schechter function, but there is no consensus on a specific solution or method to achieve this.

Contextual Notes

Some limitations may include the need for adaptation of existing packages and the potential requirement for additional coding to meet specific project needs.

Who May Find This Useful

Individuals interested in computational astrophysics, Python programming for scientific applications, or those working on related course projects may find this discussion useful.

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
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
3
Views
3K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K