visad.data.in
Class ValueUnpacker
- java.lang.Object
-
- visad.data.in.ValueProcessor
-
- visad.data.in.ValueUnpacker
-
- Direct Known Subclasses:
- OffsetUnpacker, ScaleAndOffsetUnpacker, ScaleUnpacker
public abstract class ValueUnpacker extends ValueProcessor
Provides support for unpacking data values (i.e. converting them from smaller types to bigger types).Instances are immutable.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetIncrement()Returns the minimum, potential increment between numeric values.static ValueUnpackervalueUnpacker()Returns the trivial value unpacker.-
Methods inherited from class visad.data.in.ValueProcessor
process, process, process, process
-
-
-
-
Method Detail
-
valueUnpacker
public static ValueUnpacker valueUnpacker()
Returns the trivial value unpacker. The trivial value unpacker does nothing to the value during processing and itsgetIncrement()method returns NaN.- Returns:
- The trivial value unpacker.
-
getIncrement
public double getIncrement()
Returns the minimum, potential increment between numeric values. Typically, this is the absolute magnitude of a "scale factor" attribute. If the increment is undefined or not applicable, then Double.NaN is returned. This method should be overridden in appropriate subclasses.- Returns:
- Double.NaN.
-
-
DMelt 3.0 © DataMelt by jWork.ORG