Skip to content

Commit c5e91fc

Browse files
authored
Add non-SI BIPM units (#89)
Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent 35afb06 commit c5e91fc

25 files changed

+841
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
.DEFAULT_GOAL := all
22

33
JSONSCHEMA ?= ./node_modules/@sourcemeta/jsonschema/npm/cli.js
4+
JQ ?= jq
45
SHELLCHECK ?= shellcheck
6+
MKDIRP ?= mkdir -p
57
NODE ?= node
68
NPM ?= npm
79
TIME ?= time
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Arcminute",
4+
"description": "A non-SI unit of plane angle accepted for use with the SI. One arcminute is equal to (1/60) degree or (pi/10800) radians",
5+
"examples": [ 0, 1, 30, 60, -30, 15.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-si-equivalent": "(pi/10800) rad",
9+
"x-symbol": "",
10+
"type": "number"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Arcsecond",
4+
"description": "A non-SI unit of plane angle accepted for use with the SI. One arcsecond is equal to (1/60) arcminute or (pi/648000) radians",
5+
"examples": [ 0, 1, 30, 60, -30, 15.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-si-equivalent": "(pi/648000) rad",
9+
"x-symbol": "",
10+
"type": "number"
11+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Astronomical Unit",
4+
"description": "A non-SI unit of length accepted for use with the SI. One astronomical unit is a conventional unit of length approximately equal to the mean Earth-Sun distance. It is defined as exactly 149597870700 metres",
5+
"examples": [ 0, 1, 0.387, 1.524, 5.203, 39.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-si-equivalent": "149597870700 m",
9+
"x-symbol": "au",
10+
"type": "number",
11+
"minimum": 0
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Dalton",
4+
"description": "A non-SI unit of mass accepted for use with the SI. One dalton is equal to (1/12) of the mass of an unbound neutral carbon-12 atom in its nuclear and electronic ground state. It is approximately 1.660 539 066 60 x 10^-27 kg",
5+
"examples": [ 1, 12, 16, 18, 28, 44, 180.16 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-si-equivalent": "1.660539066605e-27 kg",
9+
"x-symbol": "Da",
10+
"type": "number",
11+
"minimum": 0
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Day",
4+
"description": "A non-SI unit of time accepted for use with the SI. One day is equal to 24 hours or 86400 seconds",
5+
"examples": [ 0, 1, 7, 30, 365, 0.5, 1.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-si-equivalent": "86400 s",
9+
"x-symbol": "d",
10+
"type": "number",
11+
"minimum": 0
12+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Degree",
4+
"description": "A non-SI unit of plane angle accepted for use with the SI. One degree is equal to (pi/180) radians",
5+
"examples": [ 0, 45, 90, 180, 360, -90, -180, 37.7749 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-si-equivalent": "(pi/180) rad",
9+
"x-symbol": "°",
10+
"type": "number"
11+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Electronvolt",
4+
"description": "A non-SI unit of energy accepted for use with the SI. One electronvolt is the kinetic energy acquired by an electron in passing through a potential difference of one volt in vacuum. It is equal to approximately 1.602 176 634 x 10^-19 joules",
5+
"examples": [ 0, 1, 13.6, 511000, 1000000, 1e+9 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-si-equivalent": "1.602176634e-19 J",
9+
"x-symbol": "eV",
10+
"type": "number",
11+
"minimum": 0
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Hectare",
4+
"description": "A non-SI unit of area accepted for use with the SI. One hectare is equal to 10000 square metres",
5+
"examples": [ 0, 1, 10, 100, 0.5, 2.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-si-equivalent": "10000 m^2",
9+
"x-symbol": "ha",
10+
"type": "number",
11+
"minimum": 0
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Hour",
4+
"description": "A non-SI unit of time accepted for use with the SI. One hour is equal to 60 minutes or 3600 seconds",
5+
"examples": [ 0, 1, 6, 12, 24, 1.5, 0.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-si-equivalent": "3600 s",
9+
"x-symbol": "h",
10+
"type": "number",
11+
"minimum": 0
12+
}

0 commit comments

Comments
 (0)