Class RiceQuantizeCompressOption
java.lang.Object
nom.tam.fits.compression.algorithm.quant.QuantizeOption
nom.tam.fits.compression.algorithm.rice.RiceQuantizeCompressOption
- All Implemented Interfaces:
Cloneable, ICompressOption
-
Field Summary
Fields inherited from class QuantizeOption
RECOMMENDED_NAN_INDICATORModifier and TypeFieldDescriptionstatic final intThe integer value recommeded by the FITS standard to represent NaN floating-point values in integer compressed data. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.RiceQuantizeCompressOption(RiceCompressOption compressOption) Deprecated. -
Method Summary
Methods inherited from class QuantizeOption
copy, getBNull, getBScale, getBZero, getCompressionParameters, getCompressOption, getCompressOption, getIntMaxValue, getIntMinValue, getMaxValue, getMinValue, getNullValue, getNullValueIndicator, getQLevel, getSeed, getTileHeight, getTileIndex, getTileWidth, isCenterOnZero, isCheckNull, isCheckZero, isDither, isDither2, isLossyCompression, isUseFMA, setBNull, setBScale, setBZero, setCenterOnZero, setCheckNull, setCheckZero, setDither, setDither2, setIntMaxValue, setIntMinValue, setMaxValue, setMinValue, setNullValue, setParameters, setQlevel, setSeed, setTileHeight, setTileIndex, setTileWidth, unwrap, useFMAModifier and TypeMethodDescriptioncopy()Returns an independent copy of this option.getBNull()Returns the integer value that represents missing (null) for integer compressed floating-point data.doubleReturns the quantization level for integer compressed floating-point data.doublegetBZero()Returns the quantization offset for integer compressed floating-point data.nom.tam.fits.compression.provider.param.api.ICompressParameters(for internal use) Returns the parameters that represent the settings for this option in the FITS header or compressed data column.final ICompressOptionReturns the options for the compression algorithm that accompanies quantization.<T> TgetCompressOption(Class<T> clazz) Returns the compression or quantization options, recast for the selected option class.intReturns the maximum integer level in the quantized representation.intReturns the maximum integer level in the quantized representation.doubleReturns the maximum floating-point value in the datadoubleReturns the minimum floating-point value in the datadoubleDeprecated.The FITS standard allows only NaNs to indicate missing / invalid floating-point data.final IntegerDeprecated.useQuantizeOption.getBNull()instead (duplicate method).doubleReturns the quantization resolution level used for automatic qunatization.longgetSeed()Gets the random seed value used for ditheringintReturns the tile heightlongReturns the sequential tile index that this option is currently configured for.intReturns the tile widthbooleanChecks whether we force the integer quantized level 0 to correspond to a floating-point level 0.0, when using automatic quantization.final booleanDeprecated.UseQuantizeOption.getBNull()instead to see if a custom null-value indicator has been configured.booleanDeprecated.UseQuantizeOption.isDither2()instead.booleanisDither()Whether dithering is enabledbooleanWhether dithering (when enabled) uses method 2, which treats 0.0 values as special.booleanChecks if this type of compression is inherently lossystatic final booleanisUseFMA()Checks whetherMath.fma(double, double, double)is used for converting quantized integers back to doubles.Sets the integer value that represents missing data (null) for integer compressed floating-point data.setBScale(double value) Sets the quantization level for integer compressed floating-point data.setBZero(double value) Sets the quantization offset for integer compressed floating-point data.setCenterOnZero(boolean value) Enabled or disables keeping `ZZERO` at 0 when using automatic quantization.setCheckNull(boolean value) Deprecated.This feature is set automatically as needed.setCheckZero(boolean value) Deprecated.UseQuantizeOption.setDither2(boolean)instead if you want zero values to be special encoded.setDither(boolean value) Enables or disables dithering.setDither2(boolean value) Sets whether dithering is to use method 2, when dithering is enabled.setIntMaxValue(int value) Sets the maximum integer level in the quantized representation.setIntMinValue(int value) Sets the minimum integer level in the quantized representation.setMaxValue(double value) Sets the maximum floating-point value in the datasetMinValue(double value) Sets the minimum floating-point value in the datasetNullValue(double value) Deprecated.The use of null values other thanNaNfor floating-point data types is not standard in FITS.voidsetParameters(nom.tam.fits.compression.provider.param.api.ICompressParameters parameters) (for internal use) Sets the parameters that link the options to how they are recorded in the FITS headers or compressed table columns.setQlevel(double value) Sets the quantization resolution level to use for automatic quantization.setSeed(long value) Sets the seed value for the dither random generatorsetTileHeight(int value) Set the tile height (if the option supports it).setTileIndex(int index) Sets the tile index for which to initialize the random number generator with the given seed (i.e.setTileWidth(int value) Set the tile width (if the option supports it).<T> T(for internal use) Recasts these options for the specific implementation classstatic voiduseFMA(boolean value) Selects whetherMath.fma(double, double, double)should be used when converting quantized integers back to doubles.
-
Constructor Details
-
RiceQuantizeCompressOption
Deprecated.Creates a new set of options for Rice compression with quantization, initialized to default values. -
RiceQuantizeCompressOption
Deprecated.Creates a new set of options for Rice compression with quantization, using the specified option to the Rice (de)compression, and initializing the qunatization options with default values.- Parameters:
compressOption- The Rice compression options to use
-
-
Method Details
-
getRiceCompressOption
Deprecated.Returns the options that are specific to the Rice compression algorithm (without quantization).- Returns:
- the included options to the Rice compression algorithm
- See Also:
-
Options to the Rice compression algorithm when the compression includes quantization. When compressing tables and images using the Rice algorithm, including quantization, users can control how exactly the compression and quantization are perfomed. When reading compressed FITS files, these options will be set automatically based on the header values recorded in the compressed HDU.