Skip to content

Commit 90f5dbc

Browse files
committed
some editing of spec and dictionary documents
1 parent e18e54b commit 90f5dbc

File tree

4 files changed

+140
-117
lines changed

4 files changed

+140
-117
lines changed

specification/dictionary.md

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ between the metadata name and its value. Here is an example:
6565
Some of the tags in this dictionary have formatted values as part of
6666
their definitions.
6767

68-
* _string_: A string is specifically an ASCII string representable by
69-
characters in the the lower 128 of the ASCII set. This **must** the
70-
English-language representation of the value. For example, the
71-
string representing `Facility.name` for the Thai synchrotron
72-
**must** be `SLRI` rather than a sequence of characters in the Thai
73-
script.
68+
* _string_: A string is specifically an ASCII string represented by
69+
printable characters in the the lower 128 of the ASCII set. This
70+
**must** the English-language representation of the value. For
71+
example, the string representing `Facility.name` for the Thai
72+
synchrotron **must** be `SLRI` rather than a sequence of characters
73+
in the Thai script.
7474

7575
* _free-format string_: This is a string which can contain any
7676
character (save end-of-line characters) in any encoding system. A
@@ -220,19 +220,28 @@ compliant XDI file.
220220

221221
* `Element.edge`: The absorption edge measured. See above.
222222

223-
* `Mono.d_spacing`: The d-spacing of the monochromator. This is
224-
**required** when the abscissa is expressed in angle or encoder steps.
225-
It is required to convert that abscissa into energy. Also a
226-
correction to the energy axis of measured data, which may be
227-
required in the case of a miscalibration due to inaccuracies in the
228-
translation from angular position of the monochromator to energy,
229-
would need the d-spacing.
223+
* `Mono.d_spacing`: The d-spacing of the monochromator. It is
224+
required to convert an abscissa represented as monochromator angle
225+
or encoder step count into energy. Also a correction to the energy
226+
axis of measured data, which may be required in the case of a
227+
miscalibration due to inaccuracies in the translation from angular
228+
position of the monochromator to energy, would need the d-spacing.
230229

231230
Most other metadata definitions that follow are **optional** for use
232231
with XDI. Some are **recommended** for use with all XDI files. The
233232
**recommended** metadata convey information that is of substantive
234233
value to the interpretation of the data.
235234

235+
## Recommeneded metadata
236+
237+
The current list of recommended metadata, i.e. metadata which
238+
constitutes best practice when writing any data file, is
239+
240+
* `Facility.name`
241+
* `Facility.xray_source`
242+
* `Beamline.name`
243+
* `Scan.start_time`
244+
* `Column.1`
236245

237246

238247
## Defined items in the Facility namespace
@@ -244,7 +253,7 @@ value to the interpretation of the data.
244253
* _Format_: string
245254

246255
* **Namespace:** `Facility` -- **Tag:** `energy`
247-
* _Description_: The energy of the current in the storage ring.
256+
* _Description_: The energy of the stored current in the storage ring.
248257
* _Units_: GeV, MeV
249258
* _Format_: float + units
250259

@@ -268,7 +277,9 @@ value to the interpretation of the data.
268277

269278
* **Namespace:** `Beamline` -- **Tag:** `name`
270279
* _Description_: The name by which the beamline is known. This is
271-
**recommended** for use in all XDI files.
280+
**recommended** for use in all XDI files. For a beamline with a
281+
facility designation and a common name (such as 13-BM-B at the
282+
APS, also known as GSECARS), the designation is preferred.
272283
* _Units_: none
273284
* _Format_: free-format string
274285

@@ -341,9 +352,10 @@ versions of this dictionary.
341352
* _Format_: free-format string
342353

343354
* **Namespace:** `Sample` -- **Tag:** `id`
344-
* _Description_: A number or string uniquely identifying the measured
345-
sample. This is intended for interoperation with a database or
346-
with laboratory management software.
355+
* _Description_: A number or string uniquely identifying the
356+
measured sample. This is intended for interoperation with a
357+
database or laboratory management software. It could be, for
358+
example, a bar code number.
347359
* _Units_: none
348360
* _Format_: free-format string
349361

@@ -370,11 +382,9 @@ versions of this dictionary.
370382
The Sample namespace is rather open-ended. It is probably impossible
371383
to anticipate all the kinds of sample-related metadata that may be
372384
useful to attach to data. That said, it would be useful to suggest
373-
tags for a number of common kinds of extrinsic parameters.
374-
375-
Here are some other possible tags denoting extrinsic parameters of the
376-
experiment along the line of `Sample.temperature`. These may be added
377-
as defined fields in future versions of the XDI specification.
385+
tags for a number of common kinds of extrinsic parameters along the
386+
line of `Sample.temperature`. These may be added as defined fields in
387+
future versions of the XDI specification.
378388

379389
* `Sample.pressure`
380390
* `Sample.ph`
@@ -392,7 +402,7 @@ as defined fields in future versions of the XDI specification.
392402
* `Sample.opacity`
393403
* `Sample.electrochemical_potential`
394404

395-
Almost all of these examples **should** take a float+units as values.
405+
Many of these examples would take a float+units as values.
396406

397407

398408

@@ -405,7 +415,7 @@ Almost all of these examples **should** take a float+units as values.
405415
* _Format_: [ISO 8601 specification for combined dates and times](http://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations)
406416

407417
* **Namespace:** `Scan` -- **Tag:** `end_time`
408-
* _Description_: The beginning time of the scan.
418+
* _Description_: The ending time of the scan.
409419
* _Units_: time
410420
* _Format_: [ISO 8601 specification for combined dates and times](http://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations)
411421

@@ -419,8 +429,8 @@ scan parameters, such as integration times, monochromator speed, scan
419429
boundaries, or step sizes.
420430

421431
An example of a combined date and time representation is
422-
`2007-04-05T14:30`, which means 2:30 in the afternoon on the day of
423-
April 5th in the year 2007.
432+
`2007-04-05T14:30:22`, which means 22 seconds after 2:30 in the
433+
afternoon on the day of April 5th in the year 2007.
424434

425435

426436

@@ -449,7 +459,8 @@ April 5th in the year 2007.
449459
* _Units_: none
450460
* _Format_: one of these 28 1 or 2 character strings (not case sensitive):
451461

452-
K L L1 L2 L3 M M1 M2 M3 M4 M5 N N1 N2 N3 N4 N5 N6 N7 O O1 O2 O3 O4 O5 O6 O7
462+
K L L1 L2 L3 M M1 M2 M3 M4 M5
463+
N N1 N2 N3 N4 N5 N6 N7 O O1 O2 O3 O4 O5 O6 O7
453464

454465
See table 10.10 at
455466
[IUPAC notation for X-ray absorption edges](http://old.iupac.org/publications/analytical_compendium/Cha10sec348.pdf)

0 commit comments

Comments
 (0)