Page 1 of 1

Cobaya- changing on runtime redshifts or lmax

Posted: December 04 2019
by Omar Darwish
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

Re: Cobaya- changing on runtime redshifts or lmax

Posted: December 04 2019
by Antony Lewis
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.

Re: Cobaya- changing on runtime redshifts or lmax

Posted: December 04 2019
by Omar Darwish
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.

Re: Cobaya- changing on runtime redshifts or lmax

Posted: December 04 2019
by Antony Lewis
Either request exactly what you need, or construct a spline from the requested array and interpolate to other values you want.

Re: Cobaya- changing on runtime redshifts or lmax

Posted: December 04 2019
by Omar Darwish
I wanted to avoid doing an interpolation, but maybe I can just check the accuracy of this approximation.

Thanks Antony