Package | Description |
---|---|
ucar.nc2.units |
Utility classes for scientific units and ucar.units package.
|
ucar.units |
Provides support for parsing and formatting string unit specification,
converting numerical values between compatible units, and performing arithmetic
on units (such as dividing one unit by another).
|
Modifier and Type | Method and Description |
---|---|
double |
TimeUnit.convertTo(double value,
TimeUnit outputUnit)
Convert given value of this unit to the new unit.
|
double |
TimeDuration.getValue(TimeUnit want)
Get the time duration in a specified unit of time.
|
Modifier and Type | Method and Description |
---|---|
double[] |
Unit.convertTo(double[] amounts,
Unit outputUnit)
Converts numerical values from this unit to another unit.
|
double[] |
UnitImpl.convertTo(double[] amounts,
Unit outputUnit)
Converts numeric values from this unit to another unit.
|
double[] |
Unit.convertTo(double[] input,
Unit outputUnit,
double[] output)
Converts numerical values from this unit to another unit.
|
double[] |
UnitImpl.convertTo(double[] input,
Unit outputUnit,
double[] output)
Converts numeric values from this unit to another unit.
|
double |
Unit.convertTo(double amount,
Unit outputUnit)
Converts a numerical value from this unit to another unit.
|
double |
UnitImpl.convertTo(double amount,
Unit outputUnit)
Converts a numeric value from this unit to another unit.
|
float[] |
Unit.convertTo(float[] amounts,
Unit outputUnit)
Converts numerical values from this unit to another unit.
|
float[] |
UnitImpl.convertTo(float[] amounts,
Unit outputUnit)
Converts numeric values from this unit to another unit.
|
float[] |
Unit.convertTo(float[] input,
Unit outputUnit,
float[] output)
Converts numerical values from this unit to another unit.
|
float[] |
UnitImpl.convertTo(float[] input,
Unit outputUnit,
float[] output)
Converts numeric values from this unit to another unit.
|
float |
Unit.convertTo(float amount,
Unit outputUnit)
Converts a numerical value from this unit to another unit.
|
float |
UnitImpl.convertTo(float amount,
Unit outputUnit)
Converts a numeric value from this unit to another unit.
|
static Converter |
ConverterImpl.create(Unit fromUnit,
Unit toUnit)
Factory method for creating a unit converter.
|
double |
ScaledUnit.fromDerivedUnit(double amount)
Converts a numeric value from the underlying derived unit to this unit.
|
double |
OffsetUnit.fromDerivedUnit(double amount)
Converts a value in the convertible derived unit to the equivalent value
in this unit.
|
double |
LogarithmicUnit.fromDerivedUnit(double amount)
Converts a value in the convertible derived unit to the equivalent value
in this unit.
|
double |
DerivableUnit.fromDerivedUnit(double amount)
Converts a numeric value from the underlying derived unit to this unit.
|
double[] |
ScaledUnit.fromDerivedUnit(double[] input,
double[] output)
Converts numeric values from the underlying derived unit to this unit.
|
double[] |
OffsetUnit.fromDerivedUnit(double[] input,
double[] output)
Converts values in the convertible derived unit to the equivalent values
in this unit.
|
double[] |
LogarithmicUnit.fromDerivedUnit(double[] input,
double[] output)
Converts values in the convertible derived unit to the equivalent values
in this unit.
|
double[] |
DerivableUnit.fromDerivedUnit(double[] input,
double[] output)
Converts numeric values from the underlying derived unit to this unit.
|
float |
ScaledUnit.fromDerivedUnit(float amount)
Converts a numeric value from the underlying derived unit to this unit.
|
float |
OffsetUnit.fromDerivedUnit(float amount)
Converts a value in the convertible derived unit to the equivalent value
in this unit.
|
float |
LogarithmicUnit.fromDerivedUnit(float amount)
Converts a value in the convertible derived unit to the equivalent value
in this unit.
|
float |
DerivableUnit.fromDerivedUnit(float amount)
Converts numeric values from the underlying derived unit to this unit.
|
float[] |
ScaledUnit.fromDerivedUnit(float[] input,
float[] output)
Converts numeric values from the underlying derived unit to this unit.
|
float[] |
OffsetUnit.fromDerivedUnit(float[] input,
float[] output)
Converts values in the convertible derived unit to the equivalent values
in this unit.
|
float[] |
LogarithmicUnit.fromDerivedUnit(float[] input,
float[] output)
Converts values in the convertible derived unit to the equivalent values
in this unit.
|
float[] |
DerivableUnit.fromDerivedUnit(float[] input,
float[] output)
Converts numeric values from the underlying derived unit to this unit.
|
Converter |
Unit.getConverterTo(Unit outputUnit)
Gets a Converter that converts numeric values from this unit to another,
compatible unit.
|
Converter |
UnitImpl.getConverterTo(Unit outputUnit)
Gets a Converter for converting numeric values from this unit to another,
compatible unit.
|
Converter |
TimeScaleUnit.getConverterTo(Unit outputUnit)
Returns a Converter for converting numeric values from this unit to
another unit.
|
double |
ScaledUnit.toDerivedUnit(double amount)
Converts a numeric value from this unit to the underlying derived unit.
|
double |
OffsetUnit.toDerivedUnit(double amount)
Converts a value in this unit to the equivalent value in the convertible
derived unit.
|
double |
LogarithmicUnit.toDerivedUnit(double amount)
Converts a value in this unit to the equivalent value in the convertible
derived unit.
|
double |
DerivableUnit.toDerivedUnit(double amount)
Converts a numeric value in this unit to the underlying derived unit.
|
double[] |
ScaledUnit.toDerivedUnit(double[] input,
double[] output)
Converts numeric values from this unit to the underlying derived unit.
|
double[] |
OffsetUnit.toDerivedUnit(double[] input,
double[] output)
Converts values in this unit to the equivalent values in the convertible
derived unit.
|
double[] |
LogarithmicUnit.toDerivedUnit(double[] input,
double[] output)
Converts values in this unit to the equivalent values in the convertible
derived unit.
|
double[] |
DerivableUnit.toDerivedUnit(double[] input,
double[] output)
Converts numeric values in this unit to the underlying derived unit.
|
float |
ScaledUnit.toDerivedUnit(float amount)
Converts a numeric value from this unit to the underlying derived unit.
|
float |
OffsetUnit.toDerivedUnit(float amount)
Converts a value in this unit to the equivalent value in the convertible
derived unit.
|
float |
LogarithmicUnit.toDerivedUnit(float amount)
Converts a value in this unit to the equivalent value in the convertible
derived unit.
|
float |
DerivableUnit.toDerivedUnit(float amount)
Converts a numeric value in this unit to the underlying derived unit.
|
float[] |
ScaledUnit.toDerivedUnit(float[] input,
float[] output)
Converts numeric values from this unit to the underlying derived unit.
|
float[] |
OffsetUnit.toDerivedUnit(float[] input,
float[] output)
Converts values in this unit to the equivalent values in the convertible
derived unit.
|
float[] |
LogarithmicUnit.toDerivedUnit(float[] input,
float[] output)
Converts values in this unit to the equivalent values in the convertible
derived unit.
|
float[] |
DerivableUnit.toDerivedUnit(float[] input,
float[] output)
Converts numeric values in this unit to the underlying derived unit.
|
Constructor and Description |
---|
ConverterImpl(Unit fromUnit,
Unit toUnit)
Constructs from a "from" unit and a "to" unit.
|
MyConverter(TimeScaleUnit fromUnit,
Unit toUnit) |
MyConverter(Unit fromUnit,
Unit toUnit) |
Copyright © 1999–2018 UCAR/Unidata. All rights reserved.