FRBSignalGeneration.py
def InjectFRB(self,epochFRB=0,ampFRB=1,decayFRB=5,riseFRB=0):
        """ 
        Takes a time series, injects an FRB with a given shape and amplitude at a certain epoch.
        Inputs:
        
        timeSeries -- numpy array of some length, with complex variables.
        sampTime -- time sampling of the timeseries to define the scale for 
        epochFRB -- location of the FRB peak from the start of the time series (seconds).
        ampFRB -- amplitude of the FRB peak. NOTE: this is not the total power. This might get re-written later.
        decayFRB -- FRB decay time for the scattering tail (seconds)
        riseFRB -- FRB rise time (seconds). Default is zero.
        """
        ## the complicated expression is just to the get right shape.
        timePoints = (np.meshgrid(np.arange(0,self.shape[1]),
                                  np.arange(0,self.shape[0]))[1])*self.sampTime - epochFRB
        
        ampFRB = ampFRB/self.shape[1] ## reduce the amplitude based on the number of channels
        
        self.timeSeries += FastRiseExpDecay(timePoints,ampFRB,decayFRB,riseFRB)
 
        Takes a time series, injects an FRB with a given shape and amplitude at a certain epoch.
        Inputs:
        
        timeSeries -- numpy array of some length, with complex variables.
        sampTime -- time sampling of the timeseries to define the scale for 
        epochFRB -- location of the FRB peak from the start of the time series (seconds).
        ampFRB -- amplitude of the FRB peak. NOTE: this is not the total power. This might get re-written later.
        decayFRB -- FRB decay time for the scattering tail (seconds)
        riseFRB -- FRB rise time (seconds). Default is zero.
        
Takes a time series, injects an FRB with a given shape and amplitude at a certain epoch.
Inputs.

- numpy array of some length, with complex variables.
sampTime -- time sampling of the timeseries to define the scale for
epochFRB -- location of the FRB peak from the start of the time series (seconds).
ampFRB -- amplitude of the FRB peak. NOTE: this is not the total power. This might get re-written later.
decayFRB -- FRB decay time for the scattering tail (seconds)
riseFRB -- FRB rise time (seconds). Default is zero.
Takes a time series injects an FRB with a given shape and amplitude at a certain epoch . Inputs . - numpy array of some length with complex variables . sampTime -- time sampling of the timeseries to define the scale for epochFRB -- location of the FRB peak from the start of the time series ( seconds ) . ampFRB -- amplitude of the FRB peak . NOTE : this is not the total power . This might get re - written later . decayFRB -- FRB decay time for the scattering tail ( seconds ) riseFRB -- FRB rise time ( seconds ) . Default is zero .
def InjectFRB(self,epochFRB=0,ampFRB=1,decayFRB=5,riseFRB=0):
        timePoints = (np.meshgrid(np.arange(0,self.shape[1]),
                                  np.arange(0,self.shape[0]))[1])*self.sampTime - epochFRB
        ampFRB = ampFRB/self.shape[1] 
        self.timeSeries += FastRiseExpDecay(timePoints,ampFRB,decayFRB,riseFRB)
def InjectFRB ( self , epochFRB = 0 , ampFRB = 1 , decayFRB = 5 , riseFRB = 0 ) : timePoints = ( np . meshgrid ( np . arange ( 0 , self . shape [ 1 ] ) , np . arange ( 0 , self . shape [ 0 ] ) ) [ 1 ] ) * self . sampTime - epochFRB ampFRB = ampFRB / self . shape [ 1 ] self . timeSeries += FastRiseExpDecay ( timePoints , ampFRB , decayFRB , riseFRB )
Takes a time series, injects an FRB with a given shape and amplitude at a certain epoch.
Takes a time series injects an FRB with a given shape and amplitude at a certain epoch .
""" 
        Takes a time series, injects an FRB with a given shape and amplitude at a certain epoch.
        Inputs:
        
        timeSeries -- numpy array of some length, with complex variables.
        sampTime -- time sampling of the timeseries to define the scale for 
        epochFRB -- location of the FRB peak from the start of the time series (seconds).
        ampFRB -- amplitude of the FRB peak. NOTE: this is not the total power. This might get re-written later.
        decayFRB -- FRB decay time for the scattering tail (seconds)
        riseFRB -- FRB rise time (seconds). Default is zero.
        """ ## the complicated expression is just to the get right shape. ## reduce the amplitude based on the number of channels
self
epochFRB
ampFRB
decayFRB
riseFRB