Skip to content

Commit 0da4a5a

Browse files
Jagailoangularsen
andauthored
✨Add more Gray units (#1568)
Added dGy for absorbed dose of ionizing radiation Added μGy·μm², mGy·μm², cGy·μm², dGy·μm², Gy·μm² for dose area product ([calc](https://www.calculand.com/unit-converter/?gruppe=Dose+area+product&einheit=Microgray+square+micrometre+%5B%C2%B5Gy+%C2%B5m%C2%B2%5D)) Co-authored-by: Andreas Gullberg Larsen <[email protected]>
1 parent 6abb5f4 commit 0da4a5a

23 files changed

+737
-99
lines changed

Common/UnitDefinitions/AbsorbedDoseOfIonizingRadiation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"FromBaseToUnitFunc": "{x}",
2020
"XmlDocSummary": "The gray is the unit of ionizing radiation dose in the SI, defined as the absorption of one joule of radiation energy per kilogram of matter.",
2121
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Gray_(unit)",
22-
"Prefixes": [ "Femto", "Pico", "Nano", "Micro", "Milli", "Centi", "Kilo", "Mega", "Giga", "Tera", "Peta" ],
22+
"Prefixes": [ "Femto", "Pico", "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo", "Mega", "Giga", "Tera", "Peta" ],
2323
"Localization": [
2424
{
2525
"Culture": "en-US",

Common/UnitDefinitions/DoseAreaProduct.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,32 @@
115115
]
116116
}
117117
]
118+
},
119+
{
120+
"SingularName": "GraySquareMicrometer",
121+
"PluralName": "GraySquareMicrometers",
122+
"FromUnitToBaseFunc": "{x} / 1000000000000",
123+
"FromBaseToUnitFunc": "{x} * 1000000000000",
124+
"Prefixes": [
125+
"Micro",
126+
"Milli",
127+
"Centi",
128+
"Deci"
129+
],
130+
"Localization": [
131+
{
132+
"Culture": "en-US",
133+
"Abbreviations": [
134+
"Gy·μm²"
135+
]
136+
},
137+
{
138+
"Culture": "ru-RU",
139+
"Abbreviations": [
140+
"Гр·мкм²"
141+
]
142+
}
143+
]
118144
}
119145
]
120146
}

Common/UnitEnumValues.g.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,8 @@
18121812
"Petagray": 19,
18131813
"Picogray": 11,
18141814
"Rad": 17,
1815-
"Teragray": 14
1815+
"Teragray": 14,
1816+
"Decigray": 26
18161817
},
18171818
"Molality": {
18181819
"MolePerGram": 4,
@@ -1902,7 +1903,12 @@
19021903
"MilligraySquareCentimeter": 14,
19031904
"MilligraySquareDecimeter": 17,
19041905
"MilligraySquareMeter": 11,
1905-
"MilligraySquareMillimeter": 12
1906+
"MilligraySquareMillimeter": 12,
1907+
"CentigraySquareMicrometer": 21,
1908+
"DecigraySquareMicrometer": 25,
1909+
"GraySquareMicrometer": 26,
1910+
"MicrograySquareMicrometer": 29,
1911+
"MilligraySquareMicrometer": 30
19061912
},
19071913
"ElectricApparentEnergy": {
19081914
"KilovoltampereHour": 7,

UnitsNet.NanoFramework/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NanoFramework/GeneratedCode/Quantities/DoseAreaProduct.g.cs

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NanoFramework/GeneratedCode/Units/AbsorbedDoseOfIonizingRadiationUnit.g.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NanoFramework/GeneratedCode/Units/DoseAreaProductUnit.g.cs

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToAbsorbedDoseOfIonizingRadiationExtensionsTest.g.cs

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)