SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
observedcsvrunlayer.h File Reference

Slice BL-Polish — IRunLayer for observed CSV / TSV / DAT files. More...

#include "plot/irunlayer.h"
#include <QHash>
#include <QString>
#include <QStringList>
#include <vector>
Include dependency graph for observedcsvrunlayer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::plot::ObservedCsvRunLayer
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::plot
 

Detailed Description

Slice BL-Polish — IRunLayer for observed CSV / TSV / DAT files.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Two-or-more-column data: column 0 = timestamp, columns 1..N = data series. Each non-time column becomes a virtual "object" accessible via ObjectRef::Observed(label). The label is the CSV header text; rows without a header are labeled "col_1", "col_2", etc.

Supported time formats (tried in order):

  • ISO 8601: 2026-01-01T00:15:00, 2026-01-01 00:15:00
  • SWMM .dat: 01/01/2026 00:15
  • Hours-since-start: 0.25 (numeric; only when no other format matches)

Unit system is inferred from CSV column suffix when present ("Depth_m", "Flow_ft3s"). Defaults to SI when unknown — the user can override later via a per-row toolbar (Slice BL polish).

Series attribute is fixed at construction time: the same CSV file may be added as different RunSources if the user wants to plot the same data against multiple attribute rows.