radiospectra.spectrogram.
LinearTimeSpectrogram
(data, time_axis, freq_axis, start, end, t_init=None, t_delt=None, t_label='Time', f_label='Frequency', content='', instruments=None)[source]¶Bases: radiospectra.spectrogram.Spectrogram
Spectrogram evenly sampled in time.
Attributes
t_delt  (float) difference between the items on the time axis 
Attributes Summary
COPY_PROPERTIES 

JOIN_REPEAT 
Methods Summary
check_linearity ([err, err_factor]) 
Check linearity of time axis. 
combine_frequencies (specs) 
Return new spectrogram that contains frequencies from all the spectrograms in spec. 
in_interval ([start, end]) 
Return part of spectrogram that lies in [start, end). 
intersect_time () 
Return slice of spectrograms that is present in all of the ones passed. 
join_many (specs[, mk_arr, nonlinear, …]) 
Produce new Spectrogram that contains spectrograms joined together in time. 
make_array ([dtype]) 
Function to create an array with shape and dtype. 
memmap () 
Return function that takes shape and dtype and returns a memory mapped array. 
resample_time (new_delt) 
Rescale image so that the difference in time between pixels is new_delt seconds. 
time_to_x (time) 
Return xcoordinate in spectrogram that corresponds to the passed datetime value. 
Attributes Documentation
COPY_PROPERTIES
= [('time_axis', 1), ('freq_axis', 1), ('instruments', 1), ('start', 0), ('end', 0), ('t_label', 0), ('f_label', 0), ('content', 0), ('t_init', 0), ('t_delt', 0)]¶JOIN_REPEAT
= <object object>¶Methods Documentation
check_linearity
(err=None, err_factor=None)[source]¶Check linearity of time axis. If err is given, tolerate absolute derivation from average delta up to err. If err_factor is given, tolerate up to err_factor * average_delta. If both are given, TypeError is raised. Default to err=0.
Parameters:  err : float
err_factor : float


combine_frequencies
(specs)[source]¶Return new spectrogram that contains frequencies from all the spectrograms in spec. Only returns time intersection of all of them.
Parameters:  spec : list


in_interval
(start=None, end=None)[source]¶Return part of spectrogram that lies in [start, end).
Parameters:  start : None or
end : None or


intersect_time
()[source]¶Return slice of spectrograms that is present in all of the ones passed.
Parameters:  specs : list


join_many
(specs, mk_arr=None, nonlinear=False, maxgap=0, fill=<object object>)[source]¶Produce new Spectrogram that contains spectrograms joined together in time.
Parameters:  specs : list
nonlinear : bool
maxgap : float, int or None
fill : float or int
mk_array: function


make_array
(dtype=dtype('float32'))[source]¶Function to create an array with shape and dtype.
Parameters:  shape : tuple
dtype :


memmap
()[source]¶Return function that takes shape and dtype and returns a memory mapped array.
Parameters:  filename : str


resample_time
(new_delt)[source]¶Rescale image so that the difference in time between pixels is new_delt seconds.
Parameters:  new_delt : float


time_to_x
(time)[source]¶Return xcoordinate in spectrogram that corresponds to the passed datetime value.
Parameters:  time :

