LAL  7.1.7.1-15d842a

Detailed Description

Defines basic and derived SI units and a function to produce a text string corresponding to a unit structure.

Author
J. T. Whelan john..nosp@m.whel.nosp@m.an@li.nosp@m.go.o.nosp@m.rg

XLALUnitAsString() converts the unit structure *input into a text string which is stored in the character vector *output. Note that the resulting text string is expressed solely in terms of the basic units (m, kg, s, A, K, strain and counts), and is thus not necessarily the most convenient way to check the units of a quantity. A better method is to construct a unit structure containing the expected units, then compare that to the actual units using XLALUnitCompare().

XLALParseUnitString() reconstructs the original LALUnit structure from the string output by XLALUnitAsString(). It is very sensitive to the exact format of the string and is not intended for use in parsing user-entered strings.

Algorithm

XLALUnitAsString() moves through the unit structure, appending the appropriate text to the string as it goes along.

XLALParseUnitString() moves through the input string, one character at a time, building an LALUnit structure as a it goes along, so long as it encounters precisely the syntax expected.

Notes

This file also defines a number of constant unit structures (declared extern in Header Units.h). Zeroth is lalDimensionlessUnit, which is simply a LALUnit structure to be associated with a unitless quantity. First, the relevant fundamental SI units and two custom units of use in gravitational wave detection:

ConstantNameAbbr.Physical Quantity
lalMeterUnitmetermlength
lalKiloGramUnitkilogramkgmass
lalSecondUnitsecondstime
lalAmpereUnitampereAelectric current
lalKelvinUnitkelvinKthermodynamic temperature
lalStrainUnitstrain\(\epsilon\)gravitational strain
lalADCCountUnitADC countcountA-to-D converter counts

Next, the named derived units in the SI [15] :

ConstantNameAbbr.Physical QuantityDef.Fundamental
lalHertzUnithertzHzfrequencys \(^{-1}\)s \(^{-1}\)
lalNewtonUnitnewtonNforcekg \(\cdot\) m/s \(^2\)m kg s \(^{-2}\)
lalPascalUnitpascalPapressureN/m \(^2\)m \(^{-1}\) kg s \(^{-2}\)
lalJouleUnitjouleJenergyN \(\cdot\)mm \(^2\) kg s \(^{-2}\)
lalWattUnitwattWpowerJ/sm \(^2\) kg s \(^{-3}\)
lalCoulombUnitcoulombCelectric chargeA \(\cdot\)ss A
lalVoltUnitvoltVpotentialW/Am \(^2\) kg s \(^{-3}\) A \(^{-1}\)
lalOhmUnitohm\(\Omega\)resistanceV/Am \(^2\) kg s \(^{-3}\) A \(^{-2}\)
lalFaradUnitfaradFcapacitanceC/Vm \(^{-2}\) kg \(^{-1}\) s \(^4\) A \(^2\)
lalWeberUnitweberWbmagnetic fluxV \(\cdot\)sm \(^2\) kg s \(^{-2}\) A \(^{-1}\)
lalHenryUnithenryHinductanceV \(\cdot\)s/Am \(^2\) kg s \(^{-2}\) A \(^{-2}\)
lalTeslaUnitteslaTmagnetic flux densityWb/m \(^2\)kg s \(^{-2}\) A \(^{-1}\)

The powers of ten (SI prefixes)

ConstantPrefixAbbr.Value
lalYottaUnityottaY\(10^{ 24}\)
lalZettaUnitzettaZ\(10^{ 21}\)
lalExaUnitexaE\(10^{ 18}\)
lalPetaUnitpetaP\(10^{ 15}\)
lalTeraUnitteraT\(10^{ 12}\)
lalGigaUnitgigaG\(10^{ 9}\)
lalMegaUnitmegaM\(10^{ 6}\)
lalKiloUnitkilok\(10^{ 3}\)
lalHectoUnithectoh\(10^{ 2}\)
lalDekaUnitdekada\(10^{ 1}\)
lalDeciUnitdecid\(10^{ -1}\)
lalCentiUnitcentic\(10^{ -2}\)
lalMilliUnitmillim\(10^{ -3}\)
lalMicroUnitmicro\(\mu\)\(10^{ -6}\)
lalNanoUnitnanon\(10^{ -9}\)
lalPicoUnitpicop\(10^{-12}\)
lalFemtoUnitfemtof\(10^{-15}\)
lalAttoUnitattoa\(10^{-18}\)
lalZeptoUnitzeptoz\(10^{-21}\)
lalYoctoUnityoctoy\(10^{-24}\)

And finally a couple of convenient scaled units:

ConstantNameAbbr.</th>Def.Fundamental
lalGramUnitgramg\(10^{-3}\) kg\(10^{-3}\) kg
lalAttoStrainUnitattostraina \(\epsilon\)\(10^{-18} \epsilon\)\(10^{-18} \epsilon\)
lalPicoFaradUnitpicofaradpF\(10^{-12}\) F\(10^{-12}\) m \(^{-2}\) kg \(^{-1}\) s \(^4\) A \(^2\)

Prototypes

static int readNumber (char temp[], const char **charPtrPtr)
 
static int readString (char temp[UNITDEFSC_TEMPSIZE], const char **charPtrPtr)
 
char * XLALUnitAsString (char *string, UINT4 length, const LALUnit *input)
 Returns the pointer to the input string, which is populated with the unit string if successful. More...
 
char * XLALUnitToString (const LALUnit *input)
 Allocates and returns a new string, which is populated with the unit string. More...
 
LALUnitXLALParseUnitString (LALUnit *output, const char *string)
 Returns the pointer output upon return or a pointer to newly allocated memory if output was NULL; on failure, XLALParseUnitString() returns NULL and sets xlalErrno to one of the following values: XLAL_ENOMEM if the routine was unable to allocate memory for the output or XLAL_EFAILED if the routine was unable to parse the unit string. More...
 

Variables

const CHAR lalUnitName [LALNumUnits][LALUnitNameSize]
 To convert a units structure to a string repesentation, we need to define the names of the basic units. More...
 
const LALUnit lalDimensionlessUnit = { 0, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 dimensionless units More...
 

Basic Units

const LALUnit lalMeterUnit = { 0, { 1, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 meter [m] More...
 
const LALUnit lalKiloGramUnit = { 0, { 0, 1, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 kilogram [kg] More...
 
const LALUnit lalSecondUnit = { 0, { 0, 0, 1, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 second [s] More...
 
const LALUnit lalAmpereUnit = { 0, { 0, 0, 0, 1, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Ampere [A]. More...
 
const LALUnit lalKelvinUnit = { 0, { 0, 0, 0, 0, 1, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Kelvin [K]. More...
 
const LALUnit lalStrainUnit = { 0, { 0, 0, 0, 0, 0, 1, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Strain [1]. More...
 
const LALUnit lalADCCountUnit = { 0, { 0, 0, 0, 0, 0, 0, 1}, { 0, 0, 0, 0, 0, 0, 0} }
 ADC count [count]. More...
 

Derived Mechanical Units

const LALUnit lalHertzUnit = { 0, { 0, 0,-1, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Hertz [Hz]. More...
 
const LALUnit lalNewtonUnit = { 0, { 1, 1,-2, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Newton [N]. More...
 
const LALUnit lalPascalUnit = { 0, {-1, 1,-2, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Pascal [Pa]. More...
 
const LALUnit lalJouleUnit = { 0, { 2, 1,-2, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Joule [J]. More...
 
const LALUnit lalWattUnit = { 0, { 2, 1,-3, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Watt [W ]. More...
 

Derived Electromagnetic Units

const LALUnit lalCoulombUnit = { 0, { 0, 0, 1, 1, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Coulomb [C]. More...
 
const LALUnit lalVoltUnit = { 0, { 2, 1,-3,-1, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Volt [V]. More...
 
const LALUnit lalOhmUnit = { 0, { 2, 1,-3,-2, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Ohm [ \(\Omega\)]. More...
 
const LALUnit lalFaradUnit = { 0, {-2,-1, 4, 2, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Farad [F]. More...
 
const LALUnit lalWeberUnit = { 0, { 2, 1,-2,-1, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Weber [Wb]. More...
 
const LALUnit lalHenryUnit = { 0, { 2, 1,-2,-2, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Henry [H]. More...
 
const LALUnit lalTeslaUnit = { 0, { 0, 1,-2,-1, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Tesla [T]. More...
 

Powers of Ten

const LALUnit lalYottaUnit = { 24, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Yotta [1e24]. More...
 
const LALUnit lalZettaUnit = { 21, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Zetta [1e21]. More...
 
const LALUnit lalExaUnit = { 18, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Exa [1e18]. More...
 
const LALUnit lalPetaUnit = { 15, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Peta [1e15]. More...
 
const LALUnit lalTeraUnit = { 12, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Tera [1e12]. More...
 
const LALUnit lalGigaUnit = { 9, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Giga [1e9]. More...
 
const LALUnit lalMegaUnit = { 6, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Mega [1e6]. More...
 
const LALUnit lalKiloUnit = { 3, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Kilo [1e3]. More...
 
const LALUnit lalHectoUnit = { 2, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Hecto [1e2]. More...
 
const LALUnit lalDekaUnit = { 1, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Deka [1e1]. More...
 
const LALUnit lalDeciUnit = { -1, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Deci [1e-1]. More...
 
const LALUnit lalCentiUnit = { -2, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Centi [1e-2]. More...
 
const LALUnit lalMilliUnit = { -3, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Milli [1e-3]. More...
 
const LALUnit lalMicroUnit = { -6, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Micro [1e-6]. More...
 
const LALUnit lalNanoUnit = { -9, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Nano [1e-9]. More...
 
const LALUnit lalPicoUnit = {-12, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Pico [1e-12]. More...
 
const LALUnit lalFemtoUnit = {-15, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Femto [1e-15]. More...
 
const LALUnit lalAttoUnit = {-18, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Atto [1e-18]. More...
 
const LALUnit lalZeptoUnit = {-21, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Zepto [1e-21]. More...
 
const LALUnit lalYoctoUnit = {-24, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Yocto [1e-24]. More...
 

Convenient Scaled Units

const LALUnit lalGramUnit = { -3, { 0, 1, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 Gram [1e-3]. More...
 
const LALUnit lalAttoStrainUnit = {-18, { 0, 0, 0, 0, 0, 1, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 AttoStrain [1e-18]. More...
 
const LALUnit lalPicoFaradUnit = {-12, {-2,-1, 2, 2, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }
 PicoFarad [1e-12 F]. More...
 

Function Documentation

◆ readNumber()

static int readNumber ( char  temp[],
const char **  charPtrPtr 
)
static

Definition at line 223 of file UnitDefs.c.

◆ readString()

static int readString ( char  temp[UNITDEFSC_TEMPSIZE],
const char **  charPtrPtr 
)
static

Definition at line 247 of file UnitDefs.c.

◆ XLALUnitAsString()

char* XLALUnitAsString ( char *  string,
UINT4  length,
const LALUnit input 
)

Returns the pointer to the input string, which is populated with the unit string if successful.

If there is a failure, XLALUnitAsString() returns a NULL pointer and xlalErrno is set to one of the following values: XLAL_EFAULT if one of the input pointers is NULL or XLAL_EBADLEN if the length of the string is insufficent for the unit string.

Definition at line 276 of file UnitDefs.c.

◆ XLALUnitToString()

char* XLALUnitToString ( const LALUnit input)

Allocates and returns a new string, which is populated with the unit string.

If there is a failure, returns a NULL pointer and xlalErrno is set to one of the error values of XLALUnitAsString or XLALMalloc. Caller is responsible for freeing return value with XLALFree.

Definition at line 332 of file UnitDefs.c.

◆ XLALParseUnitString()

LALUnit* XLALParseUnitString ( LALUnit output,
const char *  string 
)

Returns the pointer output upon return or a pointer to newly allocated memory if output was NULL; on failure, XLALParseUnitString() returns NULL and sets xlalErrno to one of the following values: XLAL_ENOMEM if the routine was unable to allocate memory for the output or XLAL_EFAILED if the routine was unable to parse the unit string.

Definition at line 354 of file UnitDefs.c.

Variable Documentation

◆ lalUnitName

const CHAR lalUnitName[LALNumUnits][LALUnitNameSize]
Initial value:
=
{
"m", "kg", "s", "A", "K", "strain", "count"
}

To convert a units structure to a string repesentation, we need to define the names of the basic units.

Definition at line 135 of file UnitDefs.c.

◆ lalDimensionlessUnit

const LALUnit lalDimensionlessUnit = { 0, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

dimensionless units

Definition at line 156 of file UnitDefs.c.

◆ lalMeterUnit

const LALUnit lalMeterUnit = { 0, { 1, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

meter [m]

Definition at line 160 of file UnitDefs.c.

◆ lalKiloGramUnit

const LALUnit lalKiloGramUnit = { 0, { 0, 1, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

kilogram [kg]

Definition at line 161 of file UnitDefs.c.

◆ lalSecondUnit

const LALUnit lalSecondUnit = { 0, { 0, 0, 1, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

second [s]

Definition at line 162 of file UnitDefs.c.

◆ lalAmpereUnit

const LALUnit lalAmpereUnit = { 0, { 0, 0, 0, 1, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Ampere [A].

Definition at line 163 of file UnitDefs.c.

◆ lalKelvinUnit

const LALUnit lalKelvinUnit = { 0, { 0, 0, 0, 0, 1, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Kelvin [K].

Definition at line 164 of file UnitDefs.c.

◆ lalStrainUnit

const LALUnit lalStrainUnit = { 0, { 0, 0, 0, 0, 0, 1, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Strain [1].

Definition at line 165 of file UnitDefs.c.

◆ lalADCCountUnit

const LALUnit lalADCCountUnit = { 0, { 0, 0, 0, 0, 0, 0, 1}, { 0, 0, 0, 0, 0, 0, 0} }

ADC count [count].

Definition at line 166 of file UnitDefs.c.

◆ lalHertzUnit

const LALUnit lalHertzUnit = { 0, { 0, 0,-1, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Hertz [Hz].

Definition at line 171 of file UnitDefs.c.

◆ lalNewtonUnit

const LALUnit lalNewtonUnit = { 0, { 1, 1,-2, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Newton [N].

Definition at line 172 of file UnitDefs.c.

◆ lalPascalUnit

const LALUnit lalPascalUnit = { 0, {-1, 1,-2, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Pascal [Pa].

Definition at line 173 of file UnitDefs.c.

◆ lalJouleUnit

const LALUnit lalJouleUnit = { 0, { 2, 1,-2, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Joule [J].

Definition at line 174 of file UnitDefs.c.

◆ lalWattUnit

const LALUnit lalWattUnit = { 0, { 2, 1,-3, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Watt [W ].

Definition at line 175 of file UnitDefs.c.

◆ lalCoulombUnit

const LALUnit lalCoulombUnit = { 0, { 0, 0, 1, 1, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Coulomb [C].

Definition at line 180 of file UnitDefs.c.

◆ lalVoltUnit

const LALUnit lalVoltUnit = { 0, { 2, 1,-3,-1, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Volt [V].

Definition at line 181 of file UnitDefs.c.

◆ lalOhmUnit

const LALUnit lalOhmUnit = { 0, { 2, 1,-3,-2, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Ohm [ \(\Omega\)].

Definition at line 182 of file UnitDefs.c.

◆ lalFaradUnit

const LALUnit lalFaradUnit = { 0, {-2,-1, 4, 2, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Farad [F].

Definition at line 183 of file UnitDefs.c.

◆ lalWeberUnit

const LALUnit lalWeberUnit = { 0, { 2, 1,-2,-1, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Weber [Wb].

Definition at line 184 of file UnitDefs.c.

◆ lalHenryUnit

const LALUnit lalHenryUnit = { 0, { 2, 1,-2,-2, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Henry [H].

Definition at line 185 of file UnitDefs.c.

◆ lalTeslaUnit

const LALUnit lalTeslaUnit = { 0, { 0, 1,-2,-1, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Tesla [T].

Definition at line 186 of file UnitDefs.c.

◆ lalYottaUnit

const LALUnit lalYottaUnit = { 24, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Yotta [1e24].

Definition at line 191 of file UnitDefs.c.

◆ lalZettaUnit

const LALUnit lalZettaUnit = { 21, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Zetta [1e21].

Definition at line 192 of file UnitDefs.c.

◆ lalExaUnit

const LALUnit lalExaUnit = { 18, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Exa [1e18].

Definition at line 193 of file UnitDefs.c.

◆ lalPetaUnit

const LALUnit lalPetaUnit = { 15, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Peta [1e15].

Definition at line 194 of file UnitDefs.c.

◆ lalTeraUnit

const LALUnit lalTeraUnit = { 12, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Tera [1e12].

Definition at line 195 of file UnitDefs.c.

◆ lalGigaUnit

const LALUnit lalGigaUnit = { 9, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Giga [1e9].

Definition at line 196 of file UnitDefs.c.

◆ lalMegaUnit

const LALUnit lalMegaUnit = { 6, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Mega [1e6].

Definition at line 197 of file UnitDefs.c.

◆ lalKiloUnit

const LALUnit lalKiloUnit = { 3, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Kilo [1e3].

Definition at line 198 of file UnitDefs.c.

◆ lalHectoUnit

const LALUnit lalHectoUnit = { 2, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Hecto [1e2].

Definition at line 199 of file UnitDefs.c.

◆ lalDekaUnit

const LALUnit lalDekaUnit = { 1, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Deka [1e1].

Definition at line 200 of file UnitDefs.c.

◆ lalDeciUnit

const LALUnit lalDeciUnit = { -1, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Deci [1e-1].

Definition at line 201 of file UnitDefs.c.

◆ lalCentiUnit

const LALUnit lalCentiUnit = { -2, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Centi [1e-2].

Definition at line 202 of file UnitDefs.c.

◆ lalMilliUnit

const LALUnit lalMilliUnit = { -3, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Milli [1e-3].

Definition at line 203 of file UnitDefs.c.

◆ lalMicroUnit

const LALUnit lalMicroUnit = { -6, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Micro [1e-6].

Definition at line 204 of file UnitDefs.c.

◆ lalNanoUnit

const LALUnit lalNanoUnit = { -9, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Nano [1e-9].

Definition at line 205 of file UnitDefs.c.

◆ lalPicoUnit

const LALUnit lalPicoUnit = {-12, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Pico [1e-12].

Definition at line 206 of file UnitDefs.c.

◆ lalFemtoUnit

const LALUnit lalFemtoUnit = {-15, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Femto [1e-15].

Definition at line 207 of file UnitDefs.c.

◆ lalAttoUnit

const LALUnit lalAttoUnit = {-18, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Atto [1e-18].

Definition at line 208 of file UnitDefs.c.

◆ lalZeptoUnit

const LALUnit lalZeptoUnit = {-21, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Zepto [1e-21].

Definition at line 209 of file UnitDefs.c.

◆ lalYoctoUnit

const LALUnit lalYoctoUnit = {-24, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Yocto [1e-24].

Definition at line 210 of file UnitDefs.c.

◆ lalGramUnit

const LALUnit lalGramUnit = { -3, { 0, 1, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

Gram [1e-3].

Definition at line 215 of file UnitDefs.c.

◆ lalAttoStrainUnit

const LALUnit lalAttoStrainUnit = {-18, { 0, 0, 0, 0, 0, 1, 0}, { 0, 0, 0, 0, 0, 0, 0} }

AttoStrain [1e-18].

Definition at line 216 of file UnitDefs.c.

◆ lalPicoFaradUnit

const LALUnit lalPicoFaradUnit = {-12, {-2,-1, 2, 2, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0} }

PicoFarad [1e-12 F].

Definition at line 217 of file UnitDefs.c.