BCDA-APS / gemviz

Data visualization for tiled
https://bcda-aps.github.io/gemviz/
Other
4 stars 0 forks source link

Determine a run's default plottable data #80

Closed prjemian closed 1 year ago

prjemian commented 1 year ago

Providing content for the plot tab is a bit more of a challenge, requiring analysis of the run's metadata for detectors, motors, hints, and descriptors. This same analysis (to determine the default plottable data) is also needed when writing the data to a NeXus HDF5 file.

Originally posted by @prjemian in https://github.com/BCDA-APS/tiled-viz2023/issues/78#issuecomment-1651854394

prjemian commented 1 year ago

Consider pyqtgraph for plotting

This will be a consideration later when implementing the actual plotting.

prjemian commented 1 year ago

From https://github.com/BCDA-APS/gemviz/issues/111#issuecomment-1670125618:

The first job is to identify what is the default plottable signal and what, if any, are its axes? The terminology in tiled can seem confusing. The NeXus terminology is clearer:

prjemian commented 1 year ago

Relevant to #111, the code to identify the plottable data can be derived from the BEC.

prjemian commented 1 year ago

The assumption in BEC is that the plottable data is in the "primary" stream.

prjemian commented 1 year ago

BTW: all of this can be determined by reading the metadata of the run and its primary stream. Should involve minimal additional data transfer from the tiled server.

prjemian commented 1 year ago

Since BEC does not render any images, such as from area detector, we'll need to add that capability.

prjemian commented 1 year ago

Fly scans may write their data into a different stream. That is another consideration for plotting.