Definition at line 119 of file _fitsContinued.py.
◆ __repr__()
| lsst.afw.fits._fitsContinued.CompressionOptions.__repr__ |
( |
| self | ) |
|
◆ from_mapping()
| CompressionOptions lsst.afw.fits._fitsContinued.CompressionOptions.from_mapping |
( |
| cls, |
|
|
Mapping[str, object] | mapping ) |
Construct from a dictionary with keys matching this struct's fields.
Parameters
----------
mapping : `~collections.abc.Mapping`
Mapping from string to value. Enumeration values may be passed as
string value names. Missing keys are mapped to default values.
Returns
-------
options : `CompressionOptions`
An instance of this options class.
Notes
-----
Allowed keys are:
- ``algorithm``: `str`, one of ``GZIP_1``, ``GZIP_2``, or ``RICE_1``.
- ``tile_width``: `int`, zero to use entire rows.
- ``tile_height``: `int`, zero to use entire columns.
- ``quantization``: `dict` or `None` (see
`QuantizationOptions.from_mapping`).
Missing keys are replaced by defaults that reflect lossless compression
(``GZIP_2``) with single rows as tiles.
Definition at line 121 of file _fitsContinued.py.
◆ to_dict()
| dict[str, object] lsst.afw.fits._fitsContinued.CompressionOptions.to_dict |
( |
| self | ) |
|
"Return the mapping representation of these options.
Returns
-------
mapping : `dict`
See `from_mapping`.
Definition at line 162 of file _fitsContinued.py.
◆ tile_height
| lsst.afw.fits._fitsContinued.CompressionOptions.tile_height |
◆ tile_width
| lsst.afw.fits._fitsContinued.CompressionOptions.tile_width |
The documentation for this class was generated from the following file: