[mcstas-users] Mantid Nexus export again
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Wed Nov 26 12:28:15 CET 2014
Dear Rob,
That should be entirely possible - but an important detail is the use of the min=offset keyword to define pixel enumeration on subsequent monitors/panels.
In the attached I have added an extra monitor_nd like this:
COMPONENT nD_Mantid_1 = Monitor_nD(
options ="mantid square x limits=[-0.2 0.2] bins=128 y limits=[-0.2 0.2] bins=128, neutron pixel t, list all neutrons",
xmin = -0.2,
xmax = 0.2,
ymin = -0.2,
ymax = 0.2,
restore_neutron = 1,
filename = "bank01_events.dat")
AT (0.15, 0, 3.2) RELATIVE sampleMantid
COMPONENT nD_Mantid_2 = Monitor_nD(
options ="mantid square x limits=[-0.2 0.2] bins=128 y limits=[-0.2 0.2] bins=128, neutron pixel min=1e6 t , list all neutrons",
xmin = -0.2,
xmax = 0.2,
ymin = -0.2,
ymax = 0.2,
restore_neutron = 1,
filename = "bank02_events.dat")
AT (-0.15, 0, 3.5) RELATIVE sampleMantid
And that seems to work for me - see attached graphics.
Best,
Peter
[cid:a92046bf-5e9c-44db-b8ed-2d6a7613dff5 at win.dtu.dk]
On 25 Nov 2014, at 15:33 , robert.dalgliesh at stfc.ac.uk<mailto:robert.dalgliesh at stfc.ac.uk> wrote:
A further question on the Mantid Nexus import/export.
Is it possible to export more than one detector at a time?
I seem to get empty detectors when I import into mantid unless I limit the number to 1.
If not is it planned that this will be available?
It’s a bit tedious running the same simulation with different configurations and then having to somehow conjoin the Nexus data in Mantid.
Additionally, the hdf5 file seems to be appended after each simulation. This rapidly results in a very large file when using events.
Could the append be an option?
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20141126/ff6c1848/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MantidPlotScreenSnapz007.jpg
Type: image/jpeg
Size: 127146 bytes
Desc: MantidPlotScreenSnapz007.jpg
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20141126/ff6c1848/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: templateSANS_Mantid.instr
Type: application/octet-stream
Size: 3838 bytes
Desc: templateSANS_Mantid.instr
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20141126/ff6c1848/attachment.obj>
More information about the mcstas-users
mailing list