Skip to content
Snippets Groups Projects
Commit 91499d8d authored by Laurent Mercadier's avatar Laurent Mercadier
Browse files

Detailed docstring in sortBAMdata()

parent 18722256
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,11 @@ def repRate(data, sase='sase3'):
def sortBAMdata(data, key='sase3'):
''' Extracts beam arrival monitor data from the raw arrays 'BAM6', 'BAM7', etc...
according to the bunchPatternTable.
according to the bunchPatternTable. The BAM arrays contain 7220 values, which
corresponds to FLASH busrt length of 800 us @ 9 MHz. The bunchPatternTable
only has 2700 values, corresponding to XFEL 600 us burst length @ 4.5 MHz.
Hence, we truncate the BAM arrays to 5400 with a stride of 2 and match them
to the bunchPatternTable.
Inputs:
data: xarray Dataset containing BAM arrays
key: str, ['sase1', 'sase2', 'sase3', 'scs_ppl']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment