量化#

class astropy.io.fits.hdu.compressed._quantization.Quantize(*, row: int, dither_method: int, quantize_level: int, bitpix: int)[源代码]#

基类:object

遵循FITS标准的浮点数据量化。

方法总结

decode_quantized(buf, scale, zero)

取消量化数据。

encode_quantized \(Buf)

量化数据。

方法文件

decode_quantized(buf, scale, zero)[源代码]#

取消量化数据。

参数:
buf : bytesarray_like字节或NumPy:ARRAY_LIKE

要取消量化的缓冲区。

返回:
np.ndarray

未量化的缓冲区。

encode_quantized(buf)[源代码]#

量化数据。

参数:
buf : bytesarray_like字节或NumPy:ARRAY_LIKE

要量化的缓冲区。

返回:
np.ndarray

具有量化数据的缓冲器。