FAIRmat-NFDI / nexus_definitions

Definitions of the NeXus Standard File Structure and Contents
https://manual.nexusformat.org/
Other
6 stars 8 forks source link

Implement base change directly in NXtransformations #234

Closed lukaspie closed 4 months ago

lukaspie commented 4 months ago

This is an alternative to #144 which essentially incorporates NXcoordinate_system directly within NXtransformations.

There are three changes to NXtransformations: 1) transformation_type may be base_change, in which case a matrix containing n_dim column vectors of n_dim length should be supplied. 2) an attribute matrix is added to AXISNAME which shall contain n_dim column vectors of n_dim length. This is to be used to provide a matrix going from one coordinate system going to the other. 3) an attribute direction is added to AXISNAME that provides a human-readable field which direction the axis points. This is to be used to a define a reference frame (i.e, for axes with no transformation_type). If matrix is filled, then this field shall contain the direction of all n-dim matrix elements.

Examples: 1) There is an example in