IN16B_nexus

Parser for .nxs files from IN16B

class in16b_nexus.IN16B_nexus(scanList, observable='time')

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

Parameters:
  • scanList – 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 – whether the scans should be summed or not
  • alignPeaks – if True, will try to align peaks of the monitor with the ones from the PSD data.
  • peakFindWindow – the size (in number of channels) of the window to find and align the peaks of the monitor to the peaks of the data.
  • detGroup – 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
  • observable – the observable that might be changing over scans. It can be time, temperature
  • offset – If not None, only the data with energy offset that equals the given value will be imported.
process()

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