DynamicSpectrum Class

The DynamicSpectrum class handles dynamic spectra.

class DynamicSpectra(data[, offdata=None, errdata=None, mask=None, F=None, T=None, extras=None, verbose=True])

Usage:

ds = DynamicSpectrum(FILENAME) #takes a 2D data array or a string to a .npz file for now
acf2d = ds.acf2d() #calculates the 2D ACF of the dynamic spectrum
ds.imshow() #plots the dynamic spectrum
ds.save(NEWFILENAME) #saves to a .npz file, which can then be loaded again with the first line

Methods

getValue(f, t[, df=1, dt=1, err=False, index=False])
remove_baseline([function="gaussian", redo=False])

Attempts to remove the baseline amplitude from the dynamic spectrum

acf2d(remove_baseline=True,speed='fast',mode='full'])

Calculate the two-dimensional auto-correlation function of the dynamic spectrum

secondary_spectrum([log=False])
scintillation_parameters([plotbound=1.0])
imshow([err=False, cbar=False, ax=None, show=True, border=False, ZORDER=0, cmap=cm.binary, alpha=True, cdf=True])

Basic plotting of the dynamic spectrum

load(filename)

Load the dynamic spectrum from a .npz file

Parameters:filename (str) – Filename to load from
save(filename)

Save the dynamic spectrum to a .npz file

Parameters:filename (str) – Filename to sae to
add(ds[, axis='T'])

Concatenates another dynamic spectrum with this one

Warning

basic functionality only

getData([remove_baseline=True])
getACF([remove_baseline=True])