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
CAMB:Primordial power spectrum
-
- Posts: 72
- Joined: June 13 2007
- Affiliation: Malaviya National Institute of Technology Jaipur
-
- Posts: 50
- Joined: March 26 2006
- Affiliation: DESY
- Contact:
CAMB:Primordial power spectrum
You can just sort your file "power.dat" with a standard (on unix) tool called (unsurprisingly) "sort"
sort -g power.dat > power_sorted.dat
sort -g power.dat > power_sorted.dat