[Nexus] Correct way to specify multiple signals

V. Armando Solé sole at esrf.fr
Thu Jan 11 14:01:02 GMT 2018


On 11/01/2018 14:50, Peter.Chang at Diamond.ac.uk wrote:
> My suggestion would be an auxiliary attribute in the NXdata group to point to the dataset(s) to be optionally plotted alongside the signal dataset:
>
> @signal: fitted
> @auxiliary: [raw_data]

Quite smart way. I like it!!!

It is so flexible that it would even allow to be generalized as
auxiliary_signals, auxiliary_axes, so that even the condition of sharing
the same axes is not needed and one would be plot, for instance, the raw
data and the fitted data with different number of points (a simple use
case: with more points on the fitted data to better visualize a gaussian
shape if required). Current programs would work and everything would be
compatible.

NIAC guys, what about *extending* NXdata in these lines ?


>
> A default plot/display type would be handy as well as the plot dimensions to use:
>
> @display: line
> @display_dimensions: [-1] (last dim as default)
>
> Or
>
> @display: image
> @display_dimensions: [-2,-1] (last two dims as default)
>

On those I disagree. To be images or spectra is an intrinsic property of
the dataset, not a plot property.

Armando



More information about the NeXus mailing list