QuantizationOptions#
- class lsst.afw.fits.QuantizationOptions#
Bases:
pybind11_objectAttributes Summary
Methods Summary
from_mapping(mapping)Construct from a dictionary with keys matching this struct's fields.
to_dict()"Return the mapping representation of these options.
Attributes Documentation
- dither#
- level#
- mask_planes#
- scaling#
- seed#
Methods Documentation
- classmethod from_mapping(mapping: Mapping[str, object]) QuantizationOptions#
Construct from a dictionary with keys matching this struct’s fields.
Parameters#
- mapping
Mapping Mapping from string to value. Enumeration values may be passed as string value names.
Returns#
- options
QuantizationOptions An instance of this options class.
Notes#
Allowed keys are:
dither:str, one ofNO_DITHER,SUBTRACTIVE_DITHER_1, orSUBTRACTIVE_DITHER_2. Defaults toNO_DITHER.scaling:str, one ofSTDEV_CFITSIO,STDEV_MASKED,RANGE, orMANUAL(see C++ docs for definitions).mask_planes:listofstr, names of mask planes to reject inSTDEV_MASKEDandRANGE(but only when writing objects with mask planes)level:float, target compression level (see C++ docs).seed: random number seed for dithering. Default is zero, which uses a timestamp-based seed when used directly, but a data ID-based seed when used vialsst.obs.base.FitsExposureFormatter.
- mapping
- to_dict() dict[str, object]#
“Return the mapping representation of these options.
Returns#
- mapping
dict See
from_mapping.
- mapping