First draft of dictionary for writing nexus files.

r1318 | ffr | 2006-11-24 16:09:00 +1100 (Fri, 24 Nov 2006) | 2 lines
This commit is contained in:
Ferdi Franceschini
2006-11-24 16:09:00 +11:00
committed by Douglas Clowes
parent f84960d4a5
commit 294dd2bd6c

View File

@@ -0,0 +1,87 @@
##NXDICT-1.0
#----------------------------------------------------------------------------
# NeXus dictionary file for the SINQ instrument DMC and HRPT
#
# DO NOT EDIT WHEN YOU DO NOT KNOW WHAT YOU ARE DOING!
# This file determines the placement of data items in the Powder NeXus
# data file. Your data may not be readable if this file is messed up.
#
# Mark Koennecke, May 2004
#----------------------------------------------------------------------------
entryName=entry1
dataName=histogram
inst=HRPD
detector=hrdetector
thetadim=128
#---------- NXentry level
etitle=/$(entryName),NXentry/SDS title -type NX_CHAR
estart=/$(entryName),NXentry/SDS start_time -type NX_CHAR
eend=/$(entryName),NXentry/SDS end_time -type NX_CHAR
#----------------- NXinstrument
iname=/$(entryName),NXentry/$(inst),NXinstrument/SDS name -type NX_CHAR \
-rank 1 -dim {132}
#----------------- NXdata
dname=/$(entryName),NXentry/$(dataName),NXdata/SDS name -type NX_CHAR \
#----------------- NXmonitor
mmode=/$(entryName),NXentry/monitor,NXmonitor/SDS mode -type NX_CHAR
mpreset=/$(entryName),NXentry/monitor,NXmonitor/SDS preset -type NX_FLOAT32
mdata=/$(entryName),NXentry/monitor,NXmonitor/SDS data -type NX_INT32
#----------------- NXsource
sname=/$(entryName),NXentry/$(inst),NXinstrument/source,NXsource/SDS name \
-type NX_CHAR -rank 1
stype=/$(entryName),NXentry/$(inst),NXinstrument/source,NXsource/SDS type -type NX_CHAR -rank 1
sprobe=/$(entryName),NXentry/$(inst),NXinstrument/source,NXsource/SDS probe -type NX_CHAR -rank 1
#----------------- NXcrystal
clambda=/$(entryName),NXentry/$(inst),NXinstrument/Ge113,NXcrystal/SDS wavelength -type NX_FLOAT32 -attr {units,Angstrom}
#------------- counter
cter_mode=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS \
CounterMode -type NX_CHAR -rank 1 -dim {30}
cter_preset=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS \
Preset
cter_time=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS \
time
cter_01=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS \
Monitor -type NX_INT32 -attr {units,counts}
cter_00=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS \
beam_monitor -type NX_INT32 -attr {units,counts}
cter_04=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS \
proton_monitor -type NX_INT32 -attr {units,counts}
#-------------- histogram data
dradius=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS distance -type NX_FLOAT32
dtheta=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS polar_angle -type NX_FLOAT32 -LZW -rank 1 -dim {$(thetadim)} -attr {units,degree}
dcounts=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS \
data -type NX_INT32 -LZW -rank 2 -dim {$(dim0),$(dim1)} \
-attr {signal,1}
deff=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/calibration,NXdata/SDS efficiency -type NX_INT32 -LZW -rank 2 -dim {$(dim0),$(dim1)}
ddesc=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS description -type NX_CHAR
dtype=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS type -type NX_CHAR
dlayout=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS layout -type NX_CHAR
#dthst=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS \
# two_theta_start -attr {units,degree}
#dtstep=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS \
# Step -attr {units,degree}
#dtnstep=/$(entryName),NXentry/$(inst),NXinstrument/$(detector),NXdetector/SDS \
# no_of_steps -type NX_INT32
#--------------- NXsample
saname=/$(entryName),NXentry/sample,NXsample/SDS name -type NX_CHAR
sarot=/$(entryName),NXentry/sample,NXsample/SDS rotation_angle -type NX_FLOAT32 -attr {units,degree}
stemp=/$(entryName),NXentry/sample,NXsample/SDS sample_temperature -attr {units,K}
smean=/$(entryName),NXentry/sample,NXsample/SDS temperature_mean -attr {units,K}
stddev=/$(entryName),NXentry/sample,NXsample/SDS temperature_stddev -attr {units,K}
mfield=/$(entryName),NXentry/sample,NXsample/SDS magfield -attr {units,T}
saangle=/$(entryName),NXentry/sample,NXsample/SDS sample_table_rotation \
-attr {units,degree}
smur=/$(entryName),NXentry/sample,NXsample/SDS sample_mur \
-attr {units,degree}
#----------------NXdata ------------------------------------------------
dana=/$(entryName),NXentry/data,NXdata/NXVGROUP