Nexus: NXdata
Default plots in Nexus file: currently hidden support but we need to discuss properly before I add it to the docs.
The current definition of plots to be saved is provided in the beamline configuration files. The idea being that the user should not be able to easily change this, as opposed to the online displaying with Flint.
Under the new data policy implementation (see !1954 (merged)) each dataset as a technique associated with it which will define plots (the subject of this proposal) and application definitions (in the future). This is the current structure in the YAML files
name: nexus_definitions
technique:
default: none
techniques:
xrf:
plots:
- xrf_counters
- spectra
xas:
plots:
- xas_counters
plots:
xas_counters:
...
xrf_counters:
...
spectra:
...
counters_grid:
...
So for each technique you can define one or more plots. The plot definitions are:
- Select signals base on channel names
xrf_counters:
personal_name: xrf_counters
items:
- diode2
- diode3
- simu1:deadtime_det0
- simu2:deadtime_det1
- Select signals based on data dimension
spectra:
personal_name: spectra
ndim: 2
- Grid plot instead of scatter plot (e.g. for mesh using VDS)
counters_grid:
personal_name: all_counters_grid
ndim: 0
grid: true
Default: The plot marked as default is the first one (for example for "xrf" this would be "xrf_counters") and the default signal is again the first one (for example in "xrf_counters" this would be diode2). The default NXdata gets a softlink to it called "plotselect" which is marked as @default of the NXentry. This is a bit redundant in case you only define one plot but it does ensure that the NXdata names are exactly as given in the yaml files under "personal_name" and you will always how an NXdata called "plotselect" in your NXentry (unless there are no plots).
Naming: Currently I do not support wildcards but I do support skipping the controller names so "diode2" referse to "p2O1:diode2" for example so effectivyly this means "*:diode2".
Suggestions, improvements, ... ? @andy.gotz @sole @valentin.valls @pithan @matias.guijarro