Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspace | Input | MatrixWorkspace | Mandatory | The sample details are attached to this workspace. |
Filename | Input | string | Mandatory | The raw file containing the sample geometry information. Allowed values: [‘raw’, ‘.s*’] |
The SPB struct within an ISIS raw file defines 4 fields that describe the basic geometry of the sample:
The meaning of the last three are dependent on the flag value e_geom, which defines the sample shape as one of 4 basic shapes:
The values are stored on the sample object within the workspace.
Example:
filename = "HRP39180.RAW"
ws = Load(filename)
LoadSampleDetailsFromRaw(ws,filename)
s = ws.sample()
print "Geometry flag %.0f" % s.getGeometryFlag()
print "Dimensions H,W,D %.0f,%.0f,%.0f" % (s.getHeight(),s.getWidth(),s.getThickness())
Output:
Geometry flag 2
Dimensions H,W,D 20,15,11
Categories: Algorithms | DataHandling\Raw | Sample