sigpyproc.foldedcube#
- class sigpyproc.foldedcube.Profile(input_array)#
Bases:
ndarrayAn array class to handle a 1-D pulse profile.
- Parameters:
input_array (
ArrayLike) – 1-D array of a pulse profile- Returns:
Pulse profile
- Return type:
- class sigpyproc.foldedcube.FoldSlice(input_array)#
Bases:
ndarrayAn array class to handle a 2-D slice of
FoldedData.- Parameters:
input_array (
ArrayLike) – 2-D array with phase in x axis.- Returns:
2-D array array
- Return type:
- normalize()#
Normalise the slice by dividing each row by its mean.
- Returns:
normalised version of slice
- Return type:
- class sigpyproc.foldedcube.FoldedData(input_array, header, period, dm, accel=0)#
Bases:
ndarrayAn array class to handle a data cube produced by any of the folding methods.
- Parameters:
- Returns:
3-D array of folded data with header metadata
- Return type:
Notes
Input array should have the shape: (number of subintegrations, number of subbands, number of profile bins)
- property nints#
Number of subintegrations in the data cube(int, read-only).
- property nbands#
Number of subbands in the data cube (int, read-only).
- property nbins#
Number of bins in the data cube(int, read-only).
- get_subint(nint)#
Return a single subintegration from the data cube.
- get_subband(nint)#
Return a single subband from the data cube.
- get_profile()#
Return a the data cube summed in time and frequency.
- Returns:
a 1-D array containing the power as a function of phase (pulse profile)
- Return type:
- get_time_phase()#
Return the data cube collapsed in frequency.
- Returns:
a 2-D array containing the time vs. phase plane
- Return type:
- get_freq_phase()#
Return the data cube collapsed in time.
- Returns:
a 2-D array containing the frequency vs. phase plane
- Return type:
- centre()#
Roll the data cube to center the pulse.
- replace_nan()#