-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for non-dimensional coordinates in NXdata #139
Comments
A possibility to implement this in NXdata.nxdl is a new attribute: @NON_DIMENSION_axis:NX_CHAR The value of this attribute is a string array listing the coordinate axes corresponding to the dimensions of the Field. The transformation required to linearize the Field need to be applied to all data points following the listed referenced coordinate axes. E.g. Since "measurement" data axes are connected to "x"and "y", when plotting against "time_axis", a 1D curve needs to be generated from the linearized "measurement" data. |
Please indicate if you would like to see this included in NeXus |
I feel that NeXus should only provide the data to be plotted and should not go so far as to give instructions on how the data should be presented. |
I think this goes a long way down the road of very specialized data analysis. We need to make sure that all necessary data is stored in order to make that specialized data analysis possible but not to do it in NeXus. And the data storage requirement is fulfilled. |
This can currently be achieved by
and
The |
The python library xarrays specifies the so called non-dimension coordinates
Let us imagine we make a 2D mesh scan and collect the results in a 2D array (x,y). Also, we make another 2D array (x,y) for the timestamps of each measurements at the given location. We may want to plot the results (from their original 2D (x,y) array) against the time. So we need to build a new coordinate of time from its 2D array. The same transformation needed for the time array linearisation should be also applied on the results array.
Another example from xarrays
Such description would also support describing sheared axes and make proper plots when axes are not orthogonal to one another, etc. #102
The text was updated successfully, but these errors were encountered: