Cobaya- changing on runtime redshifts or lmax

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Omar Darwish
Posts: 11
Joined: October 01 2019
Affiliation: unige

Cobaya- changing on runtime redshifts or lmax

Post by Omar Darwish » December 04 2019

Hi all,

is there a way to change on runtime the redshifts or lmax of the theory needs for the likelihood during sampling?

Apart of setting some bigger ellmax or zrange I did not find any simple way (tried a few but none worked...)

For example this would be possible directly using camb

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: Cobaya- changing on runtime redshifts or lmax

Post by Antony Lewis » December 04 2019

What was wrong with just setting bigger ellmax or zrange/do you have an example ? The likelihood should of course request what it needs for actual results.

Omar Darwish
Posts: 11
Joined: October 01 2019
Affiliation: unige

Re: Cobaya- changing on runtime redshifts or lmax

Post by Omar Darwish » December 04 2019

For the z range, for example one thing that I would like is to calculate at different redshift the observables, e.g. H(z).

Now I can request calculation of H at given redshifts zs, but what if I want at zs' with centers different than zs? For example if zs' mid values of zs.

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: Cobaya- changing on runtime redshifts or lmax

Post by Antony Lewis » December 04 2019

Either request exactly what you need, or construct a spline from the requested array and interpolate to other values you want.

Omar Darwish
Posts: 11
Joined: October 01 2019
Affiliation: unige

Re: Cobaya- changing on runtime redshifts or lmax

Post by Omar Darwish » December 04 2019

I wanted to avoid doing an interpolation, but maybe I can just check the accuracy of this approximation.

Thanks Antony

Post Reply