Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following functions are readily available for use in smalldata_tools:

  • ROI
  • Azimuthal integration
  • Droplet
  • Projection
  • Autocorrelation
  • ROIFunc
  • ...

The funtions definition can be found in <smalldata_tools>/smalldata_tools/ana_funcs, in case one want to take a close look at how the data are processed. These analysis functions are sub-classes of DetObjectFunc and the computation are done in the custom process method defined in each subclass.

...

The different common modes are described here

Interactive SmallDataAna session

...

For the use of the interactive features of SmallDataAna_psana, we recommend to start it in an ipython session as interactive grabbing of user input is currently not implemented via the notebook.

...

In order to decide on the proper ROI, fit a team center or make a mask, the first step is always to create an image that you would like to use as base. This is achieved using the following function in the python terminal opened from:

/regsdf/data/dlcls/psdmds/<hutch>/<expname>/results/smalldata_tools via:

Code Block
languagebash
themeRDark
./

...

producers/runSmallDataAna -r <#> [-e <expname>]

The following command will create an average image of 100 events of an area detector with a set of default parameters: -r <run#>

Code Block
languagepy
themeRDark
SDAna In: anaps.AvImage()

This will by default create an average image of 100 events of an area detector. The method will list and prompt for a detector name if more than one area detector is found in the dataset. 

The full command with all its options can be looked via using the "?" feature of pythoniPython:

Code Block
languagepy
themeRDark
SDAna In: anaps.AvImage?

 
If you would like to take a quick look at your average image before proceeding, call:

Code Block
languagepy
themeRDark
SDAna In: anaps.plotAvImage()

The SmallDataAna session can typically be used to help setting the parameters for the smalldata production.

-------------------------------------------------------------------------------------------------------------------------------------------------------------

Deprecated

Typical forms of userData

...