Skip to content
Bruce Ravel edited this page Mar 13, 2012 · 5 revisions

Examples of XDI syntax

Beamline namespace

 # Beamline.name:               NSLS X11-A
 # Beamline.collimation:        none
 # Beamline.focusing:           none
 # Beamline.harmonic_rejection: detuned mono by 50% on I0

Element Namespace

 # Element.edge:         K
 # Element.symbol:       Cu
 # Element.edge_energy:  8980.0

Scan Namespace

 # Scan.start_time: 20110401T1202
 # Scan.end_time:   20110401T1212

In that example, the beginning time of the scan is 2 minutes after noon on April Fool's Day (1st April) in the year 2011 and ended 10 minutes later.

Mono namspace

 # Mono.name:        Si 111
 # Mono.d_spacing:   3.13525

Facility namespace

 # Facility.name:         NSLS
 # Facility.xray_source:  bend magnet

Detector namespace

 # Detector.i0: 10cm  N2
 # Detector.i1: 10cm  N2

The formatting for this namespace requires attention. This was one of the areas for which James advocated the use of tables.

Sample namespace

 # Sample.name:         Hematite
 # Sample.formula:      Fe2O3
 # Sample.prep:         Powder spread on polyimide tape
 # Sample.temperature:  room temperature

Data namespace

Example XDI file

 # XDI/1.0
 # Beamline.name: APS 10ID
 # Beamline.d-spacing: 3.1356
 # Scan.element: Fe
 # Scan.edge: K
 # Column.1: energy eV
 # Column.2: mu
 # Column.3: i0
 #///
 # Fe K-edge, Lepidocrocite powder
 # on 4 layers of tape
 #-------------------------------
 # energy mu i0
 6899.9609 -1.3070486 149013.70
 6900.1421 -1.3006104 144864.70
 6900.5449 -1.3033816 132978.70
 6900.9678 -1.3059724 125444.70
Clone this wiki locally