PSFExSerializationModel#
- pydantic model lsst.images.psfs.PSFExSerializationModel#
Serialization model for PSFEx PSFs.
- Parameters:
data (
Any)- Fields:
- Validators:
_check_and_normalize_schema_version»all fields
- field average_x: float [Required]#
Average X position of the stars used to build this PSF model.
- Validated by:
_check_and_normalize_schema_version
- field average_y: float [Required]#
Average Y position of the stars used to build this PSF model.
- Validated by:
_check_and_normalize_schema_version
- field basis: list[float] [Required]#
Basis function values.
- Validated by:
_check_and_normalize_schema_version
- field bounds: BoundsSerializationModel [Required]#
Validity range for this PSF model.
- Validated by:
_check_and_normalize_schema_version
- field butler_info: ButlerInfo | None = None#
Information about the butler dataset backed by this file.
- Validated by:
_check_and_normalize_schema_version
- field coeff: list[float] [Required]#
Polynomial coefficients.
- Validated by:
_check_and_normalize_schema_version
- field context: serialization.InlineArray [Required]#
Internal PSFEx context array.
- Validated by:
_check_and_normalize_schema_version
- field degree: list[int] [Required]#
Polynomial degree for each model group.
- Validated by:
_check_and_normalize_schema_version
- field group: list[int] [Optional]#
Number of model groups in each dimension.
- Validated by:
_check_and_normalize_schema_version
- field indirect: list[Any] [Optional]#
Serialized nested objects that may be saved or read more than once.
- Validated by:
_check_and_normalize_schema_version
- field metadata: dict[str, MetadataValue] [Optional]#
Additional unstructured metadata.
- Validated by:
_check_and_normalize_schema_version
- field min_read_version: int = 1#
Smallest reader major that can interpret this tree.
- Validated by:
_check_and_normalize_schema_version
- field parameters: serialization.ArrayReferenceModel | serialization.InlineArrayModel [Required]#
Reference to an array with the complete model parameters.
- Validated by:
_check_and_normalize_schema_version
- field pixel_step: float [Required]#
Size of a model pixel, as a fraction or multiple of the native pixel size.
- Validated by:
_check_and_normalize_schema_version
- field schema_version: str = '1.0.0'#
Data-model schema version of this tree (major.minor.patch).
- Validated by:
_check_and_normalize_schema_version
- PUBLIC_TYPE#
alias of
PSFExWrapper
- deserialize(archive, **kwargs)#
Deserialize the PSF from an archive.
This method is intended to be usable as the callback function passed to
serialization.InputArchive.deserialize_pointer.- Parameters:
archive (
InputArchive[Any]) – Archive to read from.**kwargs (
Any) – Unsupported keyword arguments are accepted only to provide better error messages (raisingserialization.InvalidParameterError).
- Return type:
- deserialize_component(component, archive, **kwargs)#
Return a component in-memory object that was serialized to this tree.
- Parameters:
component (
str) – Name of the component to read.archive (
InputArchive[Any]) – The input archive to read from.**kwargs (
Any) – Additional keyword arguments specific to this type.
- Raises:
InvalidComponentError – Raise if
componentis not recognized.InvalidParameterError – Raised for unsupported
**kwargs.
- Return type:
Notes
The default implementation for this method tries to get an attribute with the component’s name from
self, and then:calls
deserializeon that object if it is also anArchiveTree;returns it directly otherwise.
If there is no such attribute, it raises
InvalidComponentError.**kwargsare forwarded to componentdeserializemethods, but are otherwise not checked. Subclasses are generally expected to implement this method to do that checking and handle any components for which the other will not work, and then delegate tosuperat the end.
- MIN_READ_VERSION: ClassVar[int] = 1#
- SCHEMA_NAME: ClassVar[str] = 'psfex_psf'#
- SCHEMA_URL_BASE: ClassVar[str] = 'https://images.lsst.io/schemas'#
Base for this schema’s URL, as
{SCHEMA_URL_BASE}/{name}-{version}.External packages providing their own schemas should override this (once, on a shared intermediate base class) so their schema URLs are minted under a documentation site they control rather than images.lsst.io.
- SCHEMA_VERSION: ClassVar[str] = '1.0.0.dev0'#