In [1]:
from pyxrf.api import *

Dump all data into h5 file


In [3]:
# define run id and the name of output file
runid = 123
fname = 'scan_123.h5'

In [ ]:
export_hdf(runid, fname)

In [ ]:
# If you also want to include fluorescence data, just turn on key word called xrf
export_hdf(runid, fname, xrf=True)

In [ ]:

Save fluorescence data for PyXRF


In [ ]:
# define run id and the name of output file
runid = 123
fname = 'scan_123.h5'

In [ ]:
make_hdf(runid, fname)

save multiple data


In [1]:
startid = 100
endid = 300

In [ ]:
make_hdf(runid, endid)

In [ ]:
# define prefix for all the scans if you like
make_hdf(runid, endid, prefix='mydata_')