ArchiveInfo#
- pydantic model lsst.images.serialization.ArchiveInfo#
Basic identifying information about an on-disk archive.
Read from a file’s headers/metadata without deserializing pixel data.
- Parameters:
data (
Any)- Fields:
- field format_version: int | None [Required]#
Container layout version (FITS
FMTVER/ NDFFORMAT_VERSION);Nonefor formats with no separate container version (JSON).
- field schema_name: str [Required]#
Schema name parsed from
schema_url.
- field schema_url: str [Required]#
Canonical schema URL of the top-level tree.
- field schema_version: str [Required]#
Schema version parsed from
schema_url.
- classmethod from_schema_url(schema_url, *, format_version)#
Build an
ArchiveInfoby parsing a schema URL of the formhttps://{host}/.../schemas/{name}-{version}.The URL is parsed with
ResourcePathand must be anhttp(s)URL whose final directory isschemas, so aDATAMODLheader written by an unrelated tool cannot steer reads toward an arbitrary schema. The host is not restricted: external packages mint schema URLs under their own documentation sites viaArchiveTree.SCHEMA_URL_BASE.- Parameters:
- Return type: