Skip to content

Add one-click “Preview Raw/Calibrated Spectra” buttons to GUI after data save #262

@tanmay-starslab

Description

@tanmay-starslab

Motivation

Many first time CHART users, particularly those running observations on a Raspberry Pi, need a quick way to verify data quality before transferring it for further analysis. Currently, this requires launching Jupyter Notebooks or standalone scripts. Adding a quick-look capability within the GUI will make this process more user-friendly.


Proposed Feature

Add two new buttons in the GUI:

  • Preview Raw: Plots uncalibrated spectra exactly as collected from the SDR.
  • Preview Calibrated: Shows spectra after applying simple bandpass and gain corrections.

This will enable users to visualize the collected data directly from the GUI immediately after saving. (It could also be extended to support dynamic updates.)


Implementation Overview

Both buttons will reuse the existing chart.analysis.read_run() function to load and parse the data.
A new backend module, daq/quicklook.py, can be added to handle the plotting and processing logic.

Buttons will remain disabled during data collection and will automatically enable once the run is complete or instead the user can specify a directory path from previous runs. (This feature could also be made dynamic.)

Example Structure:

CHART/
 ├── daq/
 │    ├── chart-observe.py      ← update main GUI controller
 │    └── quicklook.py          ← new backend for quick-look plotting
 └── analysis/
      └── ... (existing analysis and utilities)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions