Unit Conversion & Dimensional Checks
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.
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
| source | temp_raw | unit |
|---|---|---|
| NOAA-ASOS | 68.0 | degF |
| DWD-SYNOP | 20.0 | degC |
Canonical unit metadata
| source | temp_c | schema_unit |
|---|---|---|
| NOAA-ASOS | 20.0 | Cel |
| DWD-SYNOP | 20.0 | Cel |
How it works
- 1
Audit input scales across sources
Identify where upstream feeds report temperatures, weights, currencies, or energy metrics in inconsistent scales.
- 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
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 chatHarmonize 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
- Category
- Transform & Delivery
- 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.