You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

This page describes smalldata_tools, a suite of code useful for analysis from the xtc data to small(er) hdf5 files at several stages of analysis. The code can be found on git at https://github.com/slac-lcls/smalldata_tools.

At XPP or XCS, the code setup is usually taken care off by the beam line staff. For other hutches, please contact the controls POC or pcds-poc-l. The suggested working directory are:

/reg/d/psdm/<hutch>/<expname>/results/smalldata_tools 

for the offline and

/cds/data/drpsrcf/<hutch>/<expname>/scratch/smalldata_tools 

for the (new) fast feedback system (psffb).

Workflow

The analysis is generally split in two steps, allowing for easy diagnostics and customization of the analysis process. Please contact your controls and data POC to assess the best approach for your experiment.

  • The first step is the generation of the "small data" file, the colloquial name for run-based hdf5 files which contain different data arrays where the first dimension is the number of events. This production can be run automatically on each new run so that the data is available only a few minutes after the run has ended. It can also be run on request in case you want to tweak the data extraction. Pre-processing of the area detector can be configured at this stage, performing operation such as extracting a region of interest, azimuthal integration, photon counting, etc.
    The following pages describe this in more detail:

    Generation of small hdf5 files

    Automatic Production

    Configuration of SmallData 

    Adding Data from area detectors

  • The second stage depends much more on the type of experiment. Different options are available:
    • Adapt one of the templated analysis notebooks to suit the current experiment needs. These custom templates have been made for the more common experiment performed at different endstation at LCLS and are available at <path>. This approach is generally recommended for lightweight data analysis, for which the area detector images are reduced to a single (or few) number (integration of a ROI, azimuthal binning, for example).
      A description of the example notebooks can be found here: <link>
    • Binning of the full detector images can be performed by setting up the cube analysis, which will return a dataset of binned data and images, resulting in a relatively light-weight file. This approach is recommended in cases where the analysis of the full image is needed (Q-resolved diffused scattering analysis, for example).
      Details on the cube workflow are given here: <link>


The contents of the smallData files are described here

smallData Contents


  • No labels