sigpyproc.FoldedData¶
-
class
sigpyproc.FoldedData.FoldSlice(input_array)[source]¶ Bases:
numpy.ndarrayClass to handle a 2-D slice of a
FoldedDatainstance.- Parameters
input_array (
numpy.ndarray) – a 2-D array with phase in x axis.- Returns
2-D array
- Return type
-
class
sigpyproc.FoldedData.FoldedData(input_array, header, period, dm, accel=0)[source]¶ Bases:
numpy.ndarrayClass to handle a data cube produced by any of the sigpyproc folding methods.
- Parameters
input_array (
numpy.ndarray) – 3-D array of folded dataheader (
Header) – observational metadataperiod (float) – period that data was folded with
dm (float) – DM that data was folded with
accel (float) – accleration that data was folded with, by default 0
- Returns
3-D array of folded data with header metadata
- Return type
Notes
Data cube should have the shape: (number of subintegrations, number of subbands, number of profile bins)
-
getFreqPhase()[source]¶ Return the data cube collapsed in time.
- Returns
a 2-D array containing the frequency vs. phase plane
- Return type
-
getProfile()[source]¶ 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
-
class
sigpyproc.FoldedData.Profile(input_array)[source]¶ Bases:
numpy.ndarrayClass to handle a 1-D pulse profile.
- Parameters
input_array (
numpy.ndarray) – a pulse profile in array form- Returns
pulse profile
- Return type
-
SN()[source]¶ Return a rudimentary signal-to-noise measure for the profile.
- Returns
calculated signal-to-noise ratio
- Return type
Notes
This is a bare-bones, quick-n’-dirty algorithm that should not be used for high quality signal-to-noise measurements.