HDF_SQUIDutils : utility functions used for the SQUID noise measurements processing

tesfdmtools.methods.HDF_SQUIDutils.fillgraph(plot, norm_cal, xax=None, ytitle='', xtitle='', ptitle='')[source]

Make plot on page

Args:
  • plot = plot instance for plotting

  • norm_cal = array with values to be plotted

Kwargs:
  • xax = X-axis values

  • ytitle = Title for Y-axis

  • xtitle = Title for X-axis

  • ptitle = Title for plot

Returns:
  • pl = plotted object

tesfdmtools.methods.HDF_SQUIDutils.fillplot(plot, image, xax=None, yax=None, xtitle='', ytitle='', ptitle='', vrange=[0.001, 2.0], compress=5000, xlim=[500.0, 10000.0])[source]

Plot image of 2-dim set of stacked spectra into given plot instance. It will use of logarithmic scale for the X-axis

Args:
  • plot = plot instance for plotting

  • image = 2-dim set of stacked spectra

Kwargs:
  • xax = X axis values for image (frequency axis)

  • yax = Y axis values for image

  • xtitle = title for X axis

  • ytitle = title for Y axis

  • ptitle = plot title

  • vrange = range for colorscale

  • compress = number of bins for logarithmically sampled X-axis

  • xlim = range for X-axis

Returns:
  • im = plotted object

tesfdmtools.methods.HDF_SQUIDutils.getspectra(filename, ext='squidnoise')[source]

Get the spectra and axes from the ‘squidnoise’ extension in the given HDF file

Args:
  • filename = file name of the HDF file

Kwargs:
  • ext = extension of the SQUID data in the file

Returns:
  • hdf = open hdf file object

  • data = dictionary containing all the squidnoise data and axes information

tesfdmtools.methods.HDF_SQUIDutils.logindx(linsize, compress=5000)[source]

Compute logarithmically spaced indices, pointing to a given linear size.

Args:
  • linsize = linear size of index table

Kwargs:
  • compress = number of logarithmically spaced indices to generate

Returns:
  • index = array of logarithmically spaced index pointers (floats)