Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New unit yaml #245

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/ISSUE_TEMPLATE/new-unit-code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
name: New code request form
description: A request for a new code to be added to UCUM.
title: '[Request for]:'
labels: new_code_request
assignees: ''
body:
- type: markdown
attributes:
value: '## Thanks for suggesting a new code

Please provide

1. the proposed code

2. a definition and a literature reference which provides a scientific definition.

3. the definition value for the proposed unit using an existing unit for this quantity (preferably the SI unit)

If the conversion factor and offset are not known, or direct conversion to an SI unit is not possible, then please provide justification for why the proposed code is a true unit of measure and which community or discipline uses it.

Note the scope of UCUM is science, healthcare, engineering, and business (not including currencies). Units outside this context are discouraged.

Please include the unit code in the issue title.'
- type: input
id: code
attributes:
label: new code
description: label with no punctuation except `-` and `_`. May be enclosed in [brackets] if it is a 'conventional' unit. Annotation elements should be enclode in {braces}.
placeholder: code
validations:
required: true
- type: textarea
id: definition
attributes:
label: definition
description: textual definition
placeholder: definition
validations:
required: true
- type: input
id: sourceURI
attributes:
label: source of definition (URI)
description: URI for the source of the definition
placeholder: URI
- type: textarea
id: source
attributes:
label: source of definition (citation)
description: citation for the source of the definition
placeholder: citation
- type: input
id: definition-value
attributes:
label: definition value
description: the size of the unit expressed using the reference unit for this quantity kind - e.g. 1 atm = 101325 Pa
placeholder: definition value
- type: textarea
id: scopeNote
attributes:
label: usage- or scope-note
description: scope note
placeholder: note
- type: textarea
id: comment
attributes:
label: additional information
description: comment
placeholder: comment
9 changes: 0 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ All notable changes to this project will be documented in this file.

The following has been ported from a legacy system and may not be formatted correctly.

## Version 2.2

This release contains numerous typographical corrections, updates to constants, and 12 new units.

### New units

- To be enumerated


## Version 2.1

This fixes 4 defects of the specification itself. No new units.
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# CAUTION: THIS IS A WORK IN PROGRESS
# This project was recently migrated to GitHub

Please see the current website at [https://ucum.org](https://ucum.org).
In September 2022, UCUM fully migrated its platform from a self-hosted Subversion repository and Trac ticketing system to GitHub. Please pardon our dust as we continue to evolve. We ask that you submit errors or questions using GitHub's [Issues](https://github.com/ucum-org/ucum/issues) feature.

The UCUM website is available at [https://ucum.org](https://ucum.org). All previous links should redirect to their new locations.
File renamed without changes.
14 changes: 7 additions & 7 deletions ucum-ci.units
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ ROE = 2.58e-4 C/kg metric # Roentgen
[NMI_BR] = 6080 [ft_br] nonmetric # nautical mile
[KN_BR] = 1 [nmi_br]/h nonmetric # knot
[ACR_BR] = 4840 [yd_br]2 nonmetric # acre
[GAL_US] = 231 [in_i]3 nonmetric # Queen Anne's wine gallon
[GAL_US] = 231 [in_i]3 nonmetric # Queen Anne's wine gallon
[BBL_US] = 42 [gal_us] nonmetric # barrel
[QT_US] = 1 [gal_us]/4 nonmetric # quart
[PT_US] = 1 [qt_us]/2 nonmetric # pint
Expand Down Expand Up @@ -250,16 +250,16 @@ ROE = 2.58e-4 C/kg metric # Roentgen
[DEGF] = degf(5 K/9) nonmetric # degree Fahrenheit
[degR] = 5 K/9 nonmetric # degree Rankine
[degRe] = degre(5 K/4) nonmetric # degree Réaumur
CAL_[15] = 4.18580 J metric # calorie at 15 °C
CAL_[20] = 4.18190 J metric # calorie at 20 °C
CAL_[15] = 4.18580 J metric # calorie at 15 °C
CAL_[20] = 4.18190 J metric # calorie at 20 °C
CAL_M = 4.19002 J metric # mean calorie
CAL_IT = 4.1868 J metric # international table calorie
CAL_TH = 4.184 J metric # thermochemical calorie
CAL = 1 cal_th metric # calorie
[CAL] = 1 kcal_th nonmetric # nutrition label Calories
[BTU_39] = 1.05967 kJ nonmetric # British thermal unit at 39 °F
[BTU_59] = 1.05480 kJ nonmetric # British thermal unit at 59 °F
[BTU_60] = 1.05468 kJ nonmetric # British thermal unit at 60 °F
[BTU_39] = 1.05967 kJ nonmetric # British thermal unit at 39 °F
[BTU_59] = 1.05480 kJ nonmetric # British thermal unit at 59 °F
[BTU_60] = 1.05468 kJ nonmetric # British thermal unit at 60 °F
[BTU_M] = 1.05587 kJ nonmetric # mean British thermal unit
[BTU_IT] = 1.05505585262 kJ nonmetric # international table British thermal unit
[BTU_TH] = 1.054350 kJ nonmetric # thermochemical British thermal unit
Expand Down Expand Up @@ -359,4 +359,4 @@ SPH = 4 [pi].sr nonmetric # spere
BIT_S = ld(1 1) nonmetric # bit
BIT = 1 1 metric # bit
BY = 8 bit metric # byte
BD = 1 /s metric # baud
BD = 1 /s metric # baud
14 changes: 7 additions & 7 deletions ucum-cs.units
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ REM = 1 RAD metric # radiation equivalent man
[nmi_br] = 6080 [ft_br] nonmetric # nautical mile
[kn_br] = 1 [nmi_br]/h nonmetric # knot
[acr_br] = 4840 [yd_br]2 nonmetric # acre
[gal_us] = 231 [in_i]3 nonmetric # Queen Anne's wine gallon
[gal_us] = 231 [in_i]3 nonmetric # Queen Anne's wine gallon
[bbl_us] = 42 [gal_us] nonmetric # barrel
[qt_us] = 1 [gal_us]/4 nonmetric # quart
[pt_us] = 1 [qt_us]/2 nonmetric # pint
Expand Down Expand Up @@ -250,16 +250,16 @@ REM = 1 RAD metric # radiation equivalent man
[degF] = degf(5 K/9) nonmetric # degree Fahrenheit
[degR] = 5 K/9 nonmetric # degree Rankine
[degRe] = degre(5 K/4) nonmetric # degree Réaumur
cal_[15] = 4.18580 J metric # calorie at 15 °C
cal_[20] = 4.18190 J metric # calorie at 20 °C
cal_[15] = 4.18580 J metric # calorie at 15 °C
cal_[20] = 4.18190 J metric # calorie at 20 °C
cal_m = 4.19002 J metric # mean calorie
cal_IT = 4.1868 J metric # international table calorie
cal_th = 4.184 J metric # thermochemical calorie
cal = 1 cal_th metric # calorie
[Cal] = 1 kcal_th nonmetric # nutrition label Calories
[Btu_39] = 1.05967 kJ nonmetric # British thermal unit at 39 °F
[Btu_59] = 1.05480 kJ nonmetric # British thermal unit at 59 °F
[Btu_60] = 1.05468 kJ nonmetric # British thermal unit at 60 °F
[Btu_39] = 1.05967 kJ nonmetric # British thermal unit at 39 °F
[Btu_59] = 1.05480 kJ nonmetric # British thermal unit at 59 °F
[Btu_60] = 1.05468 kJ nonmetric # British thermal unit at 60 °F
[Btu_m] = 1.05587 kJ nonmetric # mean British thermal unit
[Btu_IT] = 1.05505585262 kJ nonmetric # international table British thermal unit
[Btu_th] = 1.054350 kJ nonmetric # thermochemical British thermal unit
Expand Down Expand Up @@ -359,4 +359,4 @@ sph = 4 [pi].sr nonmetric # spere
bit_s = ld(1 1) nonmetric # bit
bit = 1 1 metric # bit
By = 8 bit metric # byte
Bd = 1 /s metric # baud
Bd = 1 /s metric # baud
8 changes: 4 additions & 4 deletions ucum-essence.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ascii"?>
<root xmlns="http://unitsofmeasure.org/ucum-essence" version="2.2"

revision-date="2022-09-20">
<root xmlns="http://unitsofmeasure.org/ucum-essence" version="2.1"
revision="$Revision: 442 $"
revision-date="$Date: 2017-11-21 19:04:52 -0500 (Tue, 21 Nov 2017) $">
<prefix Code="Y" CODE="YA">
<name>yotta</name>
<printSymbol>Y</printSymbol>
Expand Down Expand Up @@ -2044,4 +2044,4 @@
<printSymbol>Ti</printSymbol>
<value value="1099511627776">1099511627776</value>
</prefix>
</root>
</root>
15 changes: 9 additions & 6 deletions ucum-source.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- COPYRIGHT 1998-2022, REGENSTRIEF INSTITUTE, INC. AND THE UCUM ORGANIZATION ALL RIGHTS RESERVED.
<!-- COPYRIGHT 1998-2014, REGENSTRIEF INSTITUTE, INC. AND THE UCUM ORGANIZATION ALL RIGHTS RESERVED.

Use and redistribution of this data is permitted without charge
as long as you make no changes to it. DO NOT CHANGE THIS FILE if
you want to redistribute it. Please contact the Regenstrief Institute, Inc.
for any issues that make you think you need to change this file.
you want to redistribute it. Please contact Gunther Schadow at
the Regenstrief Institute, Indianapolis, IN 46260 for any issues
that make you think you need to change this file.
-->
<!DOCTYPE spec [
<!ENTITY alpha "&#x3b1;">
Expand Down Expand Up @@ -57,8 +58,9 @@
<spec xmlns:u="http://aurora.regenstrief.org/UCUM">
<header>
<title>The Unified Code for Units of Measure</title>
<version>2.2</version>
<date>2022-09-20</date>
<version>2.1</version>
<revision>$Revision$</revision>
<date>$Date$</date>
<authlist>
<author>
<name>Gunther Schadow</name>
Expand All @@ -71,7 +73,7 @@
<email href="cmcdonald@regenstrief.org"/>
</author>
</authlist>
<copyright>1998-2022, Regenstrief Institute, Inc. and the UCUM Organization. All rights reserved.</copyright>
<copyright>1998-2014, Regenstrief Institute, Inc. and the UCUM Organization. All rights reserved.</copyright>
</header>

<body>
Expand Down Expand Up @@ -5451,3 +5453,4 @@ This license shall be construed and interpreted in accordance with the laws of t
</div1>
</back>
</spec>

Loading