org.das2.datum.SIUnits
Finally introduce SI Units library, which preserves units through
multiplication and division.
add
add( Number a, Number b, Units bUnits ) → Datum
Parameters
a - a Number
b - a Number
bUnits - an Units
Returns:
org.das2.datum.Datum
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
create
create( String id ) → SIUnits
Parameters
id - a String
Returns:
org.das2.datum.SIUnits
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
create( String id, String desc, org.das2.datum.Ratio m, org.das2.datum.Ratio kg, org.das2.datum.Ratio s, org.das2.datum.Ratio A, org.das2.datum.Ratio K, org.das2.datum.RationalNumber multiplier ) → SIUnits
create( String id, String desc, int m, int kg, int s, double multiplier ) → SIUnits
create( String id, String desc, int m, int kg, int s ) → SIUnits
create( String id, String desc, int m, int kg, int s, int A, int K ) → SIUnits
create( String id, String desc, org.das2.datum.Ratio m, org.das2.datum.Ratio k, org.das2.datum.Ratio s, org.das2.datum.RationalNumber multiplier ) → SIUnits
divide
divide( Number a, Number b, Units bUnits ) → Datum
Parameters
a - a Number
b - a Number
bUnits - an Units
Returns:
org.das2.datum.Datum
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
fromClusterCDFSIConversion
fromClusterCDFSIConversion( String si, String id, String desc ) → SIUnits
Cluster CDFs had "SI_Conversion" that showed how to convert to SI units.
Parse this string. For example: SI_conversion="1.0e-3>V m^-1"
Parameters
si - the string.
id - a String
desc - a String
Returns:
the SIUnits
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
main
main( java.lang.String[][] args ) → void
Parameters
args - a java.lang.String[]
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
multiply
multiply( org.das2.datum.SIUnits s1, org.das2.datum.SIUnits s2 ) → SIUnits
Parameters
s1 - a SIUnits
s2 - a SIUnits
Returns:
org.das2.datum.SIUnits
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
multiply( String id, String desc, org.das2.datum.SIUnits s1, org.das2.datum.RationalNumber s ) → SIUnits
multiply( Number a, Number b, Units bUnits ) → Datum
pow
pow( org.das2.datum.SIUnits s1, int pow ) → SIUnits
apply the power to the exponent. For example
pow(Units.kg,2)→ kg**2
pow(Units.cm,2)→ cm**2 == .01^2 * m^2.
Units.kg
Parameters
s1 - the unit, e.g. SIUnits.si_Hz
pow - the exponent e.g. -1
Returns:
SI unit, e.g. SIUnits.si_s
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
subtract
subtract( Number a, Number b, Units bUnits ) → Datum
Parameters
a - a Number
b - a Number
bUnits - an Units
Returns:
org.das2.datum.Datum
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
toString
toString( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]