##NXDICT-1.0
#---------------------------------------------------------------------------
# NeXus dictionary file for the four circle diffractometer 
#                          TRICS at SINQ, PSI
#
# DO NOT MODIFY THIS FILE OR YOUR DATA MAY BE LOST FOR EVER!
# 
# This file is only to be touched by authorised persons and NeXus
# specialists. It contains the layout of NeXus data file for TRICS.
# It determines where data is stored in the NeXus file and how it can
# be read back again.
#
# Mark Koennecke, April 1998
#--------------------------------------------------------------------------
fnum = /frame0000,NXentry/SDS CurrentFrameNumber -type DFNT_INT32 
framename = frame0000
#------ NXentry
etitle = /$(framename),NXentry/SDS title -type DFNT_UINT8 -rank 1 -dim {132}
etitle0 = /frame0000,NXentry/SDS title -type DFNT_UINT8 -rank 1 -dim {132}
etime = /$(framename),NXentry/SDS start_time -type DFNT_UINT8 -rank 1 -dim  {132}
entry = /$(framename),NXentry/NXVGROUP
#--------------NXinstrument
iname = /$(framename),NXentry/TRICS,NXinstrument/SDS name -type DFNT_UINT8 \
        -rank 1 -dim {132}
iname0 = /frame0000,NXentry/TRICS,NXinstrument/SDS name -type DFNT_UINT8 \
        -rank 1 -dim {132}
inst0 = /$(framename),NXentry/TRICS,NXinstrument/NXVGROUP
#------------------------NXSource
sname = /$(framename),NXentry/TRICS,NXinstrument/SINQ,NXsource/SDS name \
        -type DFNT_UINT8 -rank 1 -dim {20}
stype = /$(framename),NXentry/TRICS,NXinstrument/SINQ,NXsource/SDS type \
        -type DFNT_UINT8 -rank 1 -dim {60}
source0 = /frame0000,NXentry/TRICS,NXinstrument/SINQ,NXsource/NXVGROUP
#------------------------Monochromator
monodes = /frame0000,NXentry/TRICS,NXinstrument/monochromator,NXcrystal/SDS \
        description -type DFNT_UINT8 -rank 1 -dim  {132}
monolambda = /frame0000,NXentry/TRICS,NXinstrument/monochromator,NXcrystal/SDS \ 
             lambda -attr {units,Angstroem}
monotheta = \
   /frame0000,NXentry/TRICS,NXinstrument/monochromator,NXcrystal/SDS theta \
   -attr {units,degrees}
mono2theta = \
   /frame0000,NXentry/TRICS,NXinstrument/monochromator,NXcrystal/SDS two_theta \
   -attr {units,degrees}
mono0 = \
   /frame0000,NXentry/TRICS,NXinstrument/monochromator,NXcrystal/NXVGROUP
#------------------------- CountControl
framepreset = \
 /$(framename),NXentry/TRICS,NXinstrument/count_control,NXcounter/SDS preset 
framemode = /$(framename),NXentry/TRICS,NXinstrument/count_control,NXcounter/SDS countmode \ 
-type DFNT_UINT8 -rank 1 -dim {132}
framemonitor = /$(framename),NXentry/TRICS,NXinstrument/count_control,NXcounter/SDS monitor \
             -type DFNT_INT32
#------------------------ Detector
dnumber = detector1
framedim1 = 128
framedim2 = 128
ddescription = /frame0000,NXentry/TRICS,NXinstrument/$(dnumber),NXdetector/SDS \
               name -type DFNT_UINT8 -rank 1 -dim {132}
detectorx = /frame0000,NXentry/TRICS,NXinstrument/$(dnumber),NXdetector/SDS x  \
              -attr {axis,1} -attr {units,mm} -type DFNT_FLOAT32 \
              -rank 1 -dim {$(framedim1)}
detectory = /frame0000,NXentry/TRICS,NXinstrument/$(dnumber),NXdetector/SDS y  \
              -attr {axis,1} -attr {units,mm} -type DFNT_FLOAT32 \
              -rank 1 -dim {$(framedim2)}
det1 = \
   /$(framename),NXentry/TRICS,NXinstrument/$(dnumber),NXdetector/NXVGROUP
frame2theta = \
/$(framename),NXentry/TRICS,NXinstrument/$(dnumber),NXdetector/SDS two_theta \
              -attr {units,degrees}
frametilt = /$(framename),NXentry/TRICS,NXinstrument/$(dnumber),NXdetector/SDS  tilt \
              -attr {units,degrees}
framecounts = /$(framename),NXentry/TRICS,NXinstrument/$(dnumber),NXdetector/SDS counts  \
              -attr {signal,1} -attr {units,counts} -type DFNT_INT32 \
              -rank 2 -dim {$(framedim1),$(framedim2)}
detzerox = \
 /frame0000,NXentry/TRICS,NXinstrument/$(dnumber),NXdetector/SDS x_zero_point \
   -attr {units,pixel}
detzeroy = \
 /frame0000,NXentry/TRICS,NXinstrument/$(dnumber),NXdetector/SDS y_zero_point \
   -attr {units,pixel}
detdist = \
 /frame0000,NXentry/TRICS,NXinstrument/$(dnumber),NXdetector/SDS distance \
   -attr {units,mm}
detvalid = \
 /$(framename),NXentry/TRICS,NXinstrument/$(dnumber),NXdetector/SDS valid \
   -type DFNT_INT32
#-------------- NXsample
samplename = /frame0000,NXentry/sample,NXsample/SDS name -type DFNT_UINT8 -rank 1 \
             -dim {256}
sampleub = /frame0000,NXentry/sample/NXsample/SDS UB -type DFNT_FLOAT32 \
           -rank 2 -dim {3,3}
samplev = /$(framename),NXentry/sample,NXsample/NXVGROUP
framechi = /$(framename),NXentry/sample,NXsample/SDS chi -attr {units,degrees}
framephi = /$(framename),NXentry/sample,NXsample/SDS phi -attr {units,degrees}
frameomega = /$(framename),NXentry/sample,NXsample/SDS omega \ 
             -attr {units,degrees}
frametemp = /$(framename),NXentry/sample,NXsample/SDS sample_temperature \
            -attr {units,Kelvin}
framestdev = /$(framename),NXentry/sample,NXsample/SDS \
                    sample_temperature_stdev 
#-------------- data
frame = /$(framename),NXentry/framedata,NXdata/NXVGROUP

 