pynrc.reduce.calib.get_power_spec_all
- pynrc.reduce.calib.get_power_spec_all(allfiles, super_bias=None, det=None, DMS=False, include_oh=False, same_scan_direction=False, reverse_scan_direction=False, calc_cds=True, return_corr=False, return_ucorr=False, per_pixel=False, mn_func=<function mean>, kw_reffix=None)[source]
Return the average power spectra (white, 1/f noise correlated and uncorrelated) of all FITS files.
- Parameters:
allfiles (array-like) – List of FITS files to operate on.
super_bias (ndarray) – Option to subtract a super bias image from all frames in a ramp. Provides slightly better statistical averaging for reference pixel correction routines.
det (Detector class) – Option to pass known NIRCam detector class. This will get generated from a FITS header if not specified.
DMS (bool) – Are the files DMS formatted or FITSWriter?
include_oh (bool) – Zero-pad the data to insert line and frame overhead pixels?
same_scan_direction (bool) – Are all the output channels read in the same direction? By default fast-scan readout direction is
[-->,<--,-->,<--]Ifsame_scan_direction, then all-->reverse_scan_direction (bool) – If
reverse_scan_direction, then[<--,-->,<--,-->]or all<--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.