IoticAgent.Units module¶
Constants for Units and helper class to build complete JSON tree of units from
-
IoticAgent.Units.
AMPERE
= 'http://purl.obolibrary.org/obo/UO_0000011'¶ Electric current unit
-
IoticAgent.Units.
BECQUEREL
= 'http://purl.obolibrary.org/obo/UO_0000132'¶ An activity (of a radionuclide) unit which is equal to the activity of a quantity of radioactive material in which one nucleus decays per second or there is one atom disintegration per second
-
IoticAgent.Units.
CELSIUS
= 'http://purl.obolibrary.org/obo/UO_0000027'¶ Temperature units where the freezing point of water at 273.15 Kelvin is considered 0C and the boiling point 283.15K is 100C
-
IoticAgent.Units.
CENTIMETER
= 'http://purl.obolibrary.org/obo/UO_0000015'¶ Metric distance unit = 1/100 of a meter
-
IoticAgent.Units.
COUNTS_PER_MIN
= 'http://purl.obolibrary.org/obo/UO_0000148'¶ An activity (of a radionuclide) unit which is equal to the number of light emissions produced by ionizing radiation in one minute.
-
IoticAgent.Units.
DECIBEL
= 'http://purl.obolibrary.org/obo/UO_0000259'¶ A ratio unit which is an indicator of sound power per unit area.
-
IoticAgent.Units.
DEGREE
= 'http://purl.obolibrary.org/obo/UO_0000185'¶ A plane angle unit which is equal to 1/360 of a full rotation or 1.7453310^[-2] rad
-
IoticAgent.Units.
FAHRENHEIT
= 'http://purl.obolibrary.org/obo/UO_0000195'¶ A temperature unit which is equal to 5/9ths of a kelvin. Negative 40 degrees Fahrenheit is equal to negative 40 degrees Celsius
-
IoticAgent.Units.
GRAM
= 'http://purl.obolibrary.org/obo/UO_0000021'¶ A mass unit which is equal to one thousandth of a kilogram or 10^[-3] kg
-
IoticAgent.Units.
HERTZ
= 'http://purl.obolibrary.org/obo/UO_0000106'¶ A frequency unit which is equal to 1 complete cycle of a recurring phenomenon in 1 second.
-
IoticAgent.Units.
HOUR
= 'http://purl.obolibrary.org/obo/UO_0000032'¶ A time unit which is equal to 3600 seconds or 60 minutes
-
IoticAgent.Units.
JOULE
= 'http://purl.obolibrary.org/obo/UO_0000112'¶ An energy unit which is equal to the energy required when a force of 1 newton moves an object 1 meter
-
IoticAgent.Units.
KELVIN
= 'http://purl.obolibrary.org/obo/UO_0000012'¶ A thermodynamic temperature unit. 0K is “absolute zero”, ~293K is “room temperature”, i.e. 20C
-
IoticAgent.Units.
KILOGRAM
= 'http://purl.obolibrary.org/obo/UO_0000009'¶ A mass unit which is equal to the mass of the International Prototype Kilogram kept by the BIPM at Svres, France.
-
IoticAgent.Units.
KILOWATT_HOUR
= 'http://purl.obolibrary.org/obo/UO_0000224'¶ An energy unit which is equal to 1000 Watt-hours
-
IoticAgent.Units.
LUX
= 'http://purl.obolibrary.org/obo/UO_0000116'¶ An illuminance unit which is equal to the illuminance produced by 1 lumen evenly spread over an area 1 m^[2]
-
IoticAgent.Units.
MEGAHERTZ
= 'http://purl.obolibrary.org/obo/UO_0000325'¶ A frequency unit which is equal 1 Million Hz
-
IoticAgent.Units.
METER
= 'http://purl.obolibrary.org/obo/UO_0000008'¶ Metric distance unit = 100 cm
-
IoticAgent.Units.
METER_PER_SEC
= 'http://purl.obolibrary.org/obo/UO_0000094'¶ A speed/velocity unit which is equal to the speed of an object traveling 1 meter distance in one second
-
IoticAgent.Units.
MICROGRAM
= 'http://purl.obolibrary.org/obo/UO_0000023'¶ A mass unit which is equal to one millionth of a gram or 10^[-6] g
-
IoticAgent.Units.
MILLIGRAM
= 'http://purl.obolibrary.org/obo/UO_0000022'¶ A mass unit which is equal to one thousandth of a gram or 10^[-3] g
-
IoticAgent.Units.
MILLIMETER
= 'http://purl.obolibrary.org/obo/UO_0000016'¶ Metric distance unit = 1/100 of a meter
-
IoticAgent.Units.
MINUTE
= 'http://purl.obolibrary.org/obo/UO_0000031'¶ A time unit which is equal to 60 seconds
-
IoticAgent.Units.
MM_MERCURY
= 'http://purl.obolibrary.org/obo/UO_0000272'¶ A unit of pressure equal to the amount of fluid pressure one millimeter deep in mercury at 0C
-
IoticAgent.Units.
NEWTON
= 'http://purl.obolibrary.org/obo/UO_0000108'¶ A force unit which is equal to the force required to cause an acceleration of 1m/s2 of a mass of 1 Kg
-
IoticAgent.Units.
PARTS_PER_BILLION
= 'http://purl.obolibrary.org/obo/UO_0000170'¶ A dimensionless concentration notation which denotes the amount of a given substance in a total amount of 10^9 regardless of the units of measure as long as they are the same.
-
IoticAgent.Units.
PARTS_PER_HUNDRED
= 'http://purl.obolibrary.org/obo/UO_0000167'¶ A dimensionless concentration notation which denotes the amount of a given substance in a total amount of 100 regardless of the units of measure as long as they are the same.
-
IoticAgent.Units.
PARTS_PER_MILLION
= 'http://purl.obolibrary.org/obo/UO_0000169'¶ A dimensionless concentration notation which denotes the amount of a given substance in a total amount of 1,000,000 regardless of the units of measure as long as they are the same.
-
IoticAgent.Units.
PARTS_PER_QUADRILLION
= 'http://purl.obolibrary.org/obo/UO_0000172'¶ A dimensionless concentration notation which denotes the amount of a given substance in a total amount of 10^15 regardless of the units of measure as long as they are the same.
-
IoticAgent.Units.
PARTS_PER_THOUSAND
= 'http://purl.obolibrary.org/obo/UO_0000168'¶ A dimensionless concentration notation which denotes the amount of a given substance in a total amount of 1000 regardless of the units of measure as long as they are the same.
-
IoticAgent.Units.
PARTS_PER_TRILLION
= 'http://purl.obolibrary.org/obo/UO_0000171'¶ A dimensionless concentration notation which denotes the amount of a given substance in a total amount of 10^12 regardless of the units of measure as long as they are the same.
-
IoticAgent.Units.
PASCAL
= 'http://purl.obolibrary.org/obo/UO_0000110'¶ A pressure unit which is equal to the pressure or stress on a surface caused by a force of 1 newton spread over a surface of 1 m^[2]
-
IoticAgent.Units.
PERCENT
= 'http://purl.obolibrary.org/obo/UO_0000187'¶ A dimensionless ratio unit which denotes numbers as fractions of 100.
-
IoticAgent.Units.
RADIAN
= 'http://purl.obolibrary.org/obo/UO_0000123'¶ A plane angle unit which is equal to the angle subtended at the center of a circle by an arc equal in length to the radius of the circle, approximately 57 degrees 17 minutes and 44.6 seconds.
-
IoticAgent.Units.
ROENTGEN
= 'http://purl.obolibrary.org/obo/UO_0000136'¶ An exposure unit which is equal to the amount of radiation required to liberate positive and negative charges of one electrostatic unit of charge in 1 cm^[3] of air
-
IoticAgent.Units.
SECOND
= 'http://purl.obolibrary.org/obo/UO_0000010'¶ A time unit which is equal to the duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium 133 atom
-
IoticAgent.Units.
SQUARE_CENTIMETER
= 'http://purl.obolibrary.org/obo/UO_0000081'¶ An area unit which is equal to an area enclosed by a square with sides each 1 centimeter long.
-
IoticAgent.Units.
SQUARE_METER
= 'http://purl.obolibrary.org/obo/UO_0000080'¶ An area unit which is equal to an area enclosed by a square with sides each 1 meter long.
-
IoticAgent.Units.
SQUARE_MILLIMETER
= 'http://purl.obolibrary.org/obo/UO_0000082'¶ An area unit which is equal to an area enclosed by a square with sides each 1 millimeter long.
-
class
IoticAgent.Units.
Units
(uofn=None)¶ Bases:
object
-
print_units
(parent=None, indent=0, indentsize=4)¶
-
save_json
(jsonfn=None, pretty=True)¶ Write a .json file with the units tree jsonfn=’path/file.name’ default os.getcwd() + ‘units.json’ pretty=True use JSON dumps pretty print for human readability
-
-
IoticAgent.Units.
VOLT
= 'http://purl.obolibrary.org/obo/UO_0000218'¶ An electric potential difference unit which is equal to the work per unit charge
-
IoticAgent.Units.
WATT
= 'http://purl.obolibrary.org/obo/UO_0000114'¶ A power unit which is equal to the power used when work is done at the rate of 1 joule per second
-
IoticAgent.Units.
WATT_HOUR
= 'http://purl.obolibrary.org/obo/UO_0000223'¶ An energy unit which is equal to the amount of electrical energy equivalent to a one-watt load drawing power for one hour