[NeXus-tech] axes for multidimensional data

Tobias Richter Tobias.Richter at diamond.ac.uk
Tue Feb 22 10:58:33 GMT 2011


Hi Mark,

On Tue, 2011-02-22 at 08:46 +0100, Mark Koennecke wrote:
> I am a little confused: up to now we had discussed this problem in the 
> context of a scan in 2D or more. Not as
> a general thing.

As I wrote the @drive idea is an aside that might be useful, but I'd
want it to be left out for now. Otherwise the problem is general only in
that it applies to scans in nD with n>1.

> Then in the context of scans in 2D the problem has come up at PSI too. I 
> will add another two ideas towards a solution
> to the mess. The first is to use an additional data attribute which 
> describes what has been meant:
> 
> data:NXdata
>      data[nx*ny]
>          @signal=1
>          @scan_intent=nx:ny
>       x[nx*ny]
>          @axis=1
>          @primary=1
>      y[nx*ny]
>          @axis=1

This (and Ben's suggestion) suffers from not passing the slicing test.
For our users the main selling point of hdf5 is efficient storage of
multi dimensional data. Here the view is almost the more dimensions the
better - leave all the off-by-one errors in dealing with the arrays to
the well tested file backend. This is important for user written
analysis scripts.

But even if we will not find an agreement here, as long as it is legal
to write data the way we prefer here, there should be a solution that
solves our axis problem as well.

Regards,
Tobias

-- 
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-tech mailing list