4 from .fits
import (Fits, ImageWriteOptions, ImageCompressionOptions, ImageScalingOptions,
5 compressionAlgorithmToString, scalingAlgorithmToString)
13 def __exit__(self, cls, exc, traceback):
20 return f
"{self.__class__.__name__}(compression={self.compression!r}, scaling={self.scaling!r})"
26 return (f
"{self.__class__.__name__}(algorithm={compressionAlgorithmToString(self.algorithm)!r}, "
27 f
"tiles={self.tiles.tolist()!r}, quantizeLevel={self.quantizeLevel:f})")
33 return (f
"{self.__class__.__name__}(algorithm={scalingAlgorithmToString(self.algorithm)!r}, "
34 f
"bitpix={self.bitpix}, maskPlanes={self.maskPlanes}, seed={self.seed} "
35 f
"quantizeLevel={self.quantizeLevel}, quantizePad={self.quantizePad}, "
36 f
"fuzz={self.fuzz}, bscale={self.bscale}, bzero={self.bzero})")
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
Options for scaling image pixels.
Options for tile compression of image pixels.
Options for writing an image to FITS.