unyt.unit_symbols module

Predefined useful aliases to physical units

Note that all of these names can be imported from the top-level unyt namespace. For example:

>>> from unyt import cm, g, s
>>> data = [3, 4, 5]*g*cm/s
>>> print(data)
[3 4 5] cm*g/s
unyt.unit_symbols.fm = fm

femtometer

unyt.unit_symbols.femtometer = fm

femtometer

unyt.unit_symbols.pm = pm

picometer

unyt.unit_symbols.picometer = pm

picometer

unyt.unit_symbols.nm = nm

nanometer

unyt.unit_symbols.nanometer = nm

nanometer

unyt.unit_symbols.um = um

micrometer

unyt.unit_symbols.micrometer = um

micrometer

unyt.unit_symbols.mm = mm

millimeter

unyt.unit_symbols.millimeter = mm

millimeter

unyt.unit_symbols.cm = cm

centimeter

unyt.unit_symbols.centimeter = cm

centimeter

unyt.unit_symbols.m = m

meter

unyt.unit_symbols.meter = m

meter

unyt.unit_symbols.km = km

kilometer

unyt.unit_symbols.kilometer = km

kilometer

unyt.unit_symbols.Mm = Mm

Megameter

unyt.unit_symbols.Megameter = Mm

Megameter

unyt.unit_symbols.megameter = Mm

Megameter

unyt.unit_symbols.pc = pc

parsec

unyt.unit_symbols.parsec = pc

parsec

unyt.unit_symbols.kpc = kpc

kiloparsec

unyt.unit_symbols.kiloparsec = kpc

kiloparsec

unyt.unit_symbols.Mpc = Mpc

megaparsec

unyt.unit_symbols.mpc = Mpc

megaparsec

unyt.unit_symbols.megaparsec = Mpc

megaparsec

unyt.unit_symbols.Gpc = Gpc

gigaparsec

unyt.unit_symbols.gpc = Gpc

gigaparsec

unyt.unit_symbols.Gigaparsec = Gpc

gigaparsec

unyt.unit_symbols.pg = pg

picogram

unyt.unit_symbols.picogram = pg

picogram

unyt.unit_symbols.ng = ng

nanogram

unyt.unit_symbols.nanogram = ng

nanogram

unyt.unit_symbols.ug = ug

micogram

unyt.unit_symbols.microgram = ug

micogram

unyt.unit_symbols.mg = mg

milligram

unyt.unit_symbols.milligram = mg

milligram

unyt.unit_symbols.g = g

gram

unyt.unit_symbols.gram = g

gram

unyt.unit_symbols.kg = kg

kilogram

unyt.unit_symbols.kilogram = kg

kilogram

unyt.unit_symbols.Mg = Mg

megagram

unyt.unit_symbols.megagramme = Mg

megagram

unyt.unit_symbols.tonne = Mg

megagram

unyt.unit_symbols.metric_ton = Mg

megagram

unyt.unit_symbols.fs = fs

femtosecond

unyt.unit_symbols.femtoseconds = fs

femtosecond

unyt.unit_symbols.ps = ps

picosecond

unyt.unit_symbols.picosecond = ps

picosecond

unyt.unit_symbols.ns = ns

nanosecond

unyt.unit_symbols.nanosecond = ns

nanosecond

unyt.unit_symbols.us = us

microsecond

unyt.unit_symbols.microsecond = us

microsecond

unyt.unit_symbols.ms = ms

millisecond

unyt.unit_symbols.millisecond = ms

millisecond

unyt.unit_symbols.s = s

second

unyt.unit_symbols.second = s

second

unyt.unit_symbols.ks = ks

kilosecond

unyt.unit_symbols.kilosecond = ks

kilosecond

unyt.unit_symbols.Ms = Ms

megasecond

unyt.unit_symbols.megasecond = Ms

megasecond

unyt.unit_symbols.Gs = Gs

gigasecond

unyt.unit_symbols.gigasecond = Gs

gigasecond

unyt.unit_symbols.min = min

minute

unyt.unit_symbols.minute = min

minute

unyt.unit_symbols.hr = hr

hour

unyt.unit_symbols.hour = hr

hour

unyt.unit_symbols.day = day

day

unyt.unit_symbols.yr = yr

year

unyt.unit_symbols.year = yr

year

unyt.unit_symbols.kyr = kyr

kiloyear

unyt.unit_symbols.kiloyear = kyr

kiloyear

unyt.unit_symbols.Myr = Myr

Megayear

unyt.unit_symbols.Megayear = Myr

Megayear

unyt.unit_symbols.megayear = Myr

Megayear

unyt.unit_symbols.Gyr = Gyr

Gigayear

unyt.unit_symbols.Gigayear = Gyr

Gigayear

unyt.unit_symbols.gigayear = Gyr

Gigayear

unyt.unit_symbols.degree_kelvin = K

Degree kelvin

unyt.unit_symbols.Kelvin = K

Degree kelvin

unyt.unit_symbols.K = K

Degree kelvin

unyt.unit_symbols.degree_fahrenheit = degF

Degree fahrenheit

unyt.unit_symbols.degF = degF

Degree fahrenheit

unyt.unit_symbols.degree_celsius = degC

Degree Celsius

unyt.unit_symbols.degC = degC

Degree Celsius

unyt.unit_symbols.degree_rankine = R
unyt.unit_symbols.R = R
unyt.unit_symbols.dyne = dyne

dyne (CGS force)

unyt.unit_symbols.dyn = dyne

dyne (CGS force)

unyt.unit_symbols.erg = erg

erg (CGS energy)

unyt.unit_symbols.ergs = erg

erg (CGS energy)

unyt.unit_symbols.barye = Ba
unyt.unit_symbols.Ba = Ba
unyt.unit_symbols.N = N

Newton (SI force)

unyt.unit_symbols.Newton = N

Newton (SI force)

unyt.unit_symbols.newton = N

Newton (SI force)

unyt.unit_symbols.J = J

Joule (SI energy)

unyt.unit_symbols.Joule = J

Joule (SI energy)

unyt.unit_symbols.joule = J

Joule (SI energy)

unyt.unit_symbols.W = W

Watt (SI power)

unyt.unit_symbols.Watt = W

Watt (SI power)

unyt.unit_symbols.watt = W

Watt (SI power)

unyt.unit_symbols.Hz = Hz

Hertz

unyt.unit_symbols.Hertz = Hz

Hertz

unyt.unit_symbols.hertz = Hz

Hertz

unyt.unit_symbols.kHz = kHz

Kilohertz

unyt.unit_symbols.khz = kHz

Kilohertz

unyt.unit_symbols.kilohertz = kHz

Kilohertz

unyt.unit_symbols.MHz = MHz

Megahertz

unyt.unit_symbols.mhz = MHz

Megahertz

unyt.unit_symbols.megahertz = MHz

Megahertz

unyt.unit_symbols.GHz = GHz

Gigahertz

unyt.unit_symbols.ghz = GHz

Gigahertz

unyt.unit_symbols.gigahertz = GHz

Gigahertz

unyt.unit_symbols.THz = THz

Terahertz

unyt.unit_symbols.thz = THz

Terahertz

unyt.unit_symbols.terahertz = THz

Terahertz

unyt.unit_symbols.Pa = Pa

Pascal

unyt.unit_symbols.pascal = Pa

Pascal

unyt.unit_symbols.Sv = Sv

sievert

unyt.unit_symbols.sievert = Sv

sievert

unyt.unit_symbols.cd = cd

candela

unyt.unit_symbols.Candela = cd

candela

unyt.unit_symbols.candela = cd

candela

unyt.unit_symbols.lm = lm

lumen

unyt.unit_symbols.Lumen = lm

lumen

unyt.unit_symbols.lumen = lm

lumen

unyt.unit_symbols.lx = lx

lux

unyt.unit_symbols.Lux = lx

lux

unyt.unit_symbols.lux = lx

lux

unyt.unit_symbols.lambert = lambert

lambert

unyt.unit_symbols.Lambert = lambert

lambert

unyt.unit_symbols.nt = nt

nit

unyt.unit_symbols.nit = nt

nit

unyt.unit_symbols.Nit = nt

nit

unyt.unit_symbols.inch = inch

inch

unyt.unit_symbols.ft = ft

foot

unyt.unit_symbols.foot = ft

foot

unyt.unit_symbols.mile = mile

mile

unyt.unit_symbols.fur = fur

furlong

unyt.unit_symbols.furlong = fur

furlong

unyt.unit_symbols.yard = yd

yard

unyt.unit_symbols.yd = yd

yard

unyt.unit_symbols.lb = lb

pound

unyt.unit_symbols.pound = lb

pound

unyt.unit_symbols.slug = slug

slug

unyt.unit_symbols.oz = oz

ounce

unyt.unit_symbols.ounce = oz

ounce

unyt.unit_symbols.ton = ton

ton

unyt.unit_symbols.lbf = lbf

pound-force

unyt.unit_symbols.pound_force = lbf

pound-force

unyt.unit_symbols.atm = atm

atmosphere

unyt.unit_symbols.atmosphere = atm

atmosphere

unyt.unit_symbols.hp = hp

horsepower

unyt.unit_symbols.horsepower = hp

horsepower

unyt.unit_symbols.BTU = BTU

BTU

unyt.unit_symbols.cal = cal

calorie

unyt.unit_symbols.calorie = cal

calorie

unyt.unit_symbols.psi = psi

psi

unyt.unit_symbols.Msun = Msun

Mass of the sun

unyt.unit_symbols.Rsun = Rsun

Radius of the sun

unyt.unit_symbols.R_sun = Rsun

Radius of the sun

unyt.unit_symbols.solar_radius = Rsun

Radius of the sun

unyt.unit_symbols.rsun = rsun

Radius of the sun

unyt.unit_symbols.r_sun = rsun

Radius of the sun

unyt.unit_symbols.Lsun = Lsun

Luminosity of the sun

unyt.unit_symbols.lsun = Lsun

Luminosity of the sun

unyt.unit_symbols.l_sun = Lsun

Luminosity of the sun

unyt.unit_symbols.solar_luminosity = Lsun

Luminosity of the sun

unyt.unit_symbols.Tsun = Tsun

Temperature of the sun

unyt.unit_symbols.T_sun = Tsun

Temperature of the sun

unyt.unit_symbols.solar_temperature = Tsun

Temperature of the sun

unyt.unit_symbols.Zsun = Zsun

Metallicity of the sun

unyt.unit_symbols.Z_sun = Zsun

Metallicity of the sun

unyt.unit_symbols.solar_metallicity = Zsun

Metallicity of the sun

unyt.unit_symbols.AU = AU

Astronomical unit

unyt.unit_symbols.astronomical_unit = AU

Astronomical unit

unyt.unit_symbols.au = au

Astronomical unit

unyt.unit_symbols.ly = ly

Light year

unyt.unit_symbols.light_year = ly

Light year

unyt.unit_symbols.Rearth = R_earth

Radius of the Earth

unyt.unit_symbols.R_earth = R_earth

Radius of the Earth

unyt.unit_symbols.earth_radius = R_earth

Radius of the Earth

unyt.unit_symbols.rearth = r_earth

Radius of the Earth

unyt.unit_symbols.r_earth = r_earth

Radius of the Earth

unyt.unit_symbols.Rjup = R_jup

Radius of Jupiter

unyt.unit_symbols.R_jup = R_jup

Radius of Jupiter

unyt.unit_symbols.jupiter_radius = R_jup

Radius of Jupiter

unyt.unit_symbols.rjup = r_jup

Radius of Jupiter

unyt.unit_symbols.r_jup = r_jup

Radius of Jupiter

unyt.unit_symbols.Jy = Jy

Jansky

unyt.unit_symbols.jansky = Jy

Jansky

unyt.unit_symbols.eV = eV

electronvolt

unyt.unit_symbols.electron_volt = eV

electronvolt

unyt.unit_symbols.electronvolt = eV

electronvolt

unyt.unit_symbols.keV = keV

kiloelectronvolt

unyt.unit_symbols.kilo_electron_volt = keV

kiloelectronvolt

unyt.unit_symbols.kiloelectronvolt = keV

kiloelectronvolt

unyt.unit_symbols.MeV = MeV

Megaelectronvolt

unyt.unit_symbols.mega_electron_volt = MeV

Megaelectronvolt

unyt.unit_symbols.Megaelectronvolt = MeV

Megaelectronvolt

unyt.unit_symbols.megaelectronvolt = MeV

Megaelectronvolt

unyt.unit_symbols.GeV = GeV

Gigaelectronvolt

unyt.unit_symbols.giga_electron_volt = GeV

Gigaelectronvolt

unyt.unit_symbols.Gigaelectronvolt = GeV

Gigaelectronvolt

unyt.unit_symbols.gigaelectronvolt = GeV

Gigaelectronvolt

unyt.unit_symbols.amu = amu

Atomic mass unit

unyt.unit_symbols.atomic_mass_unit = amu

Atomic mass unit

unyt.unit_symbols.angstrom = angstrom

Angstrom

unyt.unit_symbols.me = me

Electron mass

unyt.unit_symbols.electron_mass = me

Electron mass

unyt.unit_symbols.deg = degree

Degree (angle)

unyt.unit_symbols.degree = degree

Degree (angle)

unyt.unit_symbols.rad = radian

Radian

unyt.unit_symbols.radian = radian

Radian

unyt.unit_symbols.arcsec = arcsec

Arcsecond

unyt.unit_symbols.arcsecond = arcsec

Arcsecond

unyt.unit_symbols.arcmin = arcmin

Arcminute

unyt.unit_symbols.arcminute = arcmin

Arcminute

unyt.unit_symbols.mas = mas

milliarcsecond

unyt.unit_symbols.milliarcsecond = mas

milliarcsecond

unyt.unit_symbols.sr = steradian

steradian

unyt.unit_symbols.steradian = steradian

steradian

unyt.unit_symbols.HA = hourangle

hourangle

unyt.unit_symbols.hourangle = hourangle

hourangle

unyt.unit_symbols.electrostatic_unit = esu

electrostatic unit

unyt.unit_symbols.esu = esu

electrostatic unit

unyt.unit_symbols.gauss = gauss

Gauss

unyt.unit_symbols.G = gauss

Gauss

unyt.unit_symbols.statcoulomb = statC

Statcoulomb

unyt.unit_symbols.statC = statC

Statcoulomb

unyt.unit_symbols.statampere = statA

Statampere

unyt.unit_symbols.statA = statA

Statampere

unyt.unit_symbols.statvolt = statV

Statvolt

unyt.unit_symbols.statV = statV

Statvolt

unyt.unit_symbols.statohm = statohm

Statohm

unyt.unit_symbols.Mx = Mx

Maxwell

unyt.unit_symbols.maxwell = Mx

Maxwell

unyt.unit_symbols.Maxwell = Mx

Maxwell

unyt.unit_symbols.C = C

Coulomb

unyt.unit_symbols.coulomb = C

Coulomb

unyt.unit_symbols.Coulomb = C

Coulomb

unyt.unit_symbols.T = T

Tesla

unyt.unit_symbols.tesla = T

Tesla

unyt.unit_symbols.Tesla = T

Tesla

unyt.unit_symbols.A = A

Ampere

unyt.unit_symbols.ampere = A

Ampere

unyt.unit_symbols.Ampere = A

Ampere

unyt.unit_symbols.V = V

Volt

unyt.unit_symbols.volt = V

Volt

unyt.unit_symbols.Volt = V

Volt

unyt.unit_symbols.F = F

Farad

unyt.unit_symbols.farad = F

Farad

unyt.unit_symbols.Farad = F

Farad

unyt.unit_symbols.ohm = ohm

Ohm

unyt.unit_symbols.Ohm = ohm

Ohm

unyt.unit_symbols.Wb = Wb

Weber

unyt.unit_symbols.weber = Wb

Weber

unyt.unit_symbols.Weber = Wb

Weber

unyt.unit_symbols.latitude = lat

Degree latitude

unyt.unit_symbols.lat = lat

Degree latitude

unyt.unit_symbols.longitude = lon

Degree longitude

unyt.unit_symbols.lon = lon

Degree longitude

unyt.unit_symbols.counts = counts

Count of something

unyt.unit_symbols.count = counts

Count of something

unyt.unit_symbols.photons = photons

Number of photons

unyt.unit_symbols.photon = photons

Number of photons

unyt.unit_symbols.dimensionless = (dimensionless)

dimensionless