[Nexus] proposed additions to NXdata for non-linear scaling - to aid cbf interoperability

jonathan.sloan at diamond.ac.uk jonathan.sloan at diamond.ac.uk
Thu Feb 20 16:05:46 GMT 2014


Hi,

I've looked at muParser in a bit more detail now, it appears that while it isn't a completely general solution with full support for tensor operations (like MATLAB, for example) it does have a 'bulk' mode which would allow expressions to be defined per-frame and data to be extracted with per-frame scaling factors and even per-frame expressions. Limiting expressions to applying a uniform expression to an entire frame will still allow it to cover everything that the cbf-nexus conversions might use.

This would mean that (in the case of rank-3 data) 'NXforumla' could contain a rank-1 tensor of expressions, which would be passed a set of rank-1 parameters. The actual values of the data could be extracted by calculating 'value[j,k] = f(data[i,j,k],var[i]...)' for each frame 'i' of dimensions 'j,k'. Higher dimensional data could be converted by extending this to 'value[k,l] = f(data[i,j,k,l],var[i,j]...)' for each frame 'i,j' of dimensions 'k,l', and so on for higher dimensions. I think it should largely be a matter of plumbing to implement this, rather than adding any functionality which doesn't currently exist.

Since everything required should already be implemented in the muParser library, could we start using this when converting cbf data and refine the implementation later on once an 'NXforumla' class definition has been standardised?

Thanks.

-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 






More information about the NeXus mailing list