Package ucar.nc2.filter
Class ScaleOffset
- java.lang.Object
-
- ucar.nc2.filter.Filter
-
- ucar.nc2.filter.ScaleOffset
-
- All Implemented Interfaces:
Enhancement
public class ScaleOffset extends Filter implements Enhancement
Filter implementation of FixedScaleOffset as described by the NumCodecs project
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScaleOffset.Keys
static class
ScaleOffset.Provider
-
Constructor Summary
Constructors Constructor Description ScaleOffset(Map<String,Object> properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
applyScaleOffset(double value)
Array
applyScaleOffset(Array in)
double
convert(double value)
Array
convert(Array in)
static ScaleOffset
createFromVariable(VariableDS var)
byte[]
decode(byte[] dataIn)
byte[]
encode(byte[] dataIn)
int
getId()
String
getName()
double
getOffset()
DataType
getScaledOffsetType()
double
getScaleFactor()
-
-
-
Method Detail
-
createFromVariable
public static ScaleOffset createFromVariable(VariableDS var)
-
getScaleFactor
public double getScaleFactor()
-
getOffset
public double getOffset()
-
getScaledOffsetType
public DataType getScaledOffsetType()
-
applyScaleOffset
public double applyScaleOffset(double value)
-
convert
public double convert(double value)
- Specified by:
convert
in interfaceEnhancement
-
-