Unit Conversion & Dimensional Checks

tools/unit-normalizationTransform & Delivery

Declare physical and financial units so mixed feeds never mix scales.

Attaches machine-readable unit codes to schema columns and standardizes mixed temperatures, weights, currencies, and energy units in SQL so downstream consumers never compare incompatible scales.

Use in chatNormalize EIA and ENTSO-E generation columns into consistent megawatt-hours and annotate every column's unit.

What Unit Conversion & Dimensional Checks does

Unit Conversion & Dimensional Checks stops silent scale bugs like mixing Fahrenheit and Celsius or thousands versus millions in reports. It pairs explicit DuckDB SQL conversions with recipe doc.units metadata so every quantitative column carries its verified unit.

Published annotations show up in the Schemas & Columns explorer and travel inside REST API and MCP descriptors, so agents always read correct magnitudes.

Input & output example

Column schemas carry verified UCUM/currency units on the dataset page.

Mixed source units

sourcetemp_rawunit
NOAA-ASOS68.0degF
DWD-SYNOP20.0degC

Canonical unit metadata

sourcetemp_cschema_unit
NOAA-ASOS20.0Cel
DWD-SYNOP20.0Cel

How it works

  1. 1

    Audit input scales across sources

    Identify where upstream feeds report temperatures, weights, currencies, or energy metrics in inconsistent scales.

  2. 2

    Normalize scales and declare doc.units

    Convert values to one canonical unit in DuckDB SQL and register the target unit code in recipe doc.units.

  3. 3

    Expose unit metadata across API & MCP

    Verify unit consistency and publish unit-annotated columns in the Schemas tab, REST responses, and MCP.

Try with an agent

Pre-loads Unit Conversion in chat

Harmonize US and EU grid generation units

Normalize EIA and ENTSO-E generation columns into consistent megawatt-hours and annotate every column's unit.

Common use cases

  • Harmonizing Fahrenheit/Celsius or MW/kWh energy feeds
  • Explicit currency and scale labeling (USD millions vs units)
  • Preventing silent unit mismatches in downstream joins

Details

Identifier
unit-normalization
Inputs
Numeric columns with mixed scales
Outputs
Unit-annotated schema columns
Dataset delivery
Parquet · CSV · JSON · SQL · REST API · MCP

Frequently asked questions

Where do readers see column units?

Declared units render directly in the Schemas & Columns explorer and in API/MCP schema responses.

What types of units can be annotated?

Physical SI/UCUM units (Cel, m/s, MW, kg), currencies (USD, EUR), percentages, and ratios can all be declared per column.

Do AI agents see column units when querying via MCP?

Yes. MCP table schema responses include column units and descriptions automatically.

Related tools