Frame#

class lsst.images.Frame(*args, **kwargs)#

Bases: Protocol

A description of a coordinate system.

Attributes Summary

unit

Units of the coordinates in this frame (astropy.units.UnitBase).

Methods Summary

serialize()

Return a Pydantic-serializable version of this Frame.

standardize_x(x)

Coerce x coordinates into their standard range.

standardize_y(y)

Coerce y coordinates into their standard range.

Attributes Documentation

unit#

Units of the coordinates in this frame (astropy.units.UnitBase).

Methods Documentation

serialize() SerializableFrame#

Return a Pydantic-serializable version of this Frame.

Notes#

The returned object must support direct nesting with Pydantic models and have a deserialize method (taking no arguments) that converts back to this Frame type. It is common for serialize and deserialize to just return self, when the frame object is natively serializable.

standardize_x(x: T) T#

Coerce x coordinates into their standard range.

standardize_y(y: T) T#

Coerce y coordinates into their standard range.