CAMB:Primordial power spectrum

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Akhilesh Nautiyal(akhi)
Posts: 72
Joined: June 13 2007
Affiliation: Malaviya National Institute of Technology Jaipur

CAMB:Primordial power spectrum

Post by Akhilesh Nautiyal(akhi) » September 25 2007

Hi,

I am trying to find primordial power spectrum using CAMB. I wrote "write(95,*) k, ScalarPower" where 95 represents the number of file "power.dat".

It is generating the file power.dat containig k and P_k but in that file the values of k are not in proper oder. Initially the values of k are going from xx \times 10^-5 to 1.xxx and again the value of k is starting from xx\times10^-5. So there is no proper ascending order.

Can any one help me how I can get the power spectrum using CAMB in which the output file is written in proper order?

Thanking you,
Sincerely,
Akhilesh Nautiyal
SRF, PRL, INDIA

Pascal Vaudrevange
Posts: 50
Joined: March 26 2006
Affiliation: DESY
Contact:

CAMB:Primordial power spectrum

Post by Pascal Vaudrevange » September 27 2007

You can just sort your file "power.dat" with a standard (on unix) tool called (unsurprisingly) "sort"

sort -g power.dat > power_sorted.dat

Post Reply