Skip to content

Commit

Permalink
chore: normalize YAML files and add README
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldtse committed Jan 10, 2025
1 parent df72f5e commit b564e54
Show file tree
Hide file tree
Showing 5 changed files with 8,547 additions and 9,194 deletions.
66 changes: 66 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
= UnitsDB

== Purpose

This data repository is used in conjunction with UnitsML.

Sources include:
Expand All @@ -10,3 +12,67 @@ Sources include:
* (in some cases, "Encyclopaedia of Scientific Units, Weights and Measures, Their SI Equivalences and Origins" by François Cardarelli, is consulted)

NOTE: Conversion factors here are not updated with the revised SI.

== Structure

This repository contains the following YAML files:

`dimensions.yaml`:: Contains the base dimensions and their symbols.

`prefixes.yaml`:: Contains the SI prefixes and their symbols.

`units.yaml`:: Contains the units and their symbols.

`unit_systems.yaml`:: Contains the unit systems and their symbols.

`quantities.yaml`:: Contains the quantities and their symbols.


== Notes on prefixes

Decimal prefixes are keyed by their power of 10, e.g. `NISTp10_1`

The prefix `NISTp10_0` is a placeholder for unity.

Binary prefixes are keyed by their power of 2, e.g. `NISTp2_10`

== Notes on dimensions

The following dimensions are identified by NIST but they are excluded from
`dimensions.yaml` since they are unused:

[source,yaml]
----
NISTd87:
dimensionless: true
NISTd86:
dimensionless: true
NISTd81:
dimensionless: true
NISTd82:
dimensionless: true
NISTd83:
dimensionless: true
NISTd89:
dimensionless: true
NISTd88:
dimensionless: true
NISTd91:
dimensionless: true
NISTd90:
dimensionless: true
NISTd92:
dimensionless: true
NISTd93:
dimensionless: true
----
Loading

0 comments on commit b564e54

Please sign in to comment.