7 Intended to be used by the ``__reduce__`` method of a class. 12 any object with a ``writeFits`` method taking a 13 `~lsst.afw.fits.MemFileManager` and possibly an 14 `~lsst.afw.fits.ImageWriteOptions`. 18 reduced : `tuple` [callable, `tuple`] 19 a tuple in the format returned by `~object.__reduce__` 24 obj.writeFits(manager, options)
26 obj.writeFits(manager)
27 size = manager.getLength()
28 data = manager.getData()
29 return (unreduceFromFits, (obj.__class__, data, size))
35 Unpack data produced by `reduceToFits`. This method is used by the 36 pickling framework and should not need to be called from user code. 41 the class of object to unpickle. Must have a class-level ``readFits`` 42 method taking a `~lsst.afw.fits.MemFileManager`. 44 an in-memory representation of the object, compatible with 45 `~lsst.afw.fits.MemFileManager` 52 the object represented by ``data`` 55 manager.setData(data, size)
56 return cls.readFits(manager)
Options for writing an image to FITS.
def unreduceFromFits(cls, data, size)
Options for tile compression of image pixels.
Lifetime-management for memory that goes into FITS memory files.