pynrc.reduce.calib.get_power_spec

pynrc.reduce.calib.get_power_spec(data, nchan=4, calc_cds=True, kw_powspec=None, per_pixel=False, return_corr=False, return_ucorr=False, mn_func=<function mean>)[source]

Calculate the power spectrum of an input data ramp in a variety of ways.

If return_corr and return_ucorr are both False, then will return (ps_all, None, None).

Parameters
  • calc_cds (bool) – Power spectrum of CDS pairs or individual frames?

  • per_pixel (bool) – Calculate average power spectrum of each pixel along ramp (frame timescales)? If False, samples pixels within a frame (pixel read timescales)

  • return_corr (bool) – Return power spectrum of channel correlated 1/f noise?

  • return_ucorr (bool) – Return power spectra of channel-dependent (uncorrelated) 1/f noise?

  • kw_powspec (dict) – Keyword arguments to pass to pow_spec_ramp function.

  • mn_func (func) – Function to use to perform averaging of individual power spectra.