Package reflectometry :: Package reduction :: Package examples :: Package ng7

Source Code for Package reflectometry.reduction.examples.ng7

 1  """ 
 2  Sample data from NCNR-NG7. 
 3   
 4  This data from July, 2004, measures water with various concentrations 
 5  for D2O on quartz.  The particular data sets contain 20% D2O. 
 6   
 7  TODO: Confirm this is correct by looking in log books! 
 8  """ 
 9   
10  import numpy, os 
11  import reflectometry.reduction as reflred 
12   
13  PATH = os.path.dirname(os.path.realpath(__file__)) 
14   
15 -def load(seqlist,base='jul04'):
16 return [reflred.load(os.path.join(PATH,"%s%03d.ng7"%(base,seq))) 17 for seq in seqlist]
18
19 -def slits():
20 return load([36])
21
22 -def back():
23 return load([31,32])
24
25 -def spec():
26 return load([37])
27
28 -def rock():
29 return load([33,34,35])
30 31 32 if __name__ == "__main__": 33 print spec()[0] 34