pynrc.reduce.calib.get_freq_array

pynrc.reduce.calib.get_freq_array(pow_spec, dt=1, nozero=False, npix_odd=False)[source]

Return frequencies associated with power spectrum

Parameters
  • pow_spec (ndarray) – Power spectrum to obtain associated frequency array.

  • dt (float) – Delta time between corresponding elements in time domain.

  • nozero (bool) – Set freq[0] = freq[1] to remove zeros? This is mainly so we don’t obtain NaN’s later when calculating 1/f noise.

  • npix_odd (bool) – We normally assume that the original time-domain data was comprised of an even number of pixels. However, if it were actually odd, the frequency array will be slightly shifted. Set this to True if the intrinsic data that was used to generate the pow_spec had an odd number of elements.