tagLALUnit Struct Reference

Unit in the mksA system. More...

#include <LALDatatypes.h>


Data Fields

INT2 powerOfTen
 Overall power-of-ten scaling is 10^powerOfTen.
INT2 unitNumerator [LALNumUnits]
 Array of unit power numerators.
UINT2 unitDenominatorMinusOne [LALNumUnits]
 Array of unit power denominators-minus-one.


Detailed Description

Unit in the mksA system.

This structure stores units in the mksA system (plus Kelvin, Strain, and ADC Count). It also stores an overall power-of-ten p scaling factor. The units are represented by an array of integer numerators N and denominators-minus-one D representing the powers of the various units. The units are given by

\[ 10^p\times\textrm{m}^{N_0/(1+D_0)}\times\textrm{kg}^{N_1/(1+D_1)} \times\textrm{s}^{N_2/(1+D_2)}\times\textrm{A}^{N_3/(1+D_3)} \times\textrm{K}^{N_4/(1+D_4)}\times\textrm{strain}^{N_5/(1+D_5)} \times\textrm{count}^{N_6/(1+D_6)} \]

The indexes of the units can be specified using the constants LALUnitIndexMeter, LALUnitIndexKiloGram, LALUnitIndexSecond, LALUnitIndexAmpere, LALUnitIndexKelvin, LALUnitIndexStrain, LALUnitIndexADCCount, while LALNumUnits is the total number of units.

Definition at line 997 of file LALDatatypes.h.


Field Documentation

INT2 tagLALUnit::powerOfTen

Overall power-of-ten scaling is 10^powerOfTen.

Definition at line 1000 of file LALDatatypes.h.

INT2 tagLALUnit::unitNumerator[LALNumUnits]

Array of unit power numerators.

Definition at line 1001 of file LALDatatypes.h.

UINT2 tagLALUnit::unitDenominatorMinusOne[LALNumUnits]

Array of unit power denominators-minus-one.

Definition at line 1002 of file LALDatatypes.h.


The documentation for this struct was generated from the following file:
Generated on Tue Oct 7 02:41:54 2008 for LAL by  doxygen 1.5.2