org.das2.datum.LocationUnits

Units for describing locations, Stevens' Interval Scale.

LocationUnits( String id, String description, Units offsetUnits, org.das2.datum.Basis basis )

Creates a new instance of LocationUnit


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]


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]


getBasis

getBasis( ) → Basis

return the basis for the unit, such as "since 2000-01-01T00:00Z" or "north of Earth's equator"

Returns:

an org.das2.datum.Basis

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getOffsetUnits

getOffsetUnits( ) → Units

return the physical units of the basis vector, such as "microseconds" or "degrees"

Returns:

an Units

[search for examples] [view on GitHub] [view on old javadoc] [view source]


multiply

multiply( 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]


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]