Difference between revisions of "Data viewer"

From cctbx_xfel
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The command "cci.pyana" can be configured to display the diffraction images streamed from an XTC file.
+
The command "cxi.pyana" can be configured to display the diffraction images streamed from an XTC file.
  
 
== Configuring the viewer ==
 
== Configuring the viewer ==
Line 25: Line 25:
 
</pre>
 
</pre>
 
The command will marshal together all events from streams 0-4 in run 7 of experiment 346.  Those events with the CXI imaging detector with the given <code>address</code> will be sent to the <code>mod_view</code> module that displays images in a GUI.  Dark subtraction is done with the files <code>dark_path</code> and <code>dark_stddev</code> that are described on the [[Preparatory steps]] wiki page.
 
The command will marshal together all events from streams 0-4 in run 7 of experiment 346.  Those events with the CXI imaging detector with the given <code>address</code> will be sent to the <code>mod_view</code> module that displays images in a GUI.  Dark subtraction is done with the files <code>dark_path</code> and <code>dark_stddev</code> that are described on the [[Preparatory steps]] wiki page.
Critical parameters are:
+
Important parameters are:
 
* <code>n_update</code>: GUI will only display every Nth event (every 120th image, in this example).
 
* <code>n_update</code>: GUI will only display every Nth event (every 120th image, in this example).
 
* <code>n_collate</code>: GUI will display an average image over the last N events (last 60 events, in this example).
 
* <code>n_collate</code>: GUI will display an average image over the last N events (last 60 events, in this example).
 +
'''Critical step:'''
 +
'''Please press the Run/Pause (green) button in the GUI to make the action start.'''

Latest revision as of 16:16, 19 October 2016

The command "cxi.pyana" can be configured to display the diffraction images streamed from an XTC file.

Configuring the viewer

Add to the mod_view section of your pyana config file as follows:

[pyana]
modules = my_ana_pkg.mod_view
num-cpu = 1

[my_ana_pkg.mod_view]
address     = CxiDs1-0|Cspad-0
calib_dir   = /reg/g/cctbx/sources/cctbx_project/xfel/metrology/CSPad/run4/CxiDs1.0_Cspad.0
dark_path       = /reg/d/psdm/cxi/cxib9713/res/darks/r0001-Ds1-avg.pickle
dark_stddev     = /reg/d/psdm/cxi/cxib9713/res/darks/r0001-Ds1-stddev.pickle
detz_offset = 555

# Suitable values depend on the repetition rate of the instrument.
n_update    = 120
n_collate   = 60

The command is run as follows:

cxi.pyana -c myconfig_file.cfg /path/to/xtc/streams/e346-r0007-s0[0-4]-c00.xtc

The command will marshal together all events from streams 0-4 in run 7 of experiment 346. Those events with the CXI imaging detector with the given address will be sent to the mod_view module that displays images in a GUI. Dark subtraction is done with the files dark_path and dark_stddev that are described on the Preparatory steps wiki page. Important parameters are:

  • n_update: GUI will only display every Nth event (every 120th image, in this example).
  • n_collate: GUI will display an average image over the last N events (last 60 events, in this example).

Critical step: Please press the Run/Pause (green) button in the GUI to make the action start.