XTC Explorer is a GUI-based tool to explore interactively the XTC data files;
This application opens a Python GUI which helps to prepare configuration file for pyana or psana and launch it. The pyana or psana framework modules access, accumulate, and plot data from XTC file.
Based on selections made in the GUI, xtcexplorer writes out pyana configuration files with names xb_pyana_XXXX.cfg, where XXXX is a random four-digit number. You can use them to run pyana directly from the command line. But they accumulate, so you might want to remove these regularly...
Naming conventions:
Authors:
Latest tags:
2012-Aug-20 ofte V00-01-37
...
2013-Mar-14 salnikov V00-03-00
This tutorial follows to the Manual XTC Explorer - Old, shows how to set up environment, start xtcexplorer, explore content of the xtc file, interactively create/edit configuration file for pyana/psana, run it interactively and in the command line, etc.
ssh -Y pslogin ssh psananeh or ssh psanafeh |
. /reg/g/psdm/etc/sit_env.sh |
source /reg/g/psdm/etc/sit_env.csh |
newrel ana-current my_tutorial_release; cd my_tutorial_release; sit_setup; |
Optional: if something need to be changed in code, check out the latest version of package and "compile":
addpkg XtcExplorer HEAD scons |
Application GUI can be started by the command
xtcexplorer |
To proceed the xtc file name should be pointed using one of four methods:
xtcexplorer /reg/d/psdm/XPP/xpptut13/xtc/e308-r0008-*.xtc or xtcexplorer /reg/d/psdm/SXR/sxrtut13/xtc/e306-r0366-*.xtc |
In the Psana Control Center window
In case of selection |
Click on Write configuration to file button.
After that the configuration file with name xb_pyana_XXXX.cfg is ready and can be edited clicking on Edit configuration to file or executed
pyana -c xb_pyana_XXXX.cfg |
Use ls
command, select one of existing configuration files created by the xtcexplorer in current directory and run psana/pyana by the command line:
pyana -c xb_pyana_XXXX.cfg |
observe the same results as in Exercise 2.
Framework module name |
Functionality |
---|---|
XtcExplorer/src/pyana_bld.py |
display of Beam-line data |
XtcExplorer/src/pyana_epics.py |
display of Epics PV data |
XtcExplorer/src/pyana_scan.py |
display of motor scan data |
XtcExplorer/src/pyana_encoder.py |
display of encoder data |
XtcExplorer/src/pyana_ipimb.py |
display of diode data from IPIMB and PIM |
XtcExplorer/src/pyana_waveform.py |
display of waveform data |
XtcExplorer/src/pyana_image.py |
display of camera image data |
XtcExplorer/src/pyana_plotter.py |
plotter module to control the event display |
These modules can be used in configuration file with parameters described in XTC Explorer - Old#The pyana modules.
Now you are familiar with general concept of how to launch pyana or psana in the xtcexplorer or command line for existing modules. But you need in more data processing and would like to get data in your code in the framework module. What framework should you prefer pyana or psana?
ana-0.9.15
release. Upcoming modifications in pdsdata may force to drop further maintenance of pyana.Framework interfaces in pyana and psana modules are slightly different, that is explained in
Migration from pyana to psana
psana should be your preferable choise! |
XTC Explorer - Old
HDF5 Explorer - Old
Pyana User Manual
Migration from pyana to psana
Python
PyQt
matplotlib
NumPy
SciPy