Versions Compared

Key

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

...

To do analysis with a psana python script execute the following commands.  This requires the ability to ssh to an LCLS unix account and the ability to open up a graphics window on your computer ("X-windows").  Two free options for graphics: We we recommend the free free NX Technology (for Mac or Windows) for improved performance, but XQuartz (Mac) or XWin32 (Windows) also works.  Replace "YOURACCOUNTNAME" in the first line below with your unix account name.

...

Code Block
languagebash
ssh -X s3dfogin.slac.stanford.edu -l YOURACCOUNTNAME
ssh -X psana

source /sdf/group/lcls/ds/ana/sw/conda1/manage/bin/psconda.sh

cp /sdf/group/lcls/ds/ana/tutorials/psana1_examples/firstExample.py firstExample.py
python firstExample.py

The 17above 19-line ipsana.py script loops over 2 events and plots a CSPAD camera image with many applied calibration corrections, and geometry corrections for each of the detector panels. Close each image window to see the next one.  You can examine the script with the command "cat firstExample.py" or edit it with unix editors like emacs, vim, or vi.

...