bandpass_kresampling

pysm3.bandpass_kresampling(h: float, nu_i, freq_range: Tuple[float, float], nresample: int = 54) Tuple[ndarray, ndarray][source] [edit on github]

Resample a bandpass with a Gaussian KDE evaluated on a grid.

Parameters:
hfloat

KDE bandwidth (Gaussian sigma), in GHz.

nu_iarray_like

Bootstrap resampled frequencies in GHz (1D).

freq_range(float, float)

(min_freq, max_freq) of output grid in GHz.

nresampleint

Number of points in the output grid.

Returns:
nudndarray

Output frequency grid (GHz).

resampled_bpassndarray

KDE density evaluated on nud (not normalized over the finite grid).