[Nexus] nexus units

Paul Kienzle paul.kienzle at nist.gov
Tue May 26 14:28:42 BST 2015


Hi,

When trying to decide what units to use for monitor rate, I wanted to know what was already in use in the NeXus world.

I wrote a little script (see attached) to walk the github nexusformat/exampledata repo and list all the units used in the files.

The results are shown below.   

Many thanks to those facililities that have supplied data files (Soleil, APS, IPNS, ANSTO and SINQ).  I’ll include some NCNR files once we have settled on the format.

I updated units.py to accept all these units.  This should be able to replace the version in bindings/python/nxs.

 - Paul

Paul Kienzle
paul.kienzle at nist.gov


Note: facility “code” refers to SINQ.
============================================================
unit               facility
============================================================
                   : Soleil
A                   : APS, Soleil
Angstroem           : code
Hz                  : IPNS, Soleil
K                   : ANSTO, code
MW                  : ANSTO
RPM                 : code
User Unit           : Soleil
V                   : Soleil
bars                : IPNS
count               : ANSTO
count/sec           : ANSTO
counts              : code, IPNS
countsOrseconds     : code
degree              : code
degrees             : ANSTO, APS, IPNS
detectors           : code
h                   : Soleil
keV                 : APS, Soleil
ls-1                : ANSTO
m                   : APS, code, IPNS
mA                  : Soleil
mRad                : Soleil
meV                 : code, IPNS
microseconds        : ANSTO, IPNS
mm                  : ANSTO, code, Soleil
ms                  : Soleil
nm                  : code
rpm                 : ANSTO, code
secORcounts         : code
seconds             : ANSTO, code
us                  : code
°C                  : Soleil
Å                   : Soleil
============================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: explore_units.py
Type: text/x-python-script
Size: 2922 bytes
Desc: not available
URL: <http://lists.nexusformat.org/pipermail/nexus/attachments/20150526/01a7f959/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unit.py
Type: text/x-python-script
Size: 13135 bytes
Desc: not available
URL: <http://lists.nexusformat.org/pipermail/nexus/attachments/20150526/01a7f959/attachment-0001.bin>


More information about the NeXus mailing list