LSSTDESC / CCL

DESC Core Cosmology Library: cosmology routines with validated numerical accuracy
BSD 3-Clause "New" or "Revised" License
141 stars 64 forks source link

Improve extrapolation in Pk2D #816

Open jablazek opened 4 years ago

jablazek commented 4 years ago

Extend the functionality built-in to Pk2D to allow for power-law (or similar) extrapolation when is_logp = False. This will prevent differences in Pk that comes from nl_pt vs directly from the main cosmology object, and it will provide a physically reasonable extrapolation for PT calculations. This closes #773, since it will solve the underlying issue.

Something like this:

if is_logp = True continue as normal (could add an option for all neg values, i.e. log(-P) was passed)

if is_logp = False if log_ext = False(new option) ... original behavior if log_ext = True

jablazek commented 1 year ago

@tilmantroester : will this also solve the nonlinear Pk extrapolation for nonlinear systematics in Firecrown?