nenupytf.stokes.specdata

SpecData

Test de docstring

class nenupytf.stokes.specdata.SpecData(data, time, freq, **kwargs)[source]

Bases: object

A class to handle dynamic spectrum data

amp

Linear amplitude of the data

background()[source]

Compute the median background

bg_remove()[source]
data
db

Convert the amplitude in decibels

filter(kernel=7)[source]

Remove the spikes

Parameters:kernel (array_like) – A scalar or an N-length list giving the size of the median filter window in each dimension. Elements of kernel_size should be odd. If kernel_size is a scalar, then this scalar is used as the size in each dimension. Default size is 3 for each dimension.
fmean(freq1=None, freq2=None, method='mean')[source]

Average over the frequency.

Parameters:
  • freq1 (float) – Lower frequency bound in MHz.
  • freq2 (float) – Upper frequency bound in MHz.
  • method (str) – Method used to average (either ‘mean’ or ‘median’)
Returns:

averaged_data – A new SpecData instance containging the averaged quantities.

Return type:

SpecData

frebin(bins)[source]
jd

Return JD dates

mjd

Return MJD dates

time
tmean(t1=None, t2=None, method='mean')[source]

Average over the time.

Parameters:
  • t1 (str) – Lower time bound in ISO/ISOT format.
  • t2 (str) – Upper time bound in ISO/ISOT format.
Returns:

averaged_data – A new SpecData instance containging the averaged quantities.

Return type:

SpecData