ELEC · Practical Guide 05 — Define dataset variables and units
Give time, pH, and concentration columns meaningful names, units, and chemical bases. Save conversions as separately identifiable working copies.
ELEC project · Practical GX-TXT guide 5 of 16.
Reproduction target: GX-TXT DEV112-P013. The original screenshots and recorded results document the historical ELEC session. A rerun on P013 has yet to be verified.
Module: Dataset Variables / Worksheet
Learning objective: Give Dataset variables meaning and units
Prerequisites / input: pH Dataset and concentration-column copy
Expected output: Meaningful schema and converted working copy
Scientific background and reference results
A numerical column becomes usable for comparison when its origin, units and meaning are known. In particular, mg/L and g/m^3 have the same numerical concentration value, but chemical bases mg N/L and mg Cl₂/L are not interchangeable. Work on a copy and preserve original data.
Step-by-step procedure
- Open Dataset → Variables for
hal_fig3b_100rpm_bulk_ph_n_present_01.measurement_1.curves. Identifyxandy: the former is time inmin, the latter pH with unit1. Compare with the figure and caption, rather than relying on column names. - Set x’s semantic role to
elapsed_timeand use Save Schema. Repeat for the nitrogen-free trace. Schema editing leaves numerical payloads unchanged and does not turn pH into time. - Open Curve Viewer → New 2D, add both Datasets using Add source… → Choose canonical Dataset and select x/y. Both sources can now be compared on the time axis while retaining their different conditions.
- For a separate conversion exercise open a new Scientific Worksheet and use Data → Bind Dataset for
hal_fig3e_0rpm_no_added_n_total_chlorine.measurement_1.curves, x/y in A/B, nine rows. Here B is chlorine inmg/L, rather than pH. To convert a column copy, create, for example,=B1in E1, use Fill Down on E1:E9 and select only E1:E9. Under Data → Convert Unit… chooseg/m^3for the copy initially inmg/L. - Conversion materializes the copy. If B changes, clear only the converted copy, restore the empty column’s unit to
mg/L, recreate and fill the formula, then convert again. Preserve raw values rather than changing them to suit the graph.

To convert elemental nitrogen concentration into molarity use nitrogen’s molar mass 14.0067 g/mol and explicitly state the N basis: do not apply NH₃’s molar mass directly to an input already expressed as N. Reproduction on P013 has not been run.
Working materials
Other steps of this project
- ELEC 02 — Model hierarchy: effective kinetics, transfer and identifiability
- ELEC 03 — From fits to constraints: what does the chlorine balance reveal?
- ELEC 01 — What does the experiment measure? Nitrogen, chlorine and pH
- ELEC 07 — Sources, conclusions and tests that could distinguish the mechanisms
- ELEC 04 — Kinetics, speciation and transport: from local reaction to reactor response
- ELEC 06 — Where the numbers came from: GX-TXT, GNU Octave and reproducibility