Skip to content

CDA-74 Created ADR for timeseries csv formatting#1634

Open
rma-bryson wants to merge 23 commits intodevelopfrom
feature/CDA-74-ADR-for-TimeSeries-CSV
Open

CDA-74 Created ADR for timeseries csv formatting#1634
rma-bryson wants to merge 23 commits intodevelopfrom
feature/CDA-74-ADR-for-TimeSeries-CSV

Conversation

@rma-bryson
Copy link
Copy Markdown
Collaborator

No description provided.

@rma-bryson rma-bryson requested a review from rma-psmorris March 10, 2026 21:45
@MikeNeilson
Copy link
Copy Markdown
Contributor

Don't forget the document number as seen in @krowvin 's initial csv ADR: #1551

@rma-bryson rma-bryson marked this pull request as ready for review March 11, 2026 16:16
Copy link
Copy Markdown
Collaborator

@krowvin krowvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if you can improve the formatting of the numbering and add more sub section headers to break things up

i.e.

1) vs 1.

Might help in reading this visually when it is rendered!

Optional fix, not a blocker for me.

@rma-bryson
Copy link
Copy Markdown
Collaborator Author

rma-bryson commented Mar 17, 2026

Updated formatting to be more readable.

@rma-bryson rma-bryson force-pushed the feature/CDA-74-ADR-for-TimeSeries-CSV branch from 590a37c to 4581866 Compare March 17, 2026 21:43
Copy link
Copy Markdown
Contributor

@MikeNeilson MikeNeilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me.

Will let @krowvin give the final approval.

@MikeNeilson MikeNeilson dismissed their stale review March 18, 2026 22:31

Changes were made.

rma-bryson and others added 3 commits March 25, 2026 13:31
Co-authored-by: Adam Korynta <47677856+adamkorynta@users.noreply.github.com>
…s-CSV' into feature/CDA-74-ADR-for-TimeSeries-CSV
- Always include ``date-time`` and ``value``; include units in the value column header as parentheses (e.g., ``value (ft)``)
- Units must exist in exactly one canonical location in all modes.
* - Optional columns
- Optional (off by default): ``time-series-id``, ``office-id``, ``version-date``, ``data-entry-date``, ``quality``
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think time-series-id or office-id should ever be columns. If this information is needed, metadata comments should be turned on.

We had decided for JSON/XML timeseries, that there has not been a use-case for version-date at the row level. So far we've only needed base, a specific version, or aggregate.

Should be added somewhere that a future update could include an optional text-annotation column.

Suggested change
- Optional (off by default): ``time-series-id``, ``office-id``, ``version-date``, ``data-entry-date``, ``quality``
- Optional (off by default): ``data-entry-date``, ``quality``.

Copy link
Copy Markdown
Collaborator Author

@rma-bryson rma-bryson Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me so as to avoid repeated data. The one benefit of using columns is that follows standards (using '#' comments isn't standard). The idea here was to allow for either comments or columns. Will let @MikeNeilson weigh in

- Optional (off by default): ``time-series-id``, ``office-id``, ``version-date``, ``data-entry-date``, ``quality``
- Everything except ``date-time`` and ``value`` (with units in the header) is optional. Because headers are always included, optional columns can be toggled without breaking parsing. Clients should rely on column names, not indices.
* - Metadata fields
- May be emitted as top-of-payload comments (``metadata-format=comment``) or as actual columns (``metadata-format=column``)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- May be emitted as top-of-payload comments (``metadata-format=comment``) or as actual columns (``metadata-format=column``)
- The payload may include prefix comments using the mime-type property: (``metadata-format=comment``)

If there is a case where meta-data columns would be preferred, please reference here as that redundant data is unnecessary given any parsing API (python, javascript, hand-edited excel, java, etc) can remove comments.

rma-bryson and others added 4 commits April 1, 2026 08:27
Co-authored-by: Adam Korynta <47677856+adamkorynta@users.noreply.github.com>
Co-authored-by: Adam Korynta <47677856+adamkorynta@users.noreply.github.com>
Co-authored-by: Adam Korynta <47677856+adamkorynta@users.noreply.github.com>
.. code-block:: text

time-series-id, office-id, date-time, value (cfs), version-date, data-entry-date, quality-code
ALAT2.Flow-Out.Inst.1Hour.0.Rev-SWF-REGI, SWT, 2021-06-21T00:00:00Z, 0.0, aggregate, 2021-06-21T00:05:00Z, 5
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're proposing to add version-date to a column, the representation is then no longer aggregate as the term aggregate refers to using the latest version-date across all time steps. I don't think we should add version-date here unless that feature is requested.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point - this makes me more inclined to not have metadata columns at all. comments only.

rma-bryson and others added 4 commits April 1, 2026 11:51
Co-authored-by: Adam Korynta <47677856+adamkorynta@users.noreply.github.com>
Co-authored-by: Adam Korynta <47677856+adamkorynta@users.noreply.github.com>
Co-authored-by: Adam Korynta <47677856+adamkorynta@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants