pynrc.reduce.calib.pow_spec_ramp

pynrc.reduce.calib.pow_spec_ramp(data, nchan, nroh=0, nfoh=0, nframes=1, expand_npix=False, same_scan_direction=False, reverse_scan_direction=False, mn_func=<function mean>, return_freq=False, dt=1, **kwargs)[source]

Get power spectrum within frames of input ramp

Takes an input cube, splits it into output channels, and finds the power spectrum of each frame. Then, calculate the average power spectrum for each channel.

Use nroh and nfoh to expand the frame size to encapsulate the row and frame overheads not included in the science data. These just zero-pad the array.

Parameters
  • data (ndarray) – Input Image cube.

  • nchan (int) – Number of amplifier channels.

  • nroh (int) – Number of pixel overheads per row.

  • nfoh (int) – Number of row overheads per frame.

  • nframes (int) – Number of frames to use to calculate an power spectrum. Normally we just use 1 frame time

  • expand_npix (bool) – Should we zero-pad the array to a power of two factor for incresed speed?

  • same_scan_direction (bool) – Are all the output channels read in the same direction? By default fast-scan readout direction is [-->,<--,-->,<--] If same_scan_direction, then all -->

  • reverse_scan_direction (bool) – If reverse_scan_direction, then [<--,-->,<--,-->] or all <--