##NXDICT-1.0
#----------------------------------------------------------------------------
# NeXus dictionary file for SANS at SINQ, PSI
#
# DO NOT MODIFY OR YOUR DATA MAY NEVER BE RECOVERED AGAIN!
# DO NOT MODIFY! YOU RISK ETERNAL DAMNATION!
#
# Mark Koennecke, 12 August 1997
# updated: Macrk 1999, Mark Koennecke
#---------------------------------------------------------------------------
#--------- NXentry
etitle = /entry1,NXentry/SDS title -type DFNT_CHAR -rank 1 -dim {132}
etime = /entry1,NXentry/SDS start_time -type DFNT_CHAR -rank 1 -dim {132}
endtime = /entry1,NXentry/SDS end_time -type DFNT_CHAR -rank 1 -dim {132}
#----------- NXinstrument
iname = /entry1,NXentry/SANS,NXinstrument/SDS  name -type DFNT_CHAR \ 
        -rank 1 -dim {50}
#----------------------NXSource
sname = /entry1,NXentry/SANS,NXinstrument/SINQ,NXsource/SDS name \
        -type DFNT_CHAR -rank 1 -dim {50}
stype = /entry1,NXentry/SANS,NXinstrument/SINQ,NXsource/SDS type \
        -type DFNT_CHAR -rank 1 -dim {60}
#---------------------Selector
vname = /entry1,NXentry/SANS,NXinstrument/Dornier-VS,NXchopper/SDS type \
        -type DFNT_CHAR -rank 1 -dim {60}
vrot = /entry1,NXentry/SANS,NXinstrument/Dornier-VS,NXchopper/SDS  \
       rotation_speed -attr {units,RPM}
vtilt = /entry1,NXentry/SANS,NXinstrument/Dornier-VS,NXchopper/SDS \
       tilt_angle -attr {units,degree} 
vlambda = /entry1,NXentry/SANS,NXinstrument/Dornier-VS,NXchopper/SDS \
       lambda -attr {units,nm}
#-------------------- monitor 1
m1counts = /entry1,NXentry/SANS,NXinstrument/monitor1,NXmonitor/SDS \
           counts -type DFNT_INT32
#-------------------- proton monitor
pbcounts = /entry1,NXentry/SANS,NXinstrument/integrated_beam,NXmonitor/SDS \
           counts -type DFNT_INT32
#--------------------- collimator
colli = /entry1,NXentry/SANS,NXinstrument/collimator,NXcollimator/SDS \
           length -attr {units,m}
#--------------------- attenuator
atti = /entry1,NXentry/SANS,NXinstrument/attenuator,NXattenuator/SDS \
           selection -type DFNT_INT32
#-------------------- BeamStop
bst  = /entry1,NXentry/SANS,NXinstrument/beam_stop,NXstop/SDS \
       type -type DFNT_INT32
vsx = /entry1,NXentry/SANS,NXinstrument/beam_stop,NXstop/SDS x_position \
       -attr {units,mm}
vsxnull = /entry1,NXentry/SANS,NXinstrument/beam_stop,NXstop/SDS x_null \
       -attr {units,mm}
vsy = /entry1,NXentry/SANS,NXinstrument/beam_stop,NXstop/SDS y_position \
       -attr {units,mm}
vsynull = /entry1,NXentry/SANS,NXinstrument/beam_stop,NXstop/SDS y_null \
       -attr {units,mm}
vsiz = /entry1,NXentry/SANS,NXinstrument/beam_stop,NXstop/SDS size \
       -attr {units,mm}
#--------------------- Detector
ddx = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS x_position \
       -attr {units,mm}
ddxn = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS x_null \
       -attr {units,mm}
ddy = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS y_position \
       -attr {units,mm}
ddyn = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS y_null \
       -attr {units,mm}
ddchi = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS chi_position \
       -attr {units,degree}
ddm = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS count_mode \
       -type DFNT_UINT8 -rank 1 -dim {30}
ddp = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS preset \
       -attr {units,secORcounts}
ddmo = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS monitor_counts \
       -type DFNT_UINT32 -rank 1 -dim {1}
ddtime = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS \
        counting_time -attr {units,seconds}
countdim = -rank 2 -dim {256,256}
timedim = 1
dim1 = 256
dim2 = 256
ddcounts = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS counts \
       -type DFNT_UINT32 -LZW $(countdim) -attr {signal,1}
ddcx = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS detector_x \
       -type DFNT_UINT32 -rank 1 -dim {$(dim1)} -attr {axis,1}
ddcy = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS detector_y \
       -type DFNT_INT32 -rank 1 -dim {$(dim2)} -attr {axis,2}
ddtb = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS tof_or_gummi \
        -rank 1 -dim {$(timedim)} -attr {axis,3} \
        -attr {units,uSecOrStroboscopicDimension}
ddtemp = /entry1,NXentry/SANS,NXinstrument/detector,NXdetector/SDS \
         temperature 
#--------Sample
san = /entry1,NXentry/sample,NXsample/SDS name -type DFNT_CHAR -rank 1 \
      -dim {256}
sax = /entry1,NXentry/sample,NXsample/SDS x_position -attr {units,mm}
saxn = /entry1,NXentry/sample,NXsample/SDS x_null -attr {units,mm}
say = /entry1,NXentry/sample,NXsample/SDS y_position -attr {units,mm}
sayn = /entry1,NXentry/sample,NXsample/SDS y_null -attr {units,mm}
saz = /entry1,NXentry/sample,NXsample/SDS z_position -attr {units,mm}
sazn = /entry1,NXentry/sample,NXsample/SDS z_null -attr {units,mm}
sachi = /entry1,NXentry/sample,NXsample/SDS chi_position -attr {units,degree}
saphi = /entry1,NXentry/sample,NXsample/SDS phi_position -attr {units,degree}
saom = /entry1,NXentry/sample,NXsample/SDS omega  -attr {units,degree}
saomn = /entry1,NXentry/sample,NXsample/SDS omega_null  -attr {units,degree}
sapos = /entry1,NXentry/sample,NXsample/SDS position  -attr {units,mm}
saposn = /entry1,NXentry/sample,NXsample/SDS position_null  -attr {units,mm}
satemp = /entry1,NXentry/sample,NXsample/SDS temperature  -attr {units,Kelvin}
samag = /entry1,NXentry/sample,NXsample/SDS  magnetic_field \
       -attr {units,A}
mom = /entry1,NXentry/sample,NXsample/SDS magnet_omega  -attr {units,degree}
mz = /entry1,NXentry/sample,NXsample/SDS magnet_z  -attr {units,mm}
sanampos = /entry1,NXentry/sample,NXsample/SDS  named_position \
       -type  DFNT_CHAR -rank 1 -dim {256} 
saenv = /entry1,NXentry/sample,NXsample/SDS  environment \
       -type  DFNT_CHAR -rank 1 -dim {256} 
gphi = /entry1,NXentry/sample,NXsample/SDS goniometer_phi \ 
    -attr {units,degree}
gphin = /entry1,NXentry/sample,NXsample/SDS goniometer_phi_null \ 
    -attr {units,degree}
gtheta = /entry1,NXentry/sample,NXsample/SDS goniometer_theta \
        -attr {units,degree}
gthetan = /entry1,NXentry/sample,NXsample/SDS goniometer_theta_null \
        -attr {units,degree}
#-------data
dan = /entry1,NXentry/data1,NXdata/NXVGROUP



