Recent content by mahya

  1. M

    Python Merging FITS Images with Python & Astropy

    Hello everyone, I would like to know how I can combine two FITS images (which are continuum maps of two sources) in python using astropy. Bests
  2. M

    Cumulative number counts of galaxy clusters

    Actually the slope of my plot is totally different from the observation one. In attached images you can compare these two. The reason for integration is that we are supposed to calculate the cumulative number counts (N>S) and it should be integrated over the redshift range (0,Zmax) and (S, inf.).
  3. M

    Cumulative number counts of galaxy clusters

    Dear all, I am trying to plot the cumulative number counts of galaxy cluster (N>S) as a function of X-ray flux. The method I am following is using the mass function and scaling relation to calculate dN/dVdz. Then I do a double integrate over the redshift range and flux range. But the plot that...
  4. M

    Troubleshooting: No Module Named Cython with Ipython Notebook

    Hi guys, I want to use the C-extension of Python (Cython) in order to speed up my Python codes. I have already installed the Cython package using the command $ pip install Cython. Now I want to apply the package in Ipython notebook and when I start with the command: %load_ext cythonmagic I...
  5. M

    Press-Schechter function in python

    I want to write program in python that gives "redshift", range of "M" and range of "dn/dM" as input and plots "Press-Schechter" function and delivers a graph as output. would you please give some hints? I'm beginner in programming and I don't know how to start.
  6. M

    Plotting Press-Schechter using Python

    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.
  7. M

    Plotting Press-Schechter using Python

    How can I plot "Press-Schechter" function using Python for redshift 0, 0.5 and 1?
  8. M

    Change the precision in Ipython

    I want to plot an exponential function in Ipython, something like y=exp(x^0.53). But for small values of "x" it plots a straight line. Actually it plots the first terms of taylor expansion. How can I make it to give me curve for all values of x in my defined range? Should I change the precision...
Back
Top