Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Add some UDUnits of substance #1003

Merged
merged 2 commits into from
Feb 2, 2018
Merged
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
11 changes: 10 additions & 1 deletion udunits/src/main/java/ucar/units/StandardUnitDB.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 1998-2014 University Corporation for Atmospheric Research/Unidata
* Copyright 1998-2017 University Corporation for Atmospheric Research/Unidata
*
* Portions of this software were developed by the Unidata Program at the
* University Corporation for Atmospheric Research.
Expand Down Expand Up @@ -266,6 +266,15 @@ private StandardUnitDB() throws UnitParseException, SpecificationException,

au("arpentlin", "191.835 ft");

/*
* UNITS OF SUBSTANCE
*/
au("avogadro_constant", "6.02214179e23/mol");
au("molecule", "1/avogadro_constant");
au("molec", "molecule");
au("nucleon", "molecule");
au("nuc", "molecule");

/*
* UNITS OF TIME
*/
Expand Down