1 """
2 Sample data from NCNR-AND/R.
3
4 This is area detector data with all frames preserved.
5
6 from reflectometry.model1d.examples.cg1area import data
7
8 TODO: Document contents of this data file.
9 """
10
11 import numpy, os
12 import reflectometry.reduction as reflred
13
14 PATH = os.path.dirname(os.path.realpath(__file__))
15
16 data = reflred.load(os.path.join(PATH,'psdca022.cg1.gz'))
17
18
19 if __name__ == "__main__":
20 import pylab
21 print "shape=",data.detector.counts.shape
22 pylab.imshow(numpy.log(data.detector.counts[1]+1).T)
23
24 pylab.show()
25 pass
26