nexusformat / definitions

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

Identify multiple default NXdata for display? #1388

Open bmaranville opened 1 month ago

bmaranville commented 1 month ago

In some cases, it would be very nice to indicate through NeXus metadata that several NXdata should be shown simultaneously as the default plot, instead of just having one default dataset.

For example, in time-of-flight reflectometry, data is often taken at a handful of discrete incident angles. This data is stored in different entries (NXentry), because it is useful to co-fit them as a group rather than joining them into a single dataset.

For visualization, it would be great to be able to show 3 or 4 NXdata simultaneously. Each NXdata will have a similarly-named signal and axes (probably R and ["Qz"]), but importantly the values and/or length of Qz will not be the same for each dataset (so we cannot use auxiliary_signals).

Another example is our VSANS instrument, where it would be nice to show multiple 2-d detector images on a Qx-Qy heatmap plot.

Clearly the actual visualization is up to whoever is implementing the vis libraries, but at the moment there doesn't seem to be a way to even encode the intent of showing multiple plots simultaneously.