IN16B_BATS

This module is used for importation of raw data from IN16B instrument.

class in16b_bats_scans_reduction.IN16B_BATS(scanList, sumScans=True, detGroup=None, normalize=True, strip=0, observable='time', tElastic=None, monitorCutoff=0.8, pulseChopper='C34', slidingSum=None)

This class can handle raw data from IN16B-BATS at the ILL in the hdf5 format.

Parameters:
  • scanList (string or list) – A string or a list of files to be read and parsed to extract the data. It can be a path to a folder as well.
  • sumScans (bool) – Whether the scans should be summed or not.
  • detGroup (string, int) – Detector grouping, i.e. the channels that are summed over along the position-sensitive detector tubes. It can be an integer, then the same number is used for all detectors, where the integer defines a region (middle of the detector +/- detGroup). It can be a list of integers, then each integers of the list should corresponds to a detector. Or it can be a string, defining a path to an xml file as used in Mantid. If set to no, no detector gouping is performed and the data represents the signal for each pixel on the detectors. In this case, the observable become the momentum transfer q in the vertical direction.
  • normalize – Whether the data should be normalized to the monitor
  • strip – An integer defining the number of points that are ignored at each extremity of the spectrum.
  • observable – The observable that might be changing over scans. It can be time or temperature.
  • tElastic (int, float) – Time for the elastic peak. Optional, if None, will be guessed from peak fitting.
  • monitorCutoff – Cutoff with respect to monitor maximum to discard data.
  • pulseChopper ({'C12', 'C34'}) – Chopper pair that is used to define the pulse.
getReference()

Process files to obtain reference values for elastic signal.

process(center=None, peaks=None, monPeaks=None)

Extract data from the provided files and reduce them using the given parameters.

Parameters:
  • center (int) – Position of the elastic signal along channels.
  • peaks (2D array) – Reference position of the peaks in dataset. Column vector with integer position for each q value.
  • monPeaks (int) – Reference position of monitor peak signal.