onepower.add.UpsampledSpectra.extrapolate_spectra# UpsampledSpectra.extrapolate_spectra(z_ext, k_ext, z_in, k_in, power, extrapolate_option)[source]# Extrapolate the power spectra to the desired output grid. Parameters: z_ext (array_like) – Output redshifts. k_ext (array_like) – Output k-vector. z_in (array_like) – Input redshifts. k_in (array_like) – Input k-vector. power (array_like) – Power spectra to extrapolate. extrapolate_option (str or float) – Extrapolation option to pass to interp1d. Returns: Extrapolated power spectra. Return type: ndarray