[mcstas-users] logarithmic binning detector
Robert Dalgliesh - STFC UKRI
robert.dalgliesh at stfc.ac.uk
Wed Jan 21 13:09:18 CET 2026
Hi,
If I want to create a new detector with logarithmic binning is there an easy way to export the x array?
The way DETECTOR_OUT_1D works requires the binning scheme to be linear.
I would like to define e.g. q bins
1e-3 to 1.0 with 8% binning so the bins are
[a,ab,ab^2,….] where a=1e-3 and b=1.08.
Working out which bin to put data into is straightforward in the same way as linear bins but data output isn’t, due to the constraints of the function above.
In addition, the read function for mcstas plotting would need modification so I guess it will mean an additional function is required unless I’ve missed something.
Obviously, I can write something that outputs the data and post process the x array but that’s not ideal.
Rob
====================================================================
If you receive this email outside working hours then please do not feel obliged to reply
====================================================================
Dr. Robert Dalgliesh
Small Angle Scattering Group Leader
ISIS Neutron and Muon Source
Science and Technology Facilities Council
Building R3 1.29,
Rutherford Appleton Laboratory,
Harwell Campus,
Didcot
Oxfordshire,
OX11 0QX.
UK
Tel: +44(0)1235-445687
Email: Robert.dalgliesh at stfc.ac.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20260121/e99ce3b7/attachment.htm>
More information about the mcstas-users
mailing list